Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.979/1.979, allocations: 390.3 MB / 402.8 MB, free: 6.676 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.001035/0.001035, allocations: 184.2 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 221.3 MB / 0.7915 GB, free: 5.391 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.0009859/0.0009861, allocations: 95.83 kB / 0.9317 GB, free: 5.695 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.479e-05/3.483e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3268/0.3268, allocations: 143 MB / 1.219 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9004/1.227, allocations: 151.9 MB / 1.367 GB, free: 2.148 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002062/1.228, allocations: 72.45 kB / 1.367 GB, free: 2.109 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.009368/1.237, allocations: 3.531 MB / 1.371 GB, free: 15.1 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.363e-06/1.237, allocations: 0 / 1.371 GB, free: 15.1 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.369e-05/1.237, allocations: 4 kB / 1.371 GB, free: 15.09 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.000558/1.238, allocations: 445.2 kB / 1.371 GB, free: 14.63 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/1.238, allocations: 12.02 kB / 1.371 GB, free: 14.62 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.862e-05/1.238, allocations: 41 kB / 1.371 GB, free: 14.57 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.887e-05/1.238, allocations: 15.81 kB / 1.371 GB, free: 14.56 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002542/1.238, allocations: 234.9 kB / 1.371 GB, free: 14.3 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.51e-05/1.238, allocations: 7.938 kB / 1.371 GB, free: 14.29 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.859e-05/1.238, allocations: 11.88 kB / 1.371 GB, free: 14.29 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002045/1.238, allocations: 136.1 kB / 1.372 GB, free: 14.16 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/1.238, allocations: 0 / 1.372 GB, free: 14.16 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/1.238, allocations: 6.875 kB / 1.372 GB, free: 14.15 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/1.238, allocations: 0 / 1.372 GB, free: 14.15 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.842e-05/1.238, allocations: 57.08 kB / 1.372 GB, free: 14.11 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009248/1.239, allocations: 0.7508 MB / 1.372 GB, free: 13.34 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.811e-05/1.239, allocations: 42.25 kB / 1.372 GB, free: 13.3 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.045e-05/1.239, allocations: 25.3 kB / 1.372 GB, free: 13.28 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.881e-05/1.239, allocations: 0 / 1.372 GB, free: 13.28 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000159/1.24, allocations: 112.4 kB / 1.373 GB, free: 13.16 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.062e-06/1.24, allocations: 0 / 1.373 GB, free: 13.16 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.000218/1.24, allocations: 114.7 kB / 1.373 GB, free: 13.05 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.627e-05/1.24, allocations: 135.8 kB / 1.373 GB, free: 12.89 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001473/1.24, allocations: 171.3 kB / 1.373 GB, free: 12.73 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.768e-05/1.24, allocations: 29.14 kB / 1.373 GB, free: 12.7 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.236e-05/1.24, allocations: 138.9 kB / 1.373 GB, free: 12.59 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.824e-05/1.24, allocations: 27.06 kB / 1.373 GB, free: 12.56 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.484e-06/1.24, allocations: 7.312 kB / 1.373 GB, free: 12.56 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001129/1.24, allocations: 329.8 kB / 1.373 GB, free: 12.23 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.969e-05/1.24, allocations: 25.62 kB / 1.373 GB, free: 12.21 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001027/1.241, allocations: 135.3 kB / 1.374 GB, free: 12.05 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.138e-05/1.241, allocations: 51.02 kB / 1.374 GB, free: 12 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/1.241, allocations: 3.938 kB / 1.374 GB, free: 12 MB / 0.8386 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002357/1.241, allocations: 179.1 kB / 1.374 GB, free: 11.84 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/1.241, allocations: 9.406 kB / 1.374 GB, free: 11.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/1.241, allocations: 4 kB / 1.374 GB, free: 11.83 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/1.241, allocations: 4 kB / 1.374 GB, free: 11.83 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001281/1.241, allocations: 39.86 kB / 1.374 GB, free: 11.79 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.302e-05/1.241, allocations: 15.88 kB / 1.374 GB, free: 11.78 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001327/1.241, allocations: 24.2 kB / 1.374 GB, free: 11.75 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.323e-05/1.241, allocations: 11.88 kB / 1.374 GB, free: 11.75 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.133e-05/1.241, allocations: 120.8 kB / 1.374 GB, free: 11.62 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.047e-05/1.241, allocations: 19.72 kB / 1.374 GB, free: 11.61 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.045e-05/1.241, allocations: 23.95 kB / 1.374 GB, free: 11.6 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/1.241, allocations: 4 kB / 1.374 GB, free: 11.59 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/1.241, allocations: 0 / 1.374 GB, free: 11.59 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/1.241, allocations: 3.953 kB / 1.374 GB, free: 11.59 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005675/1.242, allocations: 0.4919 MB / 1.375 GB, free: 11.08 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/1.242, allocations: 4 kB / 1.375 GB, free: 11.08 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001137/1.242, allocations: 19.92 kB / 1.375 GB, free: 11.06 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/1.242, allocations: 4 kB / 1.375 GB, free: 11.05 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/1.242, allocations: 0 / 1.375 GB, free: 11.05 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.27e-06/1.242, allocations: 11.95 kB / 1.375 GB, free: 11.04 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/1.242, allocations: 3.938 kB / 1.375 GB, free: 11.04 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002942/1.242, allocations: 359.5 kB / 1.375 GB, free: 10.68 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.742e-05/1.243, allocations: 96.89 kB / 1.375 GB, free: 10.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.363e-05/1.243, allocations: 7 kB / 1.375 GB, free: 10.56 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001608/1.243, allocations: 15.98 kB / 1.375 GB, free: 10.55 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.876e-05/1.243, allocations: 10.61 kB / 1.375 GB, free: 10.54 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.717e-06/1.243, allocations: 4 kB / 1.375 GB, free: 10.54 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 9.763e-05/1.243, allocations: 142.7 kB / 1.375 GB, free: 10.41 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.243, allocations: 4 kB / 1.375 GB, free: 10.41 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002757/1.243, allocations: 27.5 kB / 1.375 GB, free: 10.39 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.0006032/1.244, allocations: 1.105 MB / 1.376 GB, free: 9.27 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001771/1.244, allocations: 84.75 kB / 1.376 GB, free: 9.207 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/1.244, allocations: 0 / 1.376 GB, free: 9.207 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.986e-05/1.244, allocations: 42.55 kB / 1.376 GB, free: 9.172 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003846/1.244, allocations: 60.69 kB / 1.377 GB, free: 9.125 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006157/1.245, allocations: 314.9 kB / 1.377 GB, free: 8.801 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002629/1.245, allocations: 0.7325 MB / 1.378 GB, free: 8.043 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 7.838e-05/1.245, allocations: 21.61 kB / 1.378 GB, free: 8.02 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.903e-05/1.246, allocations: 52.23 kB / 1.378 GB, free: 7.996 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/1.246, allocations: 0 / 1.378 GB, free: 7.996 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01452/1.26, allocations: 3.518 MB / 1.381 GB, free: 4.633 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001925/1.26, allocations: 170 kB / 1.381 GB, free: 4.398 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.645/2.905, allocations: 1.969 kB / 1.381 GB, free: 4.398 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat does not exist to compare? outputFormat=mat