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.199/2.199, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.0009833/0.0009833, allocations: 180.8 kB / 487.4 MB, free: 5.039 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.539/1.539, allocations: 221.5 MB / 0.7824 GB, free: 1.035 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008675/0.0008675, allocations: 95.83 kB / 0.9219 GB, free: 2.277 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.049e-05/2.05e-05, allocations: 8 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2353/0.2353, allocations: 142.4 MB / 1.206 GB, free: 43.9 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8239/1.059, allocations: 150.4 MB / 1.353 GB, free: 18.11 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000191/1.06, allocations: 72.42 kB / 1.353 GB, free: 18.11 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.009281/1.069, allocations: 3.508 MB / 1.356 GB, free: 33.6 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.985e-06/1.069, allocations: 0 / 1.356 GB, free: 33.6 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.337e-05/1.069, allocations: 5.406 kB / 1.356 GB, free: 33.6 MB / 0.8386 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.0005278/1.069, allocations: 437.8 kB / 1.357 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/1.069, allocations: 8.484 kB / 1.357 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.484e-05/1.07, allocations: 23.27 kB / 1.357 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002239/1.07, allocations: 239.5 kB / 1.357 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.143e-05/1.07, allocations: 7.781 kB / 1.357 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.937e-05/1.07, allocations: 3.969 kB / 1.357 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.894e-05/1.07, allocations: 40.75 kB / 1.357 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001648/1.07, allocations: 119.3 kB / 1.357 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/1.07, allocations: 0 / 1.357 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.44e-05/1.07, allocations: 3.5 kB / 1.357 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/1.07, allocations: 4.5 kB / 1.357 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008387/1.071, allocations: 0.7216 MB / 1.358 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 5.841e-05/1.071, allocations: 32.67 kB / 1.358 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.32e-05/1.071, allocations: 15.48 kB / 1.358 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.125e-05/1.071, allocations: 2.672 kB / 1.358 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001736/1.071, allocations: 111 kB / 1.358 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.533e-06/1.071, allocations: 0 / 1.358 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0001953/1.072, allocations: 99.56 kB / 1.358 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.828e-05/1.072, allocations: 135.8 kB / 1.358 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001136/1.072, allocations: 153.6 kB / 1.359 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.435e-05/1.072, allocations: 35.95 kB / 1.359 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.354e-05/1.072, allocations: 130.9 kB / 1.359 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.129e-05/1.072, allocations: 34.31 kB / 1.359 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.583e-06/1.072, allocations: 0 / 1.359 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001107/1.072, allocations: 328.3 kB / 1.359 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.274e-05/1.072, allocations: 26.81 kB / 1.359 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.005e-05/1.072, allocations: 131.3 kB / 1.359 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.727e-05/1.072, allocations: 40.84 kB / 1.359 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/1.072, allocations: 3.953 kB / 1.359 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001916/1.072, allocations: 155.9 kB / 1.359 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/1.072, allocations: 7.688 kB / 1.359 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/1.072, allocations: 3.875 kB / 1.359 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/1.072, allocations: 3.625 kB / 1.359 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001274/1.073, allocations: 41.64 kB / 1.359 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/1.073, allocations: 7.812 kB / 1.359 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001319/1.073, allocations: 25.48 kB / 1.359 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.222e-05/1.073, allocations: 11.69 kB / 1.359 GB, free: 31.19 MB / 0.8386 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 () * 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 7.38e-05/1.073, allocations: 116 kB / 1.36 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001214/1.073, allocations: 102.1 kB / 1.36 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.039e-05/1.073, allocations: 27.53 kB / 1.36 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.739e-05/1.073, allocations: 16.56 kB / 1.36 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/1.073, allocations: 0 / 1.36 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/1.073, allocations: 3.812 kB / 1.36 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/1.073, allocations: 0 / 1.36 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004769/1.073, allocations: 466.1 kB / 1.36 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/1.073, allocations: 0 / 1.36 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001182/1.074, allocations: 32.78 kB / 1.36 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/1.074, allocations: 3.812 kB / 1.36 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/1.074, allocations: 0 / 1.36 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/1.074, allocations: 3.875 kB / 1.36 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/1.074, allocations: 0 / 1.36 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002584/1.074, allocations: 352.6 kB / 1.361 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.255e-05/1.074, allocations: 92.73 kB / 1.361 GB, free: 30.26 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.511e-05/1.074, allocations: 10.61 kB / 1.361 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001626/1.074, allocations: 18.06 kB / 1.361 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.807e-05/1.074, allocations: 12.56 kB / 1.361 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/1.074, allocations: 11.11 kB / 1.361 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.312e-05/1.074, allocations: 119.9 kB / 1.361 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.41e-07/1.074, allocations: 3.812 kB / 1.361 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002969/1.075, allocations: 19.22 kB / 1.361 GB, free: 30.17 MB / 0.8386 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 () * 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.0006306/1.075, allocations: 1.096 MB / 1.362 GB, free: 29.15 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001377/1.075, allocations: 74.84 kB / 1.362 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/1.075, allocations: 0 / 1.362 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.003e-05/1.075, allocations: 34.03 kB / 1.362 GB, free: 29.13 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004073/1.076, allocations: 56.2 kB / 1.362 GB, free: 29.13 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005755/1.076, allocations: 310.6 kB / 1.362 GB, free: 28.92 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002738/1.077, allocations: 0.7253 MB / 1.363 GB, free: 28.23 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 7.088e-05/1.077, allocations: 25.7 kB / 1.363 GB, free: 28.22 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.969e-05/1.077, allocations: 46.61 kB / 1.363 GB, free: 28.21 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/1.077, allocations: 0 / 1.363 GB, free: 28.21 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02611/1.103, allocations: 3.001 MB / 1.366 GB, free: 28.03 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002266/1.103, allocations: 148.6 kB / 1.366 GB, free: 27.84 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.645/2.748, allocations: 0 / 1.366 GB, free: 27.84 MB / 0.8386 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