Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_3_2_3_cpp_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.001535/0.001535, allocations: 178.8 kB / 8.363 MB, free: 0.7109 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.106/2.106, allocations: 205.3 MB / 214.1 MB, free: 14.16 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.002275/0.002275, allocations: 92.7 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.07e-05/3.088e-05, allocations: 4 kB / 314.9 MB, free: 9.07 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3617/0.3617, allocations: 47.56 MB / 362.4 MB, free: 45.72 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1301/0.4919, allocations: 76.43 MB / 438.9 MB, free: 9.785 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002763/0.4923, allocations: 69 kB / 438.9 MB, free: 9.719 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01696/0.5093, allocations: 3.749 MB / 442.7 MB, free: 6.004 MB / 331.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.5093, allocations: 4 kB / 442.7 MB, free: 6 MB / 331.1 MB Notification: Performance of Transformations before backend: time 3.307e-05/0.5094, allocations: 8 kB / 442.7 MB, free: 5.992 MB / 331.1 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.0009731/0.5104, allocations: 489.2 kB / 443.2 MB, free: 5.469 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.629e-05/0.5104, allocations: 8.031 kB / 443.2 MB, free: 5.461 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.205e-05/0.5105, allocations: 27.72 kB / 443.2 MB, free: 5.434 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004025/0.5109, allocations: 229.3 kB / 443.4 MB, free: 5.168 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.245e-05/0.511, allocations: 8 kB / 443.4 MB, free: 5.16 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.498e-05/0.511, allocations: 12 kB / 443.4 MB, free: 5.148 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003993/0.5115, allocations: 108.9 kB / 443.5 MB, free: 5.043 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004475/0.5119, allocations: 169.3 kB / 443.7 MB, free: 4.867 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.565e-05/0.512, allocations: 7.938 kB / 443.7 MB, free: 4.859 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.706e-05/0.512, allocations: 0 / 443.7 MB, free: 4.859 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.512, allocations: 6.25 kB / 443.7 MB, free: 4.855 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001846/0.5139, allocations: 0.7452 MB / 444.5 MB, free: 4.055 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005162/0.5144, allocations: 184.8 kB / 444.7 MB, free: 3.859 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003035/0.5147, allocations: 89.64 kB / 444.7 MB, free: 3.766 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.748e-05/0.5148, allocations: 8.141 kB / 444.7 MB, free: 3.758 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.583e-05/0.5148, allocations: 34.56 kB / 444.8 MB, free: 3.715 MB / 331.1 MB Notification: Performance of pre-optimization done (n=22): time 2.986e-06/0.5149, allocations: 0 / 444.8 MB, free: 3.715 MB / 331.1 MB Notification: Performance of matching and sorting (n=26): time 0.001772/0.5166, allocations: 0.7153 MB / 445.5 MB, free: 2.91 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.494e-05/0.5168, allocations: 77.11 kB / 445.6 MB, free: 2.816 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002114/0.517, allocations: 147.8 kB / 445.7 MB, free: 2.668 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 2.79e-05/0.517, allocations: 25.7 kB / 445.7 MB, free: 2.637 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/0.5172, allocations: 202.8 kB / 445.9 MB, free: 2.438 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001031/0.5173, allocations: 94.66 kB / 446 MB, free: 2.344 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.34e-05/0.5173, allocations: 0 / 446 MB, free: 2.344 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.5175, allocations: 322.8 kB / 446.3 MB, free: 2.02 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001571/0.5177, allocations: 51.98 kB / 446.4 MB, free: 1.969 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001919/0.5179, allocations: 84.28 kB / 446.5 MB, free: 1.871 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001987/0.5181, allocations: 66.62 kB / 446.5 MB, free: 1.809 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.5181, allocations: 448 / 446.5 MB, free: 1.809 MB / 331.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005519/0.5187, allocations: 195.8 kB / 446.7 MB, free: 1.613 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.225e-05/0.5187, allocations: 4 kB / 446.7 MB, free: 1.609 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.5187, allocations: 0 / 446.7 MB, free: 1.609 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.348e-05/0.5187, allocations: 9.062 kB / 446.7 MB, free: 1.602 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005208/0.5193, allocations: 63.91 kB / 446.8 MB, free: 1.539 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.612e-05/0.5193, allocations: 7.953 kB / 446.8 MB, free: 1.531 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002234/0.5195, allocations: 19.98 kB / 446.8 MB, free: 1.512 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.455e-05/0.5196, allocations: 4 kB / 446.8 MB, free: 1.508 MB / 331.1 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 0.0001312/0.5197, allocations: 108.9 kB / 446.9 MB, free: 1.395 MB / 331.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000474/0.5202, allocations: 168.7 kB / 447.1 MB, free: 1.227 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.221e-05/0.5203, allocations: 23.72 kB / 447.1 MB, free: 1.203 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.231e-05/0.5204, allocations: 21.97 kB / 447.2 MB, free: 1.18 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.066e-06/0.5204, allocations: 3.953 kB / 447.2 MB, free: 1.176 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.187e-05/0.5205, allocations: 4 kB / 447.2 MB, free: 1.172 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.5205, allocations: 7.984 kB / 447.2 MB, free: 1.164 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001147/0.5216, allocations: 0.5244 MB / 447.7 MB, free: 0.5898 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.311e-06/0.5217, allocations: 0 / 447.7 MB, free: 0.5898 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005378/0.5222, allocations: 56.06 kB / 447.8 MB, free: 0.5352 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.188e-06/0.5222, allocations: 4 kB / 447.8 MB, free: 0.5312 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.769e-05/0.5223, allocations: 8 kB / 447.8 MB, free: 0.5234 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.883e-06/0.5223, allocations: 3.938 kB / 447.8 MB, free: 0.5195 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/0.5223, allocations: 4 kB / 447.8 MB, free: 0.5156 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008616/0.5232, allocations: 490.7 kB / 448.3 MB, free: 15.99 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.63e-05/0.5233, allocations: 92.92 kB / 448.3 MB, free: 15.88 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.268e-05/0.5233, allocations: 0 / 448.3 MB, free: 15.88 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002762/0.5236, allocations: 11.98 kB / 448.4 MB, free: 15.87 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.725e-05/0.5237, allocations: 29.66 kB / 448.4 MB, free: 15.84 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.306e-05/0.5238, allocations: 4 kB / 448.4 MB, free: 15.84 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0001301/0.5239, allocations: 115.8 kB / 448.5 MB, free: 15.73 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5239, allocations: 0 / 448.5 MB, free: 15.73 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0005256/0.5245, allocations: 44.25 kB / 448.5 MB, free: 15.68 MB / 347.1 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.001314/0.5258, allocations: 1.288 MB / 449.8 MB, free: 14.35 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0004928/0.5263, allocations: 151.8 kB / 450 MB, free: 14.2 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.5263, allocations: 0 / 450 MB, free: 14.2 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002062/0.5266, allocations: 71.94 kB / 450 MB, free: 14.13 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006133/0.5272, allocations: 41.2 kB / 450.1 MB, free: 14.09 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001976/0.5292, allocations: 0.608 MB / 450.7 MB, free: 13.44 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004041/0.5296, allocations: 0.7557 MB / 451.5 MB, free: 12.66 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001873/0.5298, allocations: 63.42 kB / 451.5 MB, free: 12.6 MB / 347.1 MB Notification: Performance of SimCode: time 1.453e-06/0.5298, allocations: 0 / 451.5 MB, free: 12.6 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.673/3.203, allocations: 3.451 MB / 455 MB, free: 9.18 MB / 347.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Oscillator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Oscillator.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat