Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002015/0.002015, allocations: 178.1 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.992/1.992, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001089/0.001088, allocations: 88.7 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.392e-05/2.39e-05, allocations: 4 kB / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3316/0.3317, allocations: 47.57 MB / 362.4 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1395/0.4712, allocations: 86.22 MB / 448.7 MB, free: 36 kB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003629/0.4717, allocations: 87.95 kB / 448.8 MB, free: 15.95 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.07184/0.5435, allocations: 15.68 MB / 464.4 MB, free: 316 kB / 347.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.5436, allocations: 0 / 464.4 MB, free: 316 kB / 347.1 MB Notification: Performance of Transformations before backend: time 8.107e-05/0.5437, allocations: 23.94 kB / 464.5 MB, free: 292 kB / 347.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.003066/0.5468, allocations: 0.9735 MB / 465.4 MB, free: 15.27 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.5468, allocations: 8.031 kB / 465.4 MB, free: 15.26 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004027/0.5473, allocations: 98.88 kB / 465.5 MB, free: 15.16 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001534/0.5488, allocations: 0.5433 MB / 466.1 MB, free: 14.57 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001679/0.549, allocations: 29.31 kB / 466.1 MB, free: 14.54 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001421/0.5492, allocations: 32 kB / 466.1 MB, free: 14.51 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001504/0.5507, allocations: 474.5 kB / 466.6 MB, free: 14.05 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00156/0.5523, allocations: 0.5205 MB / 467.1 MB, free: 13.52 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.598e-05/0.5524, allocations: 4 kB / 467.1 MB, free: 13.51 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.747e-05/0.5525, allocations: 4 kB / 467.1 MB, free: 13.51 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.148e-05/0.5525, allocations: 12 kB / 467.1 MB, free: 13.5 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006695/0.5592, allocations: 2.536 MB / 469.7 MB, free: 10.83 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00108/0.5603, allocations: 441.4 kB / 470.1 MB, free: 10.39 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007941/0.5611, allocations: 246.5 kB / 470.4 MB, free: 10.14 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.18e-05/0.5612, allocations: 16.42 kB / 470.4 MB, free: 10.13 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.073e-05/0.5613, allocations: 35 kB / 470.4 MB, free: 10.09 MB / 363.1 MB Notification: Performance of pre-optimization done (n=50): time 3.667e-06/0.5613, allocations: 7.938 kB / 470.4 MB, free: 10.08 MB / 363.1 MB Notification: Performance of matching and sorting (n=66): time 0.003558/0.5649, allocations: 0.9595 MB / 471.4 MB, free: 9.117 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.205e-05/0.565, allocations: 55.97 kB / 471.4 MB, free: 9.051 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001774/0.5668, allocations: 0.7495 MB / 472.2 MB, free: 8.297 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001245/0.5669, allocations: 25.7 kB / 472.2 MB, free: 8.266 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004151/0.5674, allocations: 418.1 kB / 472.6 MB, free: 7.852 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002888/0.5677, allocations: 216.8 kB / 472.8 MB, free: 7.637 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.695e-05/0.5677, allocations: 0 / 472.8 MB, free: 7.637 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.5679, allocations: 338.8 kB / 473.2 MB, free: 7.297 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005859/0.5685, allocations: 189.5 kB / 473.3 MB, free: 7.109 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006407/0.5692, allocations: 287.5 kB / 473.6 MB, free: 6.801 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006439/0.5698, allocations: 232.5 kB / 473.8 MB, free: 6.574 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.5698, allocations: 0 / 473.8 MB, free: 6.574 MB / 363.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00162/0.5715, allocations: 0.5624 MB / 474.4 MB, free: 6.004 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.807e-05/0.5715, allocations: 4 kB / 474.4 MB, free: 6 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.926e-05/0.5716, allocations: 4 kB / 474.4 MB, free: 5.996 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.807e-05/0.5716, allocations: 4 kB / 474.4 MB, free: 5.992 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001657/0.5733, allocations: 199.9 kB / 474.6 MB, free: 5.797 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.748e-05/0.5733, allocations: 10.73 kB / 474.6 MB, free: 5.789 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00139/0.5747, allocations: 47.91 kB / 474.7 MB, free: 5.742 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001717/0.5749, allocations: 23.98 kB / 474.7 MB, free: 5.719 MB / 363.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (actuator.armature.stopper_xMax.contact,actuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003299/0.5753, allocations: 124.8 kB / 474.8 MB, free: 5.59 MB / 363.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002265/0.5776, allocations: 478.2 kB / 475.3 MB, free: 5.113 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004591/0.5781, allocations: 79.06 kB / 475.4 MB, free: 5.035 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001655/0.5798, allocations: 0.5126 MB / 475.9 MB, free: 4.516 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.429e-05/0.5798, allocations: 11.89 kB / 475.9 MB, free: 4.504 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.595e-06/0.5799, allocations: 0 / 475.9 MB, free: 4.504 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.339e-05/0.5799, allocations: 7.984 kB / 475.9 MB, free: 4.496 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004596/0.5845, allocations: 1.73 MB / 477.6 MB, free: 2.652 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.306e-05/0.5846, allocations: 8.344 kB / 477.6 MB, free: 2.645 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001244/0.5858, allocations: 151.8 kB / 477.8 MB, free: 2.496 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.439e-05/0.5859, allocations: 8 kB / 477.8 MB, free: 2.488 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.956e-05/0.5859, allocations: 8 kB / 477.8 MB, free: 2.48 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.561e-05/0.586, allocations: 15.88 kB / 477.8 MB, free: 2.465 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.115e-06/0.586, allocations: 4 kB / 477.8 MB, free: 2.461 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001629/0.5876, allocations: 0.7759 MB / 478.6 MB, free: 1.566 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006254/0.5883, allocations: 232.1 kB / 478.8 MB, free: 1.32 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00015/0.5885, allocations: 4 kB / 478.8 MB, free: 1.316 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000941/0.5894, allocations: 47.95 kB / 478.9 MB, free: 1.27 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001604/0.5896, allocations: 48.45 kB / 478.9 MB, free: 1.223 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.3e-05/0.5897, allocations: 20 kB / 478.9 MB, free: 1.203 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.001296/0.591, allocations: 0.6033 MB / 479.5 MB, free: 0.6094 MB / 363.1 MB Notification: Performance of sort global known variables: time 1.193e-06/0.5911, allocations: 0 / 479.5 MB, free: 0.6094 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.001105/0.5922, allocations: 151.9 kB / 479.7 MB, free: 472 kB / 363.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 2 (actuator.armature.stopper_xMax.contact,actuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003159/0.5954, allocations: 2.295 MB / 482 MB, free: 14.11 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.001482/0.5969, allocations: 486.2 kB / 482.5 MB, free: 13.64 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 8.256e-06/0.5969, allocations: 0 / 482.5 MB, free: 13.64 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000711/0.5977, allocations: 263 kB / 482.7 MB, free: 13.38 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001149/0.5988, allocations: 96.09 kB / 482.8 MB, free: 13.29 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004714/0.6036, allocations: 1.342 MB / 484.1 MB, free: 11.86 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008276/0.6045, allocations: 0.9784 MB / 485.1 MB, free: 10.86 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009436/0.6055, allocations: 307.2 kB / 485.4 MB, free: 10.55 MB / 379.1 MB Notification: Performance of SimCode: time 1.452e-06/0.6055, allocations: 0 / 485.4 MB, free: 10.55 MB / 379.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.856/3.461, allocations: 14.19 MB / 499.6 MB, free: 12.35 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour_fmu --startTime=-4 --stopTime=4 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour_res.mat does not exist to compare? outputFormat=mat