Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_3_2_3_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.001076/0.001076, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.805/1.805, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009803/0.0009803, allocations: 78.72 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.096e-05/2.088e-05, allocations: 4 kB / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09286/0.09291, allocations: 47.59 MB / 363.2 MB, free: 6.98 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3407/0.4337, allocations: 76.76 MB / 439.9 MB, free: 2.574 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002356/0.4339, allocations: 70.14 kB / 440 MB, free: 2.539 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007307/0.4413, allocations: 2.569 MB / 442.6 MB, free: 404 kB / 314.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.4413, allocations: 0 / 442.6 MB, free: 404 kB / 314.7 MB Notification: Performance of Transformations before backend: time 1.548e-05/0.4413, allocations: 4 kB / 442.6 MB, free: 400 kB / 314.7 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.0005738/0.4419, allocations: 418.3 kB / 443 MB, free: 15.95 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.442, allocations: 8.031 kB / 443 MB, free: 15.94 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.676e-05/0.4421, allocations: 15.81 kB / 443 MB, free: 15.93 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002782/0.4423, allocations: 196 kB / 443.2 MB, free: 15.7 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.61e-05/0.4424, allocations: 8 kB / 443.2 MB, free: 15.7 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.849e-05/0.4424, allocations: 12.77 kB / 443.2 MB, free: 15.68 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002212/0.4426, allocations: 79.42 kB / 443.3 MB, free: 15.63 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002375/0.4429, allocations: 105.7 kB / 443.4 MB, free: 15.54 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.675e-05/0.4429, allocations: 7.891 kB / 443.4 MB, free: 15.54 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.921e-05/0.443, allocations: 7.938 kB / 443.4 MB, free: 15.53 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.443, allocations: 4 kB / 443.4 MB, free: 15.52 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009742/0.444, allocations: 0.4933 MB / 443.9 MB, free: 15.05 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001472/0.4441, allocations: 67.94 kB / 444 MB, free: 15 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.992e-05/0.4442, allocations: 20.61 kB / 444 MB, free: 14.98 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.328e-05/0.4442, allocations: 0 / 444 MB, free: 14.98 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.777e-05/0.4442, allocations: 34.19 kB / 444 MB, free: 14.94 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.956e-06/0.4443, allocations: 4 kB / 444 MB, free: 14.93 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0009487/0.4452, allocations: 0.5212 MB / 444.6 MB, free: 14.36 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.698e-05/0.4453, allocations: 51.41 kB / 444.6 MB, free: 14.3 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000127/0.4454, allocations: 111.9 kB / 444.7 MB, free: 14.19 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.127e-05/0.4454, allocations: 25.7 kB / 444.7 MB, free: 14.16 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.4455, allocations: 147 kB / 444.9 MB, free: 14.02 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.38e-05/0.4456, allocations: 34.64 kB / 444.9 MB, free: 13.98 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.71e-06/0.4456, allocations: 0 / 444.9 MB, free: 13.98 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.4458, allocations: 326.5 kB / 445.2 MB, free: 13.66 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.119e-05/0.4458, allocations: 21.81 kB / 445.3 MB, free: 13.65 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.476e-05/0.4459, allocations: 73.75 kB / 445.3 MB, free: 13.57 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.518e-05/0.446, allocations: 43.03 kB / 445.4 MB, free: 13.54 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.446, allocations: 4 kB / 445.4 MB, free: 13.53 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001968/0.4462, allocations: 126.2 kB / 445.5 MB, free: 13.42 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.4462, allocations: 8.188 kB / 445.5 MB, free: 13.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.4462, allocations: 4 kB / 445.5 MB, free: 13.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.4463, allocations: 4 kB / 445.5 MB, free: 13.4 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002018/0.4465, allocations: 39.17 kB / 445.6 MB, free: 13.37 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/0.4465, allocations: 4 kB / 445.6 MB, free: 13.36 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.941e-05/0.4466, allocations: 11.95 kB / 445.6 MB, free: 13.35 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.398e-05/0.4466, allocations: 7.984 kB / 445.6 MB, free: 13.34 MB / 330.7 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.154e-05/0.4467, allocations: 109.3 kB / 445.7 MB, free: 13.23 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001421/0.4468, allocations: 87.41 kB / 445.8 MB, free: 13.15 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.785e-05/0.4469, allocations: 7.906 kB / 445.8 MB, free: 13.14 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.974e-05/0.4469, allocations: 12.31 kB / 445.8 MB, free: 13.14 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.4469, allocations: 0 / 445.8 MB, free: 13.14 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.4469, allocations: 3.953 kB / 445.8 MB, free: 13.13 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.447, allocations: 3.984 kB / 445.8 MB, free: 13.13 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004496/0.4474, allocations: 398.7 kB / 446.2 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.4474, allocations: 0 / 446.2 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000144/0.4476, allocations: 31.92 kB / 446.2 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.401e-06/0.4476, allocations: 3.953 kB / 446.2 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.013e-05/0.4476, allocations: 0 / 446.2 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.4476, allocations: 7.984 kB / 446.2 MB, free: 12.69 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.4476, allocations: 0 / 446.2 MB, free: 12.69 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002837/0.4479, allocations: 251 kB / 446.5 MB, free: 12.44 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.815e-05/0.448, allocations: 85.05 kB / 446.6 MB, free: 12.34 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.106e-05/0.448, allocations: 3.938 kB / 446.6 MB, free: 12.33 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.308e-05/0.4481, allocations: 7.984 kB / 446.6 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.948e-05/0.4482, allocations: 6.438 kB / 446.6 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.189e-05/0.4482, allocations: 12.05 kB / 446.6 MB, free: 12.31 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.64e-05/0.4483, allocations: 90.22 kB / 446.7 MB, free: 12.23 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4483, allocations: 0 / 446.7 MB, free: 12.23 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003004/0.4486, allocations: 24 kB / 446.7 MB, free: 12.2 MB / 330.7 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.0008215/0.4494, allocations: 0.9191 MB / 447.6 MB, free: 11.27 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001684/0.4496, allocations: 76.12 kB / 447.7 MB, free: 11.22 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.4496, allocations: 0 / 447.7 MB, free: 11.22 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.323e-05/0.4497, allocations: 31.25 kB / 447.7 MB, free: 11.2 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002759/0.45, allocations: 12.55 kB / 447.7 MB, free: 11.18 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008811/0.4509, allocations: 328.5 kB / 448.1 MB, free: 10.83 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003603/0.4512, allocations: 0.7197 MB / 448.8 MB, free: 10.09 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.125e-05/0.4513, allocations: 12.88 kB / 448.8 MB, free: 10.07 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.43e-05/0.4514, allocations: 38.92 kB / 448.8 MB, free: 10.05 MB / 330.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4514, allocations: 0 / 448.8 MB, free: 10.05 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04511/0.4965, allocations: 1.765 MB / 450.6 MB, free: 8.289 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002565/0.4969, allocations: 144.4 kB / 450.7 MB, free: 8.09 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.739/2.236, allocations: 0 / 450.7 MB, free: 8.09 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Sensors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Sensors.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors_res.mat does not exist to compare? outputFormat=mat