Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001458/0.001458, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001555/0.001555, allocations: 189.7 kB / 17.35 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.347/1.347, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.471/2.471, allocations: 437 MB / 0.7112 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 60.12 kB / 1.019 GB, free: 9.367 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8358/0.8372, allocations: 151.6 MB / 1.167 GB, free: 3.797 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002777/0.84, allocations: 1.823 MB / 1.169 GB, free: 1.965 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0009048/0.841, allocations: 0.5377 MB / 1.17 GB, free: 1.422 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.46e-05/0.8411, allocations: 11.94 kB / 1.17 GB, free: 1.41 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001255/0.8412, allocations: 19.73 kB / 1.17 GB, free: 1.391 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.11e-05/0.8413, allocations: 23.75 kB / 1.17 GB, free: 1.367 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002031/0.8415, allocations: 71.84 kB / 1.17 GB, free: 1.297 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002159/0.8417, allocations: 171.5 kB / 1.17 GB, free: 1.129 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001368/0.8419, allocations: 57.62 kB / 1.17 GB, free: 1.07 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 7.509e-05/0.842, allocations: 51.73 kB / 1.17 GB, free: 1.02 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.898e-05/0.842, allocations: 59.64 kB / 1.17 GB, free: 0.9609 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.255e-05/0.8421, allocations: 8 kB / 1.17 GB, free: 0.9531 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 1.819e-05/0.8421, allocations: 12 kB / 1.17 GB, free: 0.9414 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.151e-05/0.8421, allocations: 27.91 kB / 1.17 GB, free: 0.9141 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 6.727e-05/0.8422, allocations: 67.55 kB / 1.17 GB, free: 0.8477 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001642/0.8424, allocations: 135.2 kB / 1.17 GB, free: 0.7188 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.8424, allocations: 0 / 1.17 GB, free: 0.7188 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.393e-06/0.8424, allocations: 4 kB / 1.17 GB, free: 0.7148 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.8424, allocations: 0 / 1.17 GB, free: 0.7148 MB / 0.8887 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.000676/0.8431, allocations: 476.5 kB / 1.171 GB, free: 208 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.226e-05/0.8431, allocations: 8.922 kB / 1.171 GB, free: 200 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.578e-05/0.8432, allocations: 16.75 kB / 1.171 GB, free: 184 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002878/0.8435, allocations: 243.8 kB / 1.171 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.33e-05/0.8435, allocations: 8.375 kB / 1.171 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.93e-05/0.8435, allocations: 12.38 kB / 1.171 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003032/0.8438, allocations: 154 kB / 1.171 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.854e-06/0.8438, allocations: 0 / 1.171 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.683e-05/0.8439, allocations: 12 kB / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.603e-06/0.8439, allocations: 4 kB / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002189/0.8441, allocations: 71.83 kB / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00087/0.845, allocations: 0.7431 MB / 1.172 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001369/0.8451, allocations: 42.56 kB / 1.172 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.8452, allocations: 36.83 kB / 1.172 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.139e-05/0.8453, allocations: 0 / 1.172 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002043/0.8455, allocations: 126.8 kB / 1.172 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=11): time 1.232e-06/0.8455, allocations: 0 / 1.172 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11): time 0.0004579/0.846, allocations: 173.5 kB / 1.172 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.661e-05/0.846, allocations: 136.5 kB / 1.172 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001645/0.8462, allocations: 198.9 kB / 1.173 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.172e-05/0.8462, allocations: 33.7 kB / 1.173 GB, free: 14 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.008e-05/0.8463, allocations: 123.9 kB / 1.173 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.843e-05/0.8463, allocations: 31.61 kB / 1.173 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.819e-05/0.8464, allocations: 45.61 kB / 1.173 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001138/0.8465, allocations: 330.8 kB / 1.173 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001174/0.8467, allocations: 35.97 kB / 1.173 GB, free: 13.42 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001853/0.8468, allocations: 151.6 kB / 1.173 GB, free: 13.22 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000285/0.8471, allocations: 198.4 kB / 1.174 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.8472, allocations: 4 kB / 1.174 GB, free: 12.97 MB / 0.9044 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003675/0.8475, allocations: 209.3 kB / 1.174 GB, free: 12.76 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.8475, allocations: 4 kB / 1.174 GB, free: 12.76 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.8476, allocations: 4 kB / 1.174 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.8476, allocations: 8 kB / 1.174 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001221/0.8477, allocations: 32.42 kB / 1.174 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.819e-06/0.8477, allocations: 7.938 kB / 1.174 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001377/0.8479, allocations: 35.81 kB / 1.174 GB, free: 12.67 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.25e-05/0.8479, allocations: 8 kB / 1.174 GB, free: 12.66 MB / 0.9044 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.848, allocations: 147.9 kB / 1.174 GB, free: 12.51 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.642e-05/0.848, allocations: 15.81 kB / 1.174 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.587e-05/0.8481, allocations: 21.39 kB / 1.174 GB, free: 12.47 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.429e-06/0.8481, allocations: 4 kB / 1.174 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.8481, allocations: 0 / 1.174 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.8481, allocations: 0 / 1.174 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007078/0.8488, allocations: 0.5171 MB / 1.175 GB, free: 11.89 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.8488, allocations: 0 / 1.175 GB, free: 11.89 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001155/0.849, allocations: 19.92 kB / 1.175 GB, free: 11.87 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.849, allocations: 0 / 1.175 GB, free: 11.87 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.523e-05/0.849, allocations: 11.94 kB / 1.175 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.849, allocations: 8.25 kB / 1.175 GB, free: 11.85 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.849, allocations: 7.938 kB / 1.175 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004534/0.8495, allocations: 348.3 kB / 1.175 GB, free: 11.48 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.274e-05/0.8495, allocations: 96.86 kB / 1.175 GB, free: 11.37 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.28e-05/0.8496, allocations: 12.03 kB / 1.175 GB, free: 11.36 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.8497, allocations: 11.92 kB / 1.175 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.783e-05/0.8498, allocations: 19.92 kB / 1.175 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-06/0.8498, allocations: 4 kB / 1.175 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.000103/0.8499, allocations: 140.4 kB / 1.175 GB, free: 11.18 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8499, allocations: 0 / 1.175 GB, free: 11.18 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003299/0.8503, allocations: 31.91 kB / 1.175 GB, free: 11.15 MB / 0.9044 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.0001129/0.8504, allocations: 111.2 kB / 1.175 GB, free: 11.04 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003082/0.8507, allocations: 116.6 kB / 1.175 GB, free: 10.92 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.8507, allocations: 0 / 1.175 GB, free: 10.92 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001451/0.8509, allocations: 56.03 kB / 1.176 GB, free: 10.87 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005307/0.8514, allocations: 61.62 kB / 1.176 GB, free: 10.81 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000575/0.852, allocations: 378.1 kB / 1.176 GB, free: 10.4 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000257/0.8523, allocations: 0.7243 MB / 1.177 GB, free: 9.652 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.633e-05/0.8523, allocations: 19.44 kB / 1.177 GB, free: 9.633 MB / 0.9044 GB Notification: Performance of SimCode: time 2.41e-07/0.8523, allocations: 0 / 1.177 GB, free: 9.633 MB / 0.9044 GB Notification: Performance of Templates: time 0.003659/0.856, allocations: 2.156 MB / 1.179 GB, free: 7.492 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches