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/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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_9_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_9_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.0007981/0.0007981, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.0009437/0.0009437, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 223.3 MB / 240 MB, free: 5.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.463/2.463, allocations: 390.9 MB / 0.666 GB, free: 2.477 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004681/0.0004681, allocations: 8 kB / 0.8154 GB, free: 13.63 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9316/0.9321, allocations: 142.4 MB / 0.9544 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.001988/0.9342, allocations: 1.478 MB / 0.9559 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008409/0.935, allocations: 0.5123 MB / 0.9564 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001062/0.9352, allocations: 2.312 kB / 0.9564 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001249/0.9353, allocations: 17.14 kB / 0.9564 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.245e-05/0.9354, allocations: 31.62 kB / 0.9564 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002071/0.9356, allocations: 53.38 kB / 0.9565 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002032/0.9358, allocations: 146 kB / 0.9566 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001484/0.9359, allocations: 37.61 kB / 0.9567 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.691e-05/0.936, allocations: 44.55 kB / 0.9567 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.739e-05/0.9361, allocations: 52.16 kB / 0.9567 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.435e-05/0.9362, allocations: 9 kB / 0.9568 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.932e-05/0.9362, allocations: 4.344 kB / 0.9568 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.879e-05/0.9362, allocations: 15.7 kB / 0.9568 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.729e-05/0.9363, allocations: 50.55 kB / 0.9568 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001194/0.9364, allocations: 83.86 kB / 0.9569 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.9364, allocations: 0 / 0.9569 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.623e-06/0.9364, allocations: 1.25 kB / 0.9569 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.632e-06/0.9364, allocations: 0 / 0.9569 GB, free: 5.746 MB / 0.7169 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.0006732/0.9371, allocations: 461 kB / 0.9573 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.9372, allocations: 9.25 kB / 0.9574 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.355e-05/0.9372, allocations: 25.53 kB / 0.9574 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000217/0.9374, allocations: 223 kB / 0.9576 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.081e-05/0.9375, allocations: 13.34 kB / 0.9576 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.268e-05/0.9375, allocations: 13.03 kB / 0.9576 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002725/0.9378, allocations: 154.7 kB / 0.9578 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.9378, allocations: 0 / 0.9578 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.538e-05/0.9378, allocations: 1.781 kB / 0.9578 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.726e-06/0.9378, allocations: 11.48 kB / 0.9578 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002268/0.9381, allocations: 82.89 kB / 0.9579 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007981/0.9389, allocations: 0.7403 MB / 0.9586 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001417/0.939, allocations: 62.59 kB / 0.9586 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.903e-05/0.9391, allocations: 36.59 kB / 0.9587 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.476e-05/0.9392, allocations: 2.062 kB / 0.9587 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002643/0.9394, allocations: 136.8 kB / 0.9588 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.523e-06/0.9395, allocations: 1.156 kB / 0.9588 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0004724/0.9399, allocations: 177.6 kB / 0.959 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.076e-05/0.94, allocations: 136.1 kB / 0.9591 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00015/0.9402, allocations: 198.1 kB / 0.9593 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.9402, allocations: 30.61 kB / 0.9593 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.235e-05/0.9403, allocations: 129.1 kB / 0.9594 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.103e-05/0.9403, allocations: 36.31 kB / 0.9595 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.241e-06/0.9403, allocations: 0 / 0.9595 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.446e-05/0.9404, allocations: 331.3 kB / 0.9598 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001119/0.9405, allocations: 42.97 kB / 0.9598 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001484/0.9407, allocations: 146 kB / 0.96 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001294/0.9408, allocations: 66.47 kB / 0.96 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.9408, allocations: 1.375 kB / 0.96 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000373/0.9412, allocations: 221.5 kB / 0.9603 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.9412, allocations: 10.86 kB / 0.9603 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.9412, allocations: 8.078 kB / 0.9603 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.9413, allocations: 5.5 kB / 0.9603 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001219/0.9414, allocations: 38.42 kB / 0.9603 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/0.9414, allocations: 5.5 kB / 0.9603 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001357/0.9415, allocations: 32.33 kB / 0.9603 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.613e-05/0.9416, allocations: 12.19 kB / 0.9604 GB, free: 2.656 MB / 0.7169 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,sampleTrigger.y,$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 9.642e-05/0.9417, allocations: 139.9 kB / 0.9605 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.762e-05/0.9417, allocations: 17.44 kB / 0.9605 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.259e-05/0.9417, allocations: 18.91 kB / 0.9605 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.9418, allocations: 13.31 kB / 0.9605 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.9418, allocations: 5.312 kB / 0.9605 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.9418, allocations: 1.375 kB / 0.9605 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006122/0.9424, allocations: 0.5243 MB / 0.9611 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.9424, allocations: 0 / 0.9611 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001062/0.9425, allocations: 23.06 kB / 0.9611 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.9425, allocations: 1.375 kB / 0.9611 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.938e-05/0.9426, allocations: 7.062 kB / 0.9611 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.235e-06/0.9426, allocations: 1.375 kB / 0.9611 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.9426, allocations: 13.28 kB / 0.9611 GB, free: 1.98 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004387/0.943, allocations: 362.7 kB / 0.9614 GB, free: 1.695 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.98e-05/0.9431, allocations: 97.83 kB / 0.9615 GB, free: 1.586 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.024e-05/0.9431, allocations: 13.95 kB / 0.9616 GB, free: 1.574 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001531/0.9433, allocations: 15.02 kB / 0.9616 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.877e-05/0.9433, allocations: 18.3 kB / 0.9616 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.179e-05/0.9433, allocations: 11.69 kB / 0.9616 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.602e-05/0.9434, allocations: 141 kB / 0.9617 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.9434, allocations: 0 / 0.9617 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000328/0.9438, allocations: 27.03 kB / 0.9618 GB, free: 1.441 MB / 0.7169 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 (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.0001229/0.9439, allocations: 106 kB / 0.9619 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003232/0.9442, allocations: 121.3 kB / 0.962 GB, free: 1.301 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.9442, allocations: 0.9688 kB / 0.962 GB, free: 1.301 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000148/0.9444, allocations: 58.19 kB / 0.962 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005438/0.9449, allocations: 56.78 kB / 0.9621 GB, free: 1.25 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005852/0.9455, allocations: 392.4 kB / 0.9625 GB, free: 0.9258 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001618/0.9457, allocations: 0.7245 MB / 0.9632 GB, free: 212 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.525e-05/0.9458, allocations: 19.97 kB / 0.9632 GB, free: 200 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.371e-05/0.9458, allocations: 16.84 kB / 0.9632 GB, free: 192 kB / 0.7169 GB Notification: Performance of SimCode: time 1.142e-06/0.9459, allocations: 0 / 0.9632 GB, free: 192 kB / 0.7169 GB Notification: Performance of Templates: time 0.004637/0.9505, allocations: 1.752 MB / 0.9649 GB, free: 15.32 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (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 & ./Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches