Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.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.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator",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.00106/0.00106, allocations: 181.2 kB / 17.01 MB, free: 5.125 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.535/1.535, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0008762/0.0008762, allocations: 84.22 kB / 271.5 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000249/0.0002491, allocations: 4 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2714/0.2717, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09202/0.3638, allocations: 77.18 MB / 453.1 MB, free: 3.484 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002421/0.3641, allocations: 71.97 kB / 453.2 MB, free: 3.414 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009825/0.3739, allocations: 3.802 MB / 457 MB, free: 15.61 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3739, allocations: 4 kB / 457 MB, free: 15.6 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.489e-05/0.3739, allocations: 4 kB / 457 MB, free: 15.6 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.0007418/0.3747, allocations: 494.9 kB / 457.4 MB, free: 15.07 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/0.3747, allocations: 8.031 kB / 457.5 MB, free: 15.06 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.381e-05/0.3748, allocations: 58.55 kB / 457.5 MB, free: 14.99 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.629e-05/0.3749, allocations: 27.62 kB / 457.5 MB, free: 14.96 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002654/0.3752, allocations: 235.3 kB / 457.8 MB, free: 14.69 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.194e-05/0.3752, allocations: 16.44 kB / 457.8 MB, free: 14.67 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.344e-05/0.3753, allocations: 20 kB / 457.8 MB, free: 14.65 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004493/0.3757, allocations: 213.3 kB / 458 MB, free: 14.43 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.875e-05/0.3757, allocations: 8 kB / 458 MB, free: 14.43 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.236e-05/0.3758, allocations: 4 kB / 458 MB, free: 14.42 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.3758, allocations: 4 kB / 458 MB, free: 14.42 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000368/0.3762, allocations: 156.4 kB / 458.2 MB, free: 14.27 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001307/0.3775, allocations: 0.8007 MB / 459 MB, free: 13.4 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004408/0.3779, allocations: 205 kB / 459.2 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.088e-05/0.378, allocations: 8 kB / 459.2 MB, free: 13.17 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.784e-05/0.378, allocations: 34.56 kB / 459.2 MB, free: 13.13 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 1.753e-06/0.378, allocations: 0 / 459.2 MB, free: 13.13 MB / 346.7 MB Notification: Performance of matching and sorting (n=26): time 0.001714/0.3797, allocations: 0.8709 MB / 460.1 MB, free: 12.17 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.086e-05/0.3798, allocations: 93.02 kB / 460.2 MB, free: 12.06 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001502/0.38, allocations: 157.2 kB / 460.3 MB, free: 11.9 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.477e-05/0.38, allocations: 37.64 kB / 460.4 MB, free: 11.86 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.501e-05/0.3801, allocations: 140.3 kB / 460.5 MB, free: 11.71 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.643e-05/0.3802, allocations: 94.59 kB / 460.6 MB, free: 11.62 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.232e-05/0.3802, allocations: 4 kB / 460.6 MB, free: 11.62 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.3803, allocations: 330.8 kB / 460.9 MB, free: 11.29 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001686/0.3805, allocations: 75.95 kB / 461 MB, free: 11.21 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001831/0.3807, allocations: 112.2 kB / 461.1 MB, free: 11.09 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001892/0.3809, allocations: 82.05 kB / 461.2 MB, free: 11.01 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.3809, allocations: 4 kB / 461.2 MB, free: 11 MB / 346.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004978/0.3814, allocations: 253.2 kB / 461.4 MB, free: 10.75 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.3815, allocations: 4 kB / 461.5 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.3815, allocations: 0 / 461.5 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.3815, allocations: 12.05 kB / 461.5 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003051/0.3818, allocations: 63.91 kB / 461.5 MB, free: 10.67 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.3818, allocations: 4 kB / 461.5 MB, free: 10.67 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001283/0.382, allocations: 15.94 kB / 461.5 MB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.661e-05/0.382, allocations: 11.98 kB / 461.6 MB, free: 10.64 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 () * Number of clocked 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 0.0001138/0.3821, allocations: 133.8 kB / 461.7 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.831e-05/0.3822, allocations: 23.72 kB / 461.7 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.375e-05/0.3822, allocations: 29.88 kB / 461.7 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.3822, allocations: 3.984 kB / 461.7 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.3823, allocations: 7.953 kB / 461.8 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.3823, allocations: 0 / 461.8 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007498/0.383, allocations: 0.5827 MB / 462.3 MB, free: 9.785 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.383, allocations: 3.953 kB / 462.3 MB, free: 9.781 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002715/0.3833, allocations: 59.91 kB / 462.4 MB, free: 9.723 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.3833, allocations: 4 kB / 462.4 MB, free: 9.719 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.818e-05/0.3834, allocations: 8 kB / 462.4 MB, free: 9.711 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.3834, allocations: 4 kB / 462.4 MB, free: 9.707 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.3834, allocations: 4 kB / 462.4 MB, free: 9.703 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006196/0.384, allocations: 0.5458 MB / 463 MB, free: 9.109 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.605e-05/0.3841, allocations: 96.91 kB / 463.1 MB, free: 8.996 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.83e-05/0.3841, allocations: 4 kB / 463.1 MB, free: 8.992 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000169/0.3843, allocations: 12 kB / 463.1 MB, free: 8.98 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.458e-05/0.3843, allocations: 27.86 kB / 463.1 MB, free: 8.953 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.452e-05/0.3844, allocations: 12 kB / 463.1 MB, free: 8.941 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.819e-05/0.3844, allocations: 132.3 kB / 463.2 MB, free: 8.812 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3845, allocations: 3.938 kB / 463.2 MB, free: 8.809 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003027/0.3848, allocations: 48 kB / 463.3 MB, free: 8.762 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 () * Number of clocked 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.0009513/0.3857, allocations: 1.367 MB / 464.7 MB, free: 7.344 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003478/0.3861, allocations: 194.7 kB / 464.8 MB, free: 7.156 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.3861, allocations: 0 / 464.8 MB, free: 7.156 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001615/0.3863, allocations: 99.27 kB / 464.9 MB, free: 7.062 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003415/0.3866, allocations: 36.31 kB / 465 MB, free: 7.027 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002307/0.3889, allocations: 2.187 MB / 467.2 MB, free: 4.758 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003052/0.3892, allocations: 0.7559 MB / 467.9 MB, free: 3.977 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.394e-05/0.3893, allocations: 21.94 kB / 467.9 MB, free: 3.949 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.99e-05/0.3895, allocations: 63.42 kB / 468 MB, free: 3.887 MB / 346.7 MB Notification: Performance of SimCode: time 3.21e-07/0.3895, allocations: 3.938 kB / 468 MB, free: 3.883 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01516/0.4046, allocations: 3.881 MB / 471.9 MB, free: 36 kB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000203/0.4049, allocations: 174.8 kB / 472.1 MB, free: 15.8 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.634/2.039, allocations: 0 / 472.1 MB, free: 15.8 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat