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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007566/0.007566, allocations: 102.3 kB / 15.73 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001798/0.001798, allocations: 193.6 kB / 16.67 MB, free: 5.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.576/2.576, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 63.91 kB / 1.054 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9577/0.959, allocations: 157.4 MB / 1.207 GB, free: 13.78 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003057/0.9621, allocations: 1.822 MB / 1.209 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001047/0.9632, allocations: 0.526 MB / 1.21 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001613/0.9634, allocations: 7.938 kB / 1.21 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.000173/0.9636, allocations: 23.72 kB / 1.21 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001073/0.9637, allocations: 31.73 kB / 1.21 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002739/0.964, allocations: 67.84 kB / 1.21 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002609/0.9643, allocations: 175.4 kB / 1.21 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001723/0.9644, allocations: 49.64 kB / 1.21 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001031/0.9646, allocations: 51.73 kB / 1.21 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.977e-05/0.9647, allocations: 67.62 kB / 1.21 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.057e-05/0.9647, allocations: 12 kB / 1.21 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 2.115e-05/0.9647, allocations: 8 kB / 1.21 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.119e-05/0.9648, allocations: 27.91 kB / 1.21 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 7.948e-05/0.9649, allocations: 63.55 kB / 1.21 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002081/0.9651, allocations: 141.8 kB / 1.21 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.9651, allocations: 0 / 1.21 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.693e-06/0.9651, allocations: 0 / 1.21 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.476e-06/0.9651, allocations: 0 / 1.21 GB, free: 10.7 MB / 0.9356 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.0008016/0.9659, allocations: 478.7 kB / 1.211 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.966, allocations: 8.031 kB / 1.211 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.138e-05/0.966, allocations: 42.73 kB / 1.211 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.638e-05/0.9661, allocations: 20.75 kB / 1.211 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003751/0.9665, allocations: 231.9 kB / 1.211 GB, free: 9.844 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.456e-05/0.9665, allocations: 8.375 kB / 1.211 GB, free: 9.836 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.732e-05/0.9665, allocations: 16.38 kB / 1.211 GB, free: 9.82 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003333/0.9669, allocations: 156.4 kB / 1.211 GB, free: 9.648 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.9669, allocations: 0 / 1.211 GB, free: 9.648 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.9669, allocations: 4 kB / 1.211 GB, free: 9.645 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.9669, allocations: 4 kB / 1.211 GB, free: 9.641 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002366/0.9672, allocations: 71.89 kB / 1.211 GB, free: 9.57 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009699/0.9682, allocations: 0.7353 MB / 1.212 GB, free: 8.77 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000147/0.9683, allocations: 46.55 kB / 1.212 GB, free: 8.715 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/0.9684, allocations: 40.72 kB / 1.212 GB, free: 8.672 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.25e-05/0.9685, allocations: 3.984 kB / 1.212 GB, free: 8.668 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002372/0.9687, allocations: 126.7 kB / 1.212 GB, free: 8.52 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=11): time 1.843e-06/0.9687, allocations: 0 / 1.212 GB, free: 8.52 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11): time 0.0004731/0.9692, allocations: 165.5 kB / 1.212 GB, free: 8.352 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.697e-05/0.9693, allocations: 132.8 kB / 1.212 GB, free: 8.191 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001856/0.9695, allocations: 202.9 kB / 1.213 GB, free: 7.98 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.959e-05/0.9695, allocations: 29.7 kB / 1.213 GB, free: 7.945 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 9.034e-05/0.9696, allocations: 128.1 kB / 1.213 GB, free: 7.816 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.325e-05/0.9696, allocations: 31.56 kB / 1.213 GB, free: 7.785 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.409e-05/0.9697, allocations: 45.61 kB / 1.213 GB, free: 7.734 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001194/0.9698, allocations: 330.8 kB / 1.213 GB, free: 7.402 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001304/0.97, allocations: 35.97 kB / 1.213 GB, free: 7.367 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001753/0.9702, allocations: 152.2 kB / 1.213 GB, free: 7.168 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003196/0.9705, allocations: 214.3 kB / 1.214 GB, free: 6.906 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.9705, allocations: 0 / 1.214 GB, free: 6.906 MB / 0.9356 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004012/0.9709, allocations: 201.4 kB / 1.214 GB, free: 6.703 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.9709, allocations: 8 kB / 1.214 GB, free: 6.695 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.9709, allocations: 4.25 kB / 1.214 GB, free: 6.691 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.971, allocations: 4 kB / 1.214 GB, free: 6.688 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/0.9711, allocations: 39.91 kB / 1.214 GB, free: 6.648 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.429e-05/0.9711, allocations: 11.92 kB / 1.214 GB, free: 6.637 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001535/0.9713, allocations: 27.83 kB / 1.214 GB, free: 6.609 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.397e-05/0.9713, allocations: 16.19 kB / 1.214 GB, free: 6.594 MB / 0.9356 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 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001195/0.9714, allocations: 137.7 kB / 1.214 GB, free: 6.449 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.222e-05/0.9715, allocations: 15.81 kB / 1.214 GB, free: 6.434 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.518e-05/0.9715, allocations: 25.39 kB / 1.214 GB, free: 6.406 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-05/0.9715, allocations: 0 / 1.214 GB, free: 6.406 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.9716, allocations: 4 kB / 1.214 GB, free: 6.402 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.9716, allocations: 0 / 1.214 GB, free: 6.402 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007358/0.9723, allocations: 0.5132 MB / 1.215 GB, free: 5.832 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.9723, allocations: 0 / 1.215 GB, free: 5.832 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00012/0.9724, allocations: 19.92 kB / 1.215 GB, free: 5.812 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.95e-06/0.9725, allocations: 7.938 kB / 1.215 GB, free: 5.805 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.9725, allocations: 7.984 kB / 1.215 GB, free: 5.797 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.399e-06/0.9725, allocations: 7.938 kB / 1.215 GB, free: 5.789 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.9725, allocations: 0 / 1.215 GB, free: 5.789 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004777/0.973, allocations: 352.2 kB / 1.215 GB, free: 5.422 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.452e-05/0.973, allocations: 100.8 kB / 1.215 GB, free: 5.305 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.861e-05/0.9731, allocations: 4 kB / 1.215 GB, free: 5.301 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001713/0.9733, allocations: 19.97 kB / 1.215 GB, free: 5.281 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.222e-05/0.9733, allocations: 11.98 kB / 1.215 GB, free: 5.27 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.127e-05/0.9733, allocations: 11.92 kB / 1.215 GB, free: 5.258 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001064/0.9734, allocations: 144.4 kB / 1.215 GB, free: 5.117 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9735, allocations: 0 / 1.215 GB, free: 5.117 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003432/0.9738, allocations: 24 kB / 1.215 GB, free: 5.094 MB / 0.9356 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,sampleTrigger.y,$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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007735/0.9746, allocations: 0.8927 MB / 1.216 GB, free: 4.168 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003113/0.9749, allocations: 115.8 kB / 1.216 GB, free: 4.055 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.9749, allocations: 0 / 1.216 GB, free: 4.055 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001388/0.9751, allocations: 53.03 kB / 1.216 GB, free: 4.004 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005809/0.9757, allocations: 82.45 kB / 1.216 GB, free: 3.93 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002489/0.9782, allocations: 2.271 MB / 1.219 GB, free: 1.477 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002669/0.9784, allocations: 0.732 MB / 1.219 GB, free: 0.7188 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.852e-05/0.9785, allocations: 13.55 kB / 1.219 GB, free: 0.707 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.446e-05/0.9786, allocations: 51.42 kB / 1.219 GB, free: 0.6562 MB / 0.9356 GB Notification: Performance of SimCode: time 9.12e-07/0.9786, allocations: 0 / 1.219 GB, free: 0.6562 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02211/1.001, allocations: 4.111 MB / 1.223 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.66/8.661, allocations: 8 kB / 1.223 GB, free: 12.66 MB / 0.9512 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/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) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,cons.y,booleanPulse.y,intWitRes1.y_start,intWitRes1.y_reset,intWitRes1.y,intWitRes2.y_start,intWitRes2.y,intWitRes2.y_reset_in,intNoReset.y_start,intNoReset.y,intDef.y_start,intDef.y Variables in the result:booleanPulse.period,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,cons.k,cons.y,der(intDef.y),der(intNoReset.y),der(intWitRes1.y),der(intWitRes2.y),intDef.initType,intDef.k,intDef.reset,intDef.u,intDef.y,intDef.y_reset,intDef.y_start,intNoReset.initType,intNoReset.k,intNoReset.reset,intNoReset.u,intNoReset.y,intNoReset.y_reset,intNoReset.y_start,intWitRes1.initType,intWitRes1.k,intWitRes1.reset,intWitRes1.trigger,intWitRes1.u,intWitRes1.y,intWitRes1.y_reset,intWitRes1.y_start,intWitRes2.initType,intWitRes2.k,intWitRes2.reset,intWitRes2.trigger,intWitRes2.u,intWitRes2.y,intWitRes2.y_reset,intWitRes2.y_reset_in,intWitRes2.y_start,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,sampleTrigger.period,sampleTrigger.startTime,sampleTrigger.y,time