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.001587/0.001586, allocations: 185.7 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.956/1.956, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001583/0.001583, allocations: 97.83 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003914/0.0003914, allocations: 8 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3259/0.3263, allocations: 47.57 MB / 374.6 MB, free: 45.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1399/0.4663, allocations: 86.97 MB / 461.6 MB, free: 9.664 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003539/0.4667, allocations: 91.94 kB / 461.7 MB, free: 9.574 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0806/0.5473, allocations: 15.86 MB / 477.6 MB, free: 9.656 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.418e-06/0.5473, allocations: 0 / 477.6 MB, free: 9.656 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.202e-05/0.5474, allocations: 23.92 kB / 477.6 MB, free: 9.633 MB / 362.7 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.003176/0.5506, allocations: 1.086 MB / 478.7 MB, free: 8.496 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/0.5507, allocations: 8.031 kB / 478.7 MB, free: 8.488 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002312/0.5509, allocations: 98.52 kB / 478.8 MB, free: 8.383 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002532/0.5512, allocations: 95.56 kB / 478.9 MB, free: 8.289 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001308/0.5525, allocations: 0.5349 MB / 479.4 MB, free: 7.715 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001704/0.5527, allocations: 53.31 kB / 479.5 MB, free: 7.66 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001688/0.5529, allocations: 71.83 kB / 479.5 MB, free: 7.59 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002146/0.555, allocations: 0.6635 MB / 480.2 MB, free: 6.91 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.604e-05/0.5551, allocations: 4 kB / 480.2 MB, free: 6.906 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.497e-05/0.5552, allocations: 24 kB / 480.2 MB, free: 6.883 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.325e-05/0.5552, allocations: 16 kB / 480.2 MB, free: 6.867 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00238/0.5576, allocations: 0.6064 MB / 480.8 MB, free: 6.262 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006469/0.5641, allocations: 2.659 MB / 483.5 MB, free: 3.465 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001739/0.5659, allocations: 0.5042 MB / 484 MB, free: 2.949 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.055e-05/0.566, allocations: 12.42 kB / 484 MB, free: 2.938 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.797e-05/0.5661, allocations: 39 kB / 484.1 MB, free: 2.891 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 3.377e-06/0.5661, allocations: 0 / 484.1 MB, free: 2.891 MB / 362.7 MB Notification: Performance of matching and sorting (n=65): time 0.008661/0.5747, allocations: 1.741 MB / 485.8 MB, free: 1.148 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.069e-05/0.5748, allocations: 63.91 kB / 485.9 MB, free: 1.074 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002038/0.5769, allocations: 0.8434 MB / 486.7 MB, free: 228 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001345/0.5771, allocations: 37.7 kB / 486.7 MB, free: 184 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003948/0.5775, allocations: 414.5 kB / 487.1 MB, free: 15.77 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002815/0.5778, allocations: 216.8 kB / 487.4 MB, free: 15.56 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.5779, allocations: 16 kB / 487.4 MB, free: 15.54 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002459/0.5782, allocations: 338.8 kB / 487.7 MB, free: 15.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001324/0.5795, allocations: 277.9 kB / 488 MB, free: 14.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001418/0.581, allocations: 379.1 kB / 488.3 MB, free: 14.54 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001279/0.5823, allocations: 311.1 kB / 488.6 MB, free: 14.23 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/0.5823, allocations: 0 / 488.6 MB, free: 14.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002823/0.5851, allocations: 0.7508 MB / 489.4 MB, free: 13.47 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.85e-05/0.5852, allocations: 8 kB / 489.4 MB, free: 13.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.5852, allocations: 0 / 489.4 MB, free: 13.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.779e-05/0.5852, allocations: 8 kB / 489.4 MB, free: 13.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001571/0.5868, allocations: 195.8 kB / 489.6 MB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.311e-05/0.5869, allocations: 11.94 kB / 489.6 MB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001185/0.5881, allocations: 59.95 kB / 489.7 MB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.246e-05/0.5882, allocations: 31.98 kB / 489.7 MB, free: 13.16 MB / 378.7 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 87 * 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.0006542/0.5888, allocations: 261.7 kB / 490 MB, free: 12.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002479/0.5891, allocations: 82.97 kB / 490 MB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002754/0.5919, allocations: 0.7022 MB / 490.7 MB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.726e-05/0.5919, allocations: 11.98 kB / 490.8 MB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.136e-05/0.5919, allocations: 3.953 kB / 490.8 MB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.592, allocations: 4 kB / 490.8 MB, free: 12.08 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005755/0.5977, allocations: 1.959 MB / 492.7 MB, free: 10 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.596e-05/0.5978, allocations: 4 kB / 492.7 MB, free: 9.996 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001225/0.599, allocations: 160 kB / 492.9 MB, free: 9.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.45e-05/0.5991, allocations: 4 kB / 492.9 MB, free: 9.836 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.02e-05/0.5991, allocations: 12 kB / 492.9 MB, free: 9.824 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.113e-05/0.5992, allocations: 11.94 kB / 492.9 MB, free: 9.812 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/0.5992, allocations: 3.953 kB / 492.9 MB, free: 9.809 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002728/0.6019, allocations: 0.9206 MB / 493.8 MB, free: 8.789 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006591/0.6026, allocations: 240 kB / 494.1 MB, free: 8.535 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001683/0.6028, allocations: 16 kB / 494.1 MB, free: 8.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008954/0.6037, allocations: 59.95 kB / 494.1 MB, free: 8.461 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001515/0.6039, allocations: 44.5 kB / 494.2 MB, free: 8.418 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.171e-05/0.6039, allocations: 23.95 kB / 494.2 MB, free: 8.395 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001559/0.6055, allocations: 0.6786 MB / 494.9 MB, free: 7.719 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.52e-07/0.6055, allocations: 4 kB / 494.9 MB, free: 7.715 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001047/0.6066, allocations: 180 kB / 495.1 MB, free: 7.539 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (65): * Single equations (assignments): 65 * 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.0043/0.6109, allocations: 2.361 MB / 497.4 MB, free: 5.117 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002688/0.6136, allocations: 0.6484 MB / 498.1 MB, free: 4.477 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.307e-06/0.6137, allocations: 4 kB / 498.1 MB, free: 4.473 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001288/0.615, allocations: 335.9 kB / 498.4 MB, free: 4.141 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001112/0.6161, allocations: 110.9 kB / 498.5 MB, free: 4.031 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.271/0.8871, allocations: 6.351 MB / 0.493 GB, free: 105.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005955/0.8878, allocations: 0.9855 MB / 0.494 GB, free: 104.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008411/0.8886, allocations: 307.2 kB / 0.4943 GB, free: 104.5 MB / 378.7 MB Notification: Performance of SimCode: time 9.32e-07/0.8886, allocations: 0 / 0.4943 GB, free: 104.5 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.764/3.652, allocations: 14.4 MB / 0.5084 GB, free: 101.9 MB / 378.7 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