Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",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.0009588/0.0009587, 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.357/1.357, allocations: 221.5 MB / 230.3 MB, free: 7.516 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.0009241/0.0009242, allocations: 97.84 kB / 281.2 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.164e-05/2.175e-05, allocations: 4 kB / 337.1 MB, free: 9.926 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09556/0.0956, allocations: 50.41 MB / 387.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3473/0.443, allocations: 75.77 MB / 463.3 MB, free: 2.945 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002576/0.4433, allocations: 77.45 kB / 463.4 MB, free: 2.871 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002933/0.4463, allocations: 1.155 MB / 464.6 MB, free: 1.719 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4463, allocations: 7.938 kB / 464.6 MB, free: 1.711 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.085e-06/0.4463, allocations: 0 / 464.6 MB, free: 1.711 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003526/0.4467, allocations: 347.2 kB / 464.9 MB, free: 1.328 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/0.4467, allocations: 8.031 kB / 464.9 MB, free: 1.32 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.64e-05/0.4468, allocations: 16.42 kB / 464.9 MB, free: 1.305 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000222/0.447, allocations: 182.8 kB / 465.1 MB, free: 1.086 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.439e-05/0.447, allocations: 4 kB / 465.1 MB, free: 1.082 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.508e-06/0.4471, allocations: 0 / 465.1 MB, free: 1.082 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.515e-05/0.4471, allocations: 15.94 kB / 465.1 MB, free: 1.066 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002068/0.4474, allocations: 101.8 kB / 465.2 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.4474, allocations: 3.938 kB / 465.2 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.4474, allocations: 3.984 kB / 465.2 MB, free: 0.9453 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.164e-06/0.4474, allocations: 7.953 kB / 465.2 MB, free: 0.9375 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003194/0.4477, allocations: 242.4 kB / 465.5 MB, free: 0.6602 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001706/0.4479, allocations: 130.3 kB / 465.6 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.167e-05/0.448, allocations: 21.8 kB / 465.6 MB, free: 480 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.601e-05/0.448, allocations: 8 kB / 465.6 MB, free: 472 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.146e-05/0.448, allocations: 30.56 kB / 465.7 MB, free: 432 kB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.223e-06/0.448, allocations: 0 / 465.7 MB, free: 432 kB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001575/0.4482, allocations: 61.48 kB / 465.7 MB, free: 364 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.616e-05/0.4483, allocations: 81.11 kB / 465.8 MB, free: 264 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.4484, allocations: 114.4 kB / 465.9 MB, free: 140 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.4484, allocations: 25.73 kB / 465.9 MB, free: 108 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.532e-05/0.4484, allocations: 92.14 kB / 466 MB, free: 12 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.252e-05/0.4485, allocations: 0 / 466 MB, free: 12 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.515e-06/0.4485, allocations: 0 / 466 MB, free: 12 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.4486, allocations: 314.8 kB / 466.3 MB, free: 15.7 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.558e-05/0.4486, allocations: 8 kB / 466.4 MB, free: 15.69 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.024e-05/0.4486, allocations: 24.19 kB / 466.4 MB, free: 15.65 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.169e-05/0.4487, allocations: 15.94 kB / 466.4 MB, free: 15.64 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.4487, allocations: 0 / 466.4 MB, free: 15.64 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.084e-05/0.4488, allocations: 53.53 kB / 466.4 MB, free: 15.58 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.4488, allocations: 5.562 kB / 466.4 MB, free: 15.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.4488, allocations: 0 / 466.4 MB, free: 15.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.4488, allocations: 4 kB / 466.5 MB, free: 15.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.134e-05/0.4489, allocations: 16.11 kB / 466.5 MB, free: 15.55 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.4489, allocations: 7.891 kB / 466.5 MB, free: 15.55 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.386e-05/0.4489, allocations: 4 kB / 466.5 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.616e-06/0.449, allocations: 8 kB / 466.5 MB, free: 15.54 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 5.875e-05/0.449, allocations: 104.9 kB / 466.6 MB, free: 15.43 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.693e-05/0.4491, allocations: 57.53 kB / 466.6 MB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.602e-05/0.4491, allocations: 7.906 kB / 466.7 MB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.646e-05/0.4492, allocations: 4.344 kB / 466.7 MB, free: 15.35 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.9e-06/0.4492, allocations: 11.98 kB / 466.7 MB, free: 15.34 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.4492, allocations: 0 / 466.7 MB, free: 15.34 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.4492, allocations: 3.984 kB / 466.7 MB, free: 15.34 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001327/0.4493, allocations: 142.2 kB / 466.8 MB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.4494, allocations: 0 / 466.8 MB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.582e-05/0.4494, allocations: 11.98 kB / 466.8 MB, free: 15.15 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.4494, allocations: 0 / 466.8 MB, free: 15.15 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.4494, allocations: 4 kB / 466.8 MB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.4494, allocations: 3.938 kB / 466.8 MB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.4494, allocations: 3.984 kB / 466.8 MB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.994e-05/0.4496, allocations: 170 kB / 467 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.379e-05/0.4496, allocations: 89.27 kB / 467.1 MB, free: 14.84 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.368e-05/0.4496, allocations: 0 / 467.1 MB, free: 14.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.037e-05/0.4497, allocations: 4 kB / 467.1 MB, free: 14.84 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.208e-05/0.4497, allocations: 11.92 kB / 467.1 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.4497, allocations: 8 kB / 467.1 MB, free: 14.82 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.607e-05/0.4498, allocations: 97.95 kB / 467.2 MB, free: 14.72 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4498, allocations: 0 / 467.2 MB, free: 14.72 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002079/0.45, allocations: 4 kB / 467.2 MB, free: 14.72 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0003778/0.4504, allocations: 0.7719 MB / 468 MB, free: 13.91 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.258e-05/0.4505, allocations: 16 kB / 468 MB, free: 13.89 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.4505, allocations: 3.938 kB / 468 MB, free: 13.89 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.137e-05/0.4505, allocations: 4 kB / 468 MB, free: 13.89 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002266/0.4507, allocations: 23.25 kB / 468 MB, free: 13.87 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000362/0.4511, allocations: 126.5 kB / 468.2 MB, free: 13.7 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002684/0.4514, allocations: 0.6966 MB / 468.9 MB, free: 12.98 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.584e-05/0.4514, allocations: 3.984 kB / 468.9 MB, free: 12.97 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.502e-05/0.4515, allocations: 15.44 kB / 468.9 MB, free: 12.96 MB / 346.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4515, allocations: 0 / 468.9 MB, free: 12.96 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.018/0.4695, allocations: 0.9032 MB / 469.8 MB, free: 12.07 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001945/0.4697, allocations: 159.8 kB / 469.9 MB, free: 11.87 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.461/1.931, allocations: 7.875 kB / 469.9 MB, free: 11.86 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat does not exist to compare? outputFormat=mat