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: translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="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",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="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",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.001139/0.001139, allocations: 188.9 kB / 17.34 MB, free: 5.695 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.387/1.387, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.669/2.669, allocations: 461.9 MB / 0.7355 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 59.91 kB / 1.055 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.87/0.8714, allocations: 157.4 MB / 1.208 GB, free: 13.74 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003178/0.8746, allocations: 1.817 MB / 1.21 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0009822/0.8756, allocations: 0.5415 MB / 1.211 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.787e-05/0.8757, allocations: 4 kB / 1.211 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001535/0.8759, allocations: 23.73 kB / 1.211 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.528e-05/0.876, allocations: 23.73 kB / 1.211 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002252/0.8762, allocations: 67.86 kB / 1.211 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.000232/0.8765, allocations: 179.4 kB / 1.211 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001545/0.8766, allocations: 49.64 kB / 1.211 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001005/0.8767, allocations: 51.73 kB / 1.211 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.312e-05/0.8768, allocations: 59.64 kB / 1.211 GB, free: 10.92 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.696e-05/0.8769, allocations: 12 kB / 1.211 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 2.091e-05/0.8769, allocations: 8 kB / 1.211 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.785e-05/0.8769, allocations: 35.89 kB / 1.211 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 6.485e-05/0.877, allocations: 59.61 kB / 1.211 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002336/0.8772, allocations: 141.2 kB / 1.211 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.8773, allocations: 0 / 1.211 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.783e-06/0.8773, allocations: 3.938 kB / 1.211 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.943e-06/0.8773, allocations: 0 / 1.211 GB, free: 10.66 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.0007815/0.8781, allocations: 474.7 kB / 1.212 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.8781, allocations: 8.031 kB / 1.212 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.168e-05/0.8782, allocations: 20.75 kB / 1.212 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003462/0.8785, allocations: 243.8 kB / 1.212 GB, free: 9.848 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.496e-05/0.8785, allocations: 8.375 kB / 1.212 GB, free: 9.84 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.586e-05/0.8786, allocations: 12.38 kB / 1.212 GB, free: 9.828 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003068/0.8789, allocations: 150.2 kB / 1.212 GB, free: 9.66 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.8789, allocations: 4 kB / 1.212 GB, free: 9.656 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.477e-05/0.8789, allocations: 0 / 1.212 GB, free: 9.656 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.879, allocations: 4 kB / 1.212 GB, free: 9.652 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002408/0.8792, allocations: 75.88 kB / 1.212 GB, free: 9.578 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009374/0.8801, allocations: 0.7353 MB / 1.213 GB, free: 8.777 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001527/0.8803, allocations: 46.56 kB / 1.213 GB, free: 8.723 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001157/0.8804, allocations: 36.77 kB / 1.213 GB, free: 8.684 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.778e-05/0.8805, allocations: 4 kB / 1.213 GB, free: 8.68 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003203/0.8808, allocations: 126.7 kB / 1.213 GB, free: 8.531 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=11): time 1.633e-06/0.8808, allocations: 0 / 1.213 GB, free: 8.531 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11): time 0.0005082/0.8813, allocations: 173.5 kB / 1.213 GB, free: 8.355 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.874e-05/0.8814, allocations: 128.5 kB / 1.214 GB, free: 8.199 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001864/0.8816, allocations: 202.9 kB / 1.214 GB, free: 7.988 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.944e-05/0.8816, allocations: 29.7 kB / 1.214 GB, free: 7.953 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.219e-05/0.8817, allocations: 119.9 kB / 1.214 GB, free: 7.832 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.566e-05/0.8817, allocations: 39.69 kB / 1.214 GB, free: 7.793 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.147e-05/0.8818, allocations: 49.67 kB / 1.214 GB, free: 7.738 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001147/0.8819, allocations: 326.8 kB / 1.214 GB, free: 7.41 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.8821, allocations: 39.97 kB / 1.214 GB, free: 7.371 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001875/0.8823, allocations: 146.4 kB / 1.214 GB, free: 7.176 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000315/0.8826, allocations: 206.3 kB / 1.215 GB, free: 6.922 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.8826, allocations: 0 / 1.215 GB, free: 6.922 MB / 0.9356 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003984/0.883, allocations: 205.1 kB / 1.215 GB, free: 6.715 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.883, allocations: 8 kB / 1.215 GB, free: 6.707 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.883, allocations: 4 kB / 1.215 GB, free: 6.703 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.883, allocations: 4.5 kB / 1.215 GB, free: 6.699 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001275/0.8832, allocations: 35.92 kB / 1.215 GB, free: 6.664 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.179e-05/0.8832, allocations: 12.19 kB / 1.215 GB, free: 6.652 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001517/0.8834, allocations: 27.83 kB / 1.215 GB, free: 6.625 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.601e-05/0.8834, allocations: 12 kB / 1.215 GB, free: 6.613 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.0001236/0.8835, allocations: 143.7 kB / 1.215 GB, free: 6.465 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.981e-05/0.8835, allocations: 15.81 kB / 1.215 GB, free: 6.449 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.8e-05/0.8836, allocations: 25.39 kB / 1.215 GB, free: 6.422 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.8836, allocations: 3.938 kB / 1.215 GB, free: 6.418 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.431e-06/0.8836, allocations: 8 kB / 1.215 GB, free: 6.41 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.8836, allocations: 0 / 1.215 GB, free: 6.41 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009223/0.8846, allocations: 0.5054 MB / 1.216 GB, free: 5.848 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.8846, allocations: 0 / 1.216 GB, free: 5.848 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001181/0.8847, allocations: 19.92 kB / 1.216 GB, free: 5.828 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.8847, allocations: 8 kB / 1.216 GB, free: 5.82 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.676e-05/0.8847, allocations: 4 kB / 1.216 GB, free: 5.816 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.029e-06/0.8848, allocations: 4 kB / 1.216 GB, free: 5.812 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/0.8848, allocations: 3.938 kB / 1.216 GB, free: 5.809 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005019/0.8853, allocations: 360.4 kB / 1.216 GB, free: 5.434 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001178/0.8854, allocations: 100.9 kB / 1.216 GB, free: 5.316 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.777e-05/0.8854, allocations: 4.031 kB / 1.216 GB, free: 5.312 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001755/0.8856, allocations: 15.98 kB / 1.216 GB, free: 5.297 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.681e-05/0.8857, allocations: 11.92 kB / 1.216 GB, free: 5.285 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/0.8857, allocations: 8 kB / 1.216 GB, free: 5.277 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001119/0.8858, allocations: 144.4 kB / 1.216 GB, free: 5.137 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8858, allocations: 4 kB / 1.216 GB, free: 5.133 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003795/0.8862, allocations: 31.91 kB / 1.216 GB, free: 5.102 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.0001239/0.8863, allocations: 103.2 kB / 1.216 GB, free: 4.992 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003347/0.8867, allocations: 116.6 kB / 1.217 GB, free: 4.879 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.8867, allocations: 4.062 kB / 1.217 GB, free: 4.875 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001478/0.8868, allocations: 51.91 kB / 1.217 GB, free: 4.824 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000568/0.8874, allocations: 67.28 kB / 1.217 GB, free: 4.762 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006096/0.888, allocations: 386.2 kB / 1.217 GB, free: 4.344 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003673/0.8884, allocations: 0.7203 MB / 1.218 GB, free: 3.598 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.609e-05/0.8885, allocations: 19.44 kB / 1.218 GB, free: 3.578 MB / 0.9356 GB Notification: Performance of SimCode: time 2.3e-07/0.8885, allocations: 0 / 1.218 GB, free: 3.578 MB / 0.9356 GB Notification: Performance of Templates: time 0.004164/0.8927, allocations: 2.146 MB / 1.22 GB, free: 1.441 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (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 & ./Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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) Reference file matches