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.008377/0.008377, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001911/0.001911, allocations: 194.2 kB / 16.67 MB, free: 5.977 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.372/1.372, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.706/2.706, allocations: 461.9 MB / 0.7348 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001862/0.001862, allocations: 59.91 kB / 1.054 GB, free: 7.152 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3346/0.3364, allocations: 157.4 MB / 1.208 GB, free: 9.648 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002937/0.3394, allocations: 1.821 MB / 1.21 GB, free: 7.812 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001166/0.3406, allocations: 0.542 MB / 1.21 GB, free: 7.266 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001218/0.3407, allocations: 11.88 kB / 1.21 GB, free: 7.254 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001311/0.3409, allocations: 23.73 kB / 1.21 GB, free: 7.23 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.05e-05/0.341, allocations: 27.73 kB / 1.21 GB, free: 7.203 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002209/0.3412, allocations: 63.86 kB / 1.21 GB, free: 7.141 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002203/0.3414, allocations: 167.5 kB / 1.21 GB, free: 6.977 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001483/0.3416, allocations: 61.62 kB / 1.21 GB, free: 6.914 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.238e-05/0.3417, allocations: 51.73 kB / 1.21 GB, free: 6.863 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.591e-05/0.3418, allocations: 59.64 kB / 1.21 GB, free: 6.805 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.538e-05/0.3418, allocations: 12 kB / 1.211 GB, free: 6.793 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.759e-05/0.3418, allocations: 8 kB / 1.211 GB, free: 6.785 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.422e-05/0.3419, allocations: 39.83 kB / 1.211 GB, free: 6.746 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.067e-05/0.3419, allocations: 59.61 kB / 1.211 GB, free: 6.688 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001614/0.3421, allocations: 131.4 kB / 1.211 GB, free: 6.559 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3421, allocations: 0 / 1.211 GB, free: 6.559 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.293e-06/0.3421, allocations: 4 kB / 1.211 GB, free: 6.555 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.012e-06/0.3421, allocations: 4 kB / 1.211 GB, free: 6.551 MB / 0.9669 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.0007625/0.3429, allocations: 474.6 kB / 1.211 GB, free: 6.039 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.343, allocations: 12.62 kB / 1.211 GB, free: 6.027 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.002e-05/0.343, allocations: 20.75 kB / 1.211 GB, free: 6.008 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003107/0.3433, allocations: 243.8 kB / 1.211 GB, free: 5.73 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.054e-05/0.3434, allocations: 8.375 kB / 1.211 GB, free: 5.723 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.98e-05/0.3434, allocations: 12.38 kB / 1.211 GB, free: 5.711 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002961/0.3437, allocations: 142.2 kB / 1.212 GB, free: 5.551 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.3437, allocations: 0 / 1.212 GB, free: 5.551 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.679e-05/0.3437, allocations: 8 kB / 1.212 GB, free: 5.543 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.3438, allocations: 4 kB / 1.212 GB, free: 5.539 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002429/0.344, allocations: 75.81 kB / 1.212 GB, free: 5.465 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008917/0.3449, allocations: 0.7353 MB / 1.212 GB, free: 4.664 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001424/0.3451, allocations: 46.55 kB / 1.212 GB, free: 4.609 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.3452, allocations: 36.77 kB / 1.212 GB, free: 4.57 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.886e-05/0.3452, allocations: 4 kB / 1.212 GB, free: 4.566 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002162/0.3454, allocations: 126.7 kB / 1.213 GB, free: 4.418 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=11): time 1.422e-06/0.3454, allocations: 0 / 1.213 GB, free: 4.418 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0004788/0.3459, allocations: 173.7 kB / 1.213 GB, free: 4.242 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.727e-05/0.346, allocations: 136.5 kB / 1.213 GB, free: 4.078 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001691/0.3462, allocations: 196.2 kB / 1.213 GB, free: 3.879 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.012e-05/0.3462, allocations: 29.7 kB / 1.213 GB, free: 3.844 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.353e-05/0.3463, allocations: 123.9 kB / 1.213 GB, free: 3.719 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.228e-05/0.3463, allocations: 39.61 kB / 1.213 GB, free: 3.68 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.35e-05/0.3464, allocations: 37.7 kB / 1.213 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001057/0.3465, allocations: 326.8 kB / 1.214 GB, free: 3.309 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001283/0.3466, allocations: 47.97 kB / 1.214 GB, free: 3.262 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000182/0.3468, allocations: 148.2 kB / 1.214 GB, free: 3.066 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003164/0.3472, allocations: 198.4 kB / 1.214 GB, free: 2.82 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.3472, allocations: 0 / 1.214 GB, free: 2.82 MB / 0.9669 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004116/0.3476, allocations: 209.1 kB / 1.214 GB, free: 2.609 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.3476, allocations: 8 kB / 1.214 GB, free: 2.602 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.3476, allocations: 4 kB / 1.214 GB, free: 2.598 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.3476, allocations: 4 kB / 1.214 GB, free: 2.594 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001395/0.3478, allocations: 31.92 kB / 1.214 GB, free: 2.562 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.3478, allocations: 8.469 kB / 1.214 GB, free: 2.555 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001451/0.348, allocations: 31.83 kB / 1.214 GB, free: 2.523 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.365e-05/0.348, allocations: 8 kB / 1.214 GB, free: 2.516 MB / 0.9669 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.0001074/0.3481, allocations: 134.3 kB / 1.214 GB, free: 2.375 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.256e-05/0.3481, allocations: 23.81 kB / 1.214 GB, free: 2.352 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.434e-05/0.3482, allocations: 21.39 kB / 1.214 GB, free: 2.328 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.3482, allocations: 0 / 1.214 GB, free: 2.328 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.3482, allocations: 7.938 kB / 1.214 GB, free: 2.32 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.3482, allocations: 3.938 kB / 1.214 GB, free: 2.316 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007536/0.349, allocations: 0.5211 MB / 1.215 GB, free: 1.738 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.349, allocations: 4.062 kB / 1.215 GB, free: 1.734 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001193/0.3491, allocations: 19.98 kB / 1.215 GB, free: 1.715 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.3491, allocations: 0 / 1.215 GB, free: 1.715 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.3491, allocations: 4 kB / 1.215 GB, free: 1.711 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.3491, allocations: 4 kB / 1.215 GB, free: 1.707 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.3491, allocations: 3.938 kB / 1.215 GB, free: 1.703 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004999/0.3497, allocations: 353.4 kB / 1.215 GB, free: 1.336 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.854e-05/0.3497, allocations: 100.9 kB / 1.215 GB, free: 1.219 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.348e-05/0.3498, allocations: 4.031 kB / 1.215 GB, free: 1.215 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001727/0.3499, allocations: 15.98 kB / 1.215 GB, free: 1.199 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.893e-05/0.35, allocations: 15.92 kB / 1.215 GB, free: 1.184 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.185e-05/0.35, allocations: 7.938 kB / 1.215 GB, free: 1.176 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001104/0.3501, allocations: 147.3 kB / 1.216 GB, free: 1.031 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.81e-07/0.3501, allocations: 0 / 1.216 GB, free: 1.031 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003333/0.3505, allocations: 28 kB / 1.216 GB, free: 1.004 MB / 0.9669 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.0001188/0.3506, allocations: 107.2 kB / 1.216 GB, free: 0.8906 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003343/0.3509, allocations: 116.7 kB / 1.216 GB, free: 0.7773 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3509, allocations: 0 / 1.216 GB, free: 0.7773 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001518/0.3511, allocations: 51.97 kB / 1.216 GB, free: 0.7266 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005614/0.3517, allocations: 69.8 kB / 1.216 GB, free: 0.6602 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005944/0.3523, allocations: 356.4 kB / 1.216 GB, free: 284 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00029/0.3526, allocations: 0.7243 MB / 1.217 GB, free: 15.53 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.505e-05/0.3527, allocations: 21.67 kB / 1.217 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.196e-05/0.3527, allocations: 15.44 kB / 1.217 GB, free: 15.49 MB / 0.9825 GB Notification: Performance of SimCode: time 2.61e-07/0.3527, allocations: 4 kB / 1.217 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of Templates: time 0.004979/0.3577, allocations: 2.098 MB / 1.219 GB, free: 13.41 MB / 0.9825 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches