Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001293/0.001293, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.503/1.503, allocations: 221.5 MB / 230.3 MB, free: 7.52 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009288/0.0009292, allocations: 96.75 kB / 281.2 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.405e-05/2.407e-05, allocations: 4 kB / 337.1 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1402, allocations: 50.41 MB / 387.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4235/0.5637, allocations: 77.5 MB / 465.1 MB, free: 1.215 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001859/0.5639, allocations: 67.97 kB / 465.1 MB, free: 1.148 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01024/0.5742, allocations: 3.895 MB / 469 MB, free: 13.26 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.5743, allocations: 0 / 469 MB, free: 13.26 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.451e-05/0.5743, allocations: 4 kB / 469 MB, free: 13.25 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007198/0.575, allocations: 483 kB / 469.5 MB, free: 12.73 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.12e-05/0.5751, allocations: 12.03 kB / 469.5 MB, free: 12.72 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.005e-05/0.5751, allocations: 27.7 kB / 469.5 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002937/0.5754, allocations: 223.4 kB / 469.7 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.5755, allocations: 8 kB / 469.8 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.583e-05/0.5755, allocations: 15.91 kB / 469.8 MB, free: 12.41 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002681/0.5758, allocations: 116.8 kB / 469.9 MB, free: 12.3 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003097/0.5761, allocations: 172.5 kB / 470.1 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.857e-05/0.5761, allocations: 4 kB / 470.1 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.151e-05/0.5762, allocations: 0 / 470.1 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.5762, allocations: 8 kB / 470.1 MB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001279/0.5775, allocations: 0.7458 MB / 470.8 MB, free: 11.31 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003809/0.5779, allocations: 177 kB / 471 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001801/0.5781, allocations: 89.7 kB / 471.1 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.961e-05/0.5781, allocations: 4 kB / 471.1 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.79e-05/0.5782, allocations: 38.56 kB / 471.1 MB, free: 10.97 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 1.573e-06/0.5782, allocations: 0 / 471.1 MB, free: 10.97 MB / 346.7 MB Notification: Performance of matching and sorting (n=26): time 0.001291/0.5795, allocations: 0.7149 MB / 471.8 MB, free: 10.17 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.116e-05/0.5795, allocations: 85.02 kB / 471.9 MB, free: 10.07 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001456/0.5797, allocations: 138.8 kB / 472 MB, free: 9.926 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.484e-05/0.5797, allocations: 26.45 kB / 472.1 MB, free: 9.895 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.448e-05/0.5798, allocations: 148.3 kB / 472.2 MB, free: 9.746 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.731e-05/0.5799, allocations: 90.66 kB / 472.3 MB, free: 9.656 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.598e-06/0.5799, allocations: 0 / 472.3 MB, free: 9.656 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.58, allocations: 334.8 kB / 472.6 MB, free: 9.32 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.962e-05/0.5801, allocations: 47.98 kB / 472.7 MB, free: 9.273 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001138/0.5802, allocations: 97.58 kB / 472.8 MB, free: 9.164 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001055/0.5804, allocations: 59.97 kB / 472.8 MB, free: 9.105 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.5804, allocations: 3.938 kB / 472.8 MB, free: 9.102 MB / 346.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002848/0.5807, allocations: 194.7 kB / 473 MB, free: 8.906 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.5807, allocations: 9.25 kB / 473 MB, free: 8.898 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.5807, allocations: 0 / 473 MB, free: 8.898 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.5807, allocations: 4 kB / 473 MB, free: 8.895 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002497/0.581, allocations: 59.91 kB / 473.1 MB, free: 8.836 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/0.581, allocations: 7.984 kB / 473.1 MB, free: 8.828 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001037/0.5811, allocations: 7.906 kB / 473.1 MB, free: 8.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.952e-05/0.5811, allocations: 16.09 kB / 473.1 MB, free: 8.805 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 32 * 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 8.447e-05/0.5812, allocations: 108.9 kB / 473.2 MB, free: 8.691 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002707/0.5815, allocations: 169.3 kB / 473.4 MB, free: 8.52 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.243e-05/0.5816, allocations: 19.81 kB / 473.4 MB, free: 8.5 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.812e-05/0.5816, allocations: 29.95 kB / 473.5 MB, free: 8.473 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.5816, allocations: 0 / 473.5 MB, free: 8.473 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.5817, allocations: 0 / 473.5 MB, free: 8.473 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.5817, allocations: 4 kB / 473.5 MB, free: 8.469 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007159/0.5824, allocations: 0.5222 MB / 474 MB, free: 7.895 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.5824, allocations: 4 kB / 474 MB, free: 7.891 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002727/0.5827, allocations: 55.91 kB / 474 MB, free: 7.836 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.471e-06/0.5827, allocations: 4.094 kB / 474 MB, free: 7.832 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.841e-05/0.5827, allocations: 8 kB / 474 MB, free: 7.824 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.5827, allocations: 3.953 kB / 474.1 MB, free: 7.82 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.5827, allocations: 0 / 474.1 MB, free: 7.82 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005715/0.5833, allocations: 495.7 kB / 474.5 MB, free: 7.285 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.313e-05/0.5834, allocations: 92.92 kB / 474.6 MB, free: 7.176 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.272e-05/0.5834, allocations: 4.031 kB / 474.6 MB, free: 7.172 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001605/0.5836, allocations: 4 kB / 474.6 MB, free: 7.168 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.576e-05/0.5837, allocations: 27.91 kB / 474.7 MB, free: 7.141 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.267e-05/0.5837, allocations: 8 kB / 474.7 MB, free: 7.133 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.096e-05/0.5838, allocations: 119.5 kB / 474.8 MB, free: 7.016 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5838, allocations: 0 / 474.8 MB, free: 7.016 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003172/0.5841, allocations: 44 kB / 474.8 MB, free: 6.973 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (mass1.s,mass1.v,damper1.s_rel,damper1.v_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 26 * 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.0008584/0.585, allocations: 1.289 MB / 476.1 MB, free: 5.629 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000259/0.5852, allocations: 146.3 kB / 476.3 MB, free: 5.488 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.5853, allocations: 4 kB / 476.3 MB, free: 5.484 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001287/0.5854, allocations: 85.66 kB / 476.3 MB, free: 5.402 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003578/0.5857, allocations: 28.06 kB / 476.4 MB, free: 5.375 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001171/0.5869, allocations: 0.5847 MB / 477 MB, free: 4.742 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003182/0.5873, allocations: 0.7596 MB / 477.7 MB, free: 3.957 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.809e-05/0.5874, allocations: 14.08 kB / 477.7 MB, free: 3.945 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001016/0.5875, allocations: 67.41 kB / 477.8 MB, free: 3.879 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5875, allocations: 0 / 477.8 MB, free: 3.879 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02205/0.6095, allocations: 3.373 MB / 481.2 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002323/0.6098, allocations: 159.2 kB / 481.3 MB, free: 340 kB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.832/2.441, allocations: 0 / 481.3 MB, free: 340 kB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat