Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.6/2.6, allocations: 390.3 MB / 405.3 MB, free: 13.43 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 179.3 kB / 498.1 MB, free: 5.668 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.571/1.571, allocations: 223.2 MB / 0.7948 GB, free: 17.88 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008725/0.0008725, allocations: 104.2 kB / 0.9346 GB, free: 6.176 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003769/0.0003768, allocations: 11.12 kB / 1.084 GB, free: 221.6 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2875/0.2879, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1736/0.4615, allocations: 151.2 MB / 1.371 GB, free: 10.73 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002403/0.4618, allocations: 79.89 kB / 1.371 GB, free: 10.65 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.009567/0.4714, allocations: 3.529 MB / 1.374 GB, free: 7.109 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.054e-06/0.4714, allocations: 4 kB / 1.374 GB, free: 7.105 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.467e-05/0.4714, allocations: 0 / 1.374 GB, free: 7.105 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0006664/0.4721, allocations: 467.1 kB / 1.375 GB, free: 6.598 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.4722, allocations: 15.97 kB / 1.375 GB, free: 6.582 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.277e-05/0.4722, allocations: 42.55 kB / 1.375 GB, free: 6.531 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.545e-05/0.4723, allocations: 19.81 kB / 1.375 GB, free: 6.512 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002944/0.4726, allocations: 239.4 kB / 1.375 GB, free: 6.238 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.564e-05/0.4726, allocations: 12 kB / 1.375 GB, free: 6.227 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.018e-05/0.4726, allocations: 12 kB / 1.375 GB, free: 6.215 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002887/0.4729, allocations: 149.8 kB / 1.375 GB, free: 6.047 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.4729, allocations: 4 kB / 1.375 GB, free: 6.043 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.55e-05/0.473, allocations: 4 kB / 1.375 GB, free: 6.039 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.473, allocations: 4 kB / 1.375 GB, free: 6.035 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002452/0.4732, allocations: 81.56 kB / 1.375 GB, free: 5.957 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001054/0.4743, allocations: 0.7551 MB / 1.376 GB, free: 5.137 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001623/0.4745, allocations: 58.48 kB / 1.376 GB, free: 5.07 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.191e-05/0.4745, allocations: 0 / 1.376 GB, free: 5.07 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002776/0.4748, allocations: 130.7 kB / 1.376 GB, free: 4.918 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=11): time 1.513e-06/0.4748, allocations: 0 / 1.376 GB, free: 4.918 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11): time 0.0005179/0.4753, allocations: 181.5 kB / 1.376 GB, free: 4.734 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.845e-05/0.4754, allocations: 136.5 kB / 1.376 GB, free: 4.57 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001594/0.4756, allocations: 178.2 kB / 1.376 GB, free: 4.391 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.959e-05/0.4756, allocations: 29.7 kB / 1.377 GB, free: 4.355 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 7.826e-05/0.4757, allocations: 131.8 kB / 1.377 GB, free: 4.223 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.388e-05/0.4757, allocations: 35.7 kB / 1.377 GB, free: 4.188 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.292e-06/0.4758, allocations: 0 / 1.377 GB, free: 4.188 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001242/0.4759, allocations: 330.8 kB / 1.377 GB, free: 3.855 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001328/0.476, allocations: 44.34 kB / 1.377 GB, free: 3.809 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001922/0.4762, allocations: 153.2 kB / 1.377 GB, free: 3.609 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001504/0.4764, allocations: 67.84 kB / 1.377 GB, free: 3.543 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.4764, allocations: 4 kB / 1.377 GB, free: 3.539 MB / 0.8698 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004112/0.4768, allocations: 209.3 kB / 1.377 GB, free: 3.328 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.4768, allocations: 9.906 kB / 1.377 GB, free: 3.32 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.729e-06/0.4769, allocations: 8 kB / 1.377 GB, free: 3.312 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.904e-05/0.4769, allocations: 11.97 kB / 1.377 GB, free: 3.301 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.477, allocations: 35.97 kB / 1.378 GB, free: 3.266 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.477, allocations: 7.938 kB / 1.378 GB, free: 3.258 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000154/0.4772, allocations: 35.78 kB / 1.378 GB, free: 3.223 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.309e-05/0.4772, allocations: 8 kB / 1.378 GB, free: 3.215 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,intWitRes1.trigger,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001143/0.4773, allocations: 143.8 kB / 1.378 GB, free: 3.066 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.913e-05/0.4774, allocations: 15.81 kB / 1.378 GB, free: 3.051 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.542e-05/0.4774, allocations: 17.41 kB / 1.378 GB, free: 3.035 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.4774, allocations: 4 kB / 1.378 GB, free: 3.031 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.319e-06/0.4774, allocations: 0 / 1.378 GB, free: 3.031 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.4774, allocations: 3.984 kB / 1.378 GB, free: 3.027 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007885/0.4782, allocations: 0.5249 MB / 1.378 GB, free: 2.445 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.4783, allocations: 3.984 kB / 1.378 GB, free: 2.441 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001236/0.4784, allocations: 23.92 kB / 1.378 GB, free: 2.418 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.4784, allocations: 4 kB / 1.378 GB, free: 2.414 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.772e-05/0.4784, allocations: 8 kB / 1.378 GB, free: 2.406 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/0.4784, allocations: 4.266 kB / 1.378 GB, free: 2.402 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.4784, allocations: 0 / 1.378 GB, free: 2.402 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005467/0.479, allocations: 413.2 kB / 1.379 GB, free: 1.957 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.578e-05/0.4791, allocations: 100.8 kB / 1.379 GB, free: 1.84 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.613e-05/0.4791, allocations: 4 kB / 1.379 GB, free: 1.836 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000178/0.4793, allocations: 24.02 kB / 1.379 GB, free: 1.812 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.541e-05/0.4793, allocations: 7.984 kB / 1.379 GB, free: 1.805 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.073e-05/0.4794, allocations: 4 kB / 1.379 GB, free: 1.801 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0001129/0.4795, allocations: 144.4 kB / 1.379 GB, free: 1.66 MB / 0.8698 GB Notification: Performance of sort global known variables: time 2e-07/0.4795, allocations: 0 / 1.379 GB, free: 1.66 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0003202/0.4798, allocations: 32 kB / 1.379 GB, free: 1.629 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,intWitRes1.trigger,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0008728/0.4807, allocations: 1.152 MB / 1.38 GB, free: 444 kB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003213/0.481, allocations: 128.6 kB / 1.38 GB, free: 316 kB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.481, allocations: 0 / 1.38 GB, free: 316 kB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001444/0.4812, allocations: 56.03 kB / 1.38 GB, free: 260 kB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004185/0.4816, allocations: 60.19 kB / 1.38 GB, free: 200 kB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002696/0.4843, allocations: 3.514 MB / 1.384 GB, free: 12.54 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003101/0.4847, allocations: 0.7245 MB / 1.384 GB, free: 11.79 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 9.41e-05/0.4848, allocations: 21.53 kB / 1.385 GB, free: 11.77 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.151e-05/0.4848, allocations: 51.42 kB / 1.385 GB, free: 11.72 MB / 0.8855 GB Notification: Performance of SimCode: time 5.71e-07/0.4848, allocations: 0 / 1.385 GB, free: 11.72 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01503/0.4999, allocations: 3.552 MB / 1.388 GB, free: 8.316 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001859/0.5001, allocations: 183.4 kB / 1.388 GB, free: 8.074 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.743/2.243, allocations: 0 / 1.388 GB, free: 8.074 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat does not exist to compare? outputFormat=mat