Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Sensors.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.Sensors,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Sensors",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.002257/0.002257, allocations: 177.8 kB / 8.36 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 2.357/2.357, allocations: 205.3 MB / 214.1 MB, free: 14.13 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.001175/0.001175, allocations: 88.33 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.408e-05/3.426e-05, allocations: 4 kB / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3554/0.3555, allocations: 47.55 MB / 362.4 MB, free: 45.72 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1239/0.4794, allocations: 76.54 MB / 439 MB, free: 9.672 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002647/0.4798, allocations: 63.97 kB / 439 MB, free: 9.609 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01105/0.4908, allocations: 2.562 MB / 441.6 MB, free: 7.082 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4909, allocations: 1.969 kB / 441.6 MB, free: 7.082 MB / 331.1 MB Notification: Performance of Transformations before backend: time 1.427e-05/0.4909, allocations: 8 kB / 441.6 MB, free: 7.074 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0006461/0.4916, allocations: 418.1 kB / 442 MB, free: 6.625 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.4916, allocations: 11.97 kB / 442 MB, free: 6.613 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.811e-05/0.4917, allocations: 16.53 kB / 442 MB, free: 6.598 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002507/0.492, allocations: 190.9 kB / 442.2 MB, free: 6.371 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.74e-05/0.492, allocations: 7.156 kB / 442.2 MB, free: 6.367 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.518e-05/0.4921, allocations: 11.95 kB / 442.2 MB, free: 6.355 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002628/0.4923, allocations: 75.97 kB / 442.3 MB, free: 6.281 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002858/0.4926, allocations: 109.8 kB / 442.4 MB, free: 6.172 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.132e-05/0.4927, allocations: 3.906 kB / 442.4 MB, free: 6.168 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.194e-05/0.4927, allocations: 4 kB / 442.4 MB, free: 6.164 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.104e-06/0.4927, allocations: 0 / 442.4 MB, free: 6.164 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001101/0.4938, allocations: 0.5032 MB / 442.9 MB, free: 5.621 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000166/0.494, allocations: 67.77 kB / 443 MB, free: 5.547 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.956e-05/0.4941, allocations: 27.11 kB / 443 MB, free: 5.52 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.882e-05/0.4942, allocations: 0 / 443 MB, free: 5.52 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.333e-05/0.4942, allocations: 34.56 kB / 443 MB, free: 5.477 MB / 331.1 MB Notification: Performance of pre-optimization done (n=9): time 1.934e-06/0.4942, allocations: 0 / 443 MB, free: 5.477 MB / 331.1 MB Notification: Performance of matching and sorting (n=11): time 0.001048/0.4953, allocations: 0.5178 MB / 443.6 MB, free: 4.871 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.751e-05/0.4953, allocations: 59.34 kB / 443.6 MB, free: 4.801 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001282/0.4955, allocations: 117.8 kB / 443.7 MB, free: 4.684 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 1.927e-05/0.4955, allocations: 25.7 kB / 443.8 MB, free: 4.652 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.4956, allocations: 210.2 kB / 444 MB, free: 4.441 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.242e-05/0.4957, allocations: 39.45 kB / 444 MB, free: 4.402 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.644e-06/0.4957, allocations: 0 / 444 MB, free: 4.402 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.4958, allocations: 318.8 kB / 444.3 MB, free: 4.082 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.382e-05/0.4959, allocations: 20 kB / 444.3 MB, free: 4.062 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000125/0.496, allocations: 82.86 kB / 444.4 MB, free: 3.957 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001063/0.4962, allocations: 35.91 kB / 444.5 MB, free: 3.922 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.4962, allocations: 0 / 444.5 MB, free: 3.922 MB / 331.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003157/0.4965, allocations: 139.9 kB / 444.6 MB, free: 3.781 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.4965, allocations: 4 kB / 444.6 MB, free: 3.777 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.066e-06/0.4966, allocations: 0 / 444.6 MB, free: 3.777 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.963e-05/0.4966, allocations: 4 kB / 444.6 MB, free: 3.773 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003212/0.4969, allocations: 35.98 kB / 444.6 MB, free: 3.738 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.4969, allocations: 3.938 kB / 444.6 MB, free: 3.734 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001264/0.4971, allocations: 7.953 kB / 444.6 MB, free: 3.727 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.125e-05/0.4971, allocations: 12.86 kB / 444.7 MB, free: 3.715 MB / 331.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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.967e-05/0.4972, allocations: 105.2 kB / 444.8 MB, free: 3.605 MB / 331.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002194/0.4974, allocations: 95.2 kB / 444.9 MB, free: 3.508 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.794e-05/0.4975, allocations: 7.906 kB / 444.9 MB, free: 3.5 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.397e-05/0.4976, allocations: 8.625 kB / 444.9 MB, free: 3.492 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.4976, allocations: 4 kB / 444.9 MB, free: 3.488 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.4976, allocations: 3.953 kB / 444.9 MB, free: 3.484 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.4976, allocations: 0 / 444.9 MB, free: 3.484 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006753/0.4983, allocations: 404.5 kB / 445.3 MB, free: 3.039 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.4983, allocations: 0 / 445.3 MB, free: 3.039 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002536/0.4986, allocations: 23.98 kB / 445.3 MB, free: 3.016 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.155e-05/0.4986, allocations: 8.516 kB / 445.3 MB, free: 3.008 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.4986, allocations: 0 / 445.3 MB, free: 3.008 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.4986, allocations: 0 / 445.3 MB, free: 3.008 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.4987, allocations: 0 / 445.3 MB, free: 3.008 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003709/0.499, allocations: 258.5 kB / 445.6 MB, free: 2.723 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.528e-05/0.4991, allocations: 81.02 kB / 445.6 MB, free: 2.625 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.66e-05/0.4991, allocations: 4.906 kB / 445.6 MB, free: 2.621 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001422/0.4993, allocations: 7.984 kB / 445.6 MB, free: 2.613 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.952e-05/0.4994, allocations: 12.06 kB / 445.7 MB, free: 2.602 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.799e-06/0.4994, allocations: 0 / 445.7 MB, free: 2.602 MB / 331.1 MB Notification: Performance of sorting global known variables: time 7.79e-05/0.4995, allocations: 95.27 kB / 445.8 MB, free: 2.508 MB / 331.1 MB Notification: Performance of sort global known variables: time 4.1e-07/0.4995, allocations: 0 / 445.8 MB, free: 2.508 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0004025/0.4999, allocations: 24 kB / 445.8 MB, free: 2.484 MB / 331.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mass.s,mass.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0007102/0.5006, allocations: 0.9135 MB / 446.7 MB, free: 1.531 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.0002896/0.5009, allocations: 75.8 kB / 446.8 MB, free: 1.457 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.5009, allocations: 0 / 446.8 MB, free: 1.457 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 8.527e-05/0.501, allocations: 32.38 kB / 446.8 MB, free: 1.426 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003278/0.5014, allocations: 17.61 kB / 446.8 MB, free: 1.41 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001126/0.5025, allocations: 356.8 kB / 447.2 MB, free: 1.016 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003031/0.5028, allocations: 0.7197 MB / 447.9 MB, free: 276 kB / 331.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001022/0.503, allocations: 43.42 kB / 447.9 MB, free: 232 kB / 331.1 MB Notification: Performance of SimCode: time 1.212e-06/0.503, allocations: 0 / 447.9 MB, free: 232 kB / 331.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.382/2.885, allocations: 2.027 MB / 449.9 MB, free: 14.23 MB / 347.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Sensors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Sensors_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Sensors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Sensors.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Sensors_res.mat does not exist to compare? outputFormat=mat