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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001784/0.001784, allocations: 85.48 kB / 19.44 MB, free: 344 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002066/0.002066, allocations: 173.2 kB / 22.76 MB, free: 1.664 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.556/1.556, allocations: 177.1 MB / 203.1 MB, free: 5.25 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.352/3.352, allocations: 429.5 MB / 0.6729 GB, free: 3.996 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,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") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0.9844 kB / 0.8774 GB, free: 6.656 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.593e-05/2.75e-05, allocations: 7.312 kB / 0.8775 GB, free: 6.648 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003467/0.003494, allocations: 1.816 MB / 0.8792 GB, free: 4.848 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001246/0.00474, allocations: 0.5477 MB / 0.8798 GB, free: 4.297 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.004841, allocations: 8.438 kB / 0.8798 GB, free: 4.289 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001513/0.004992, allocations: 31.66 kB / 0.8798 GB, free: 4.258 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 8.471e-05/0.005077, allocations: 29.42 kB / 0.8798 GB, free: 4.23 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002307/0.005308, allocations: 71.84 kB / 0.8799 GB, free: 4.16 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002839/0.005592, allocations: 167.9 kB / 0.8801 GB, free: 3.996 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001297/0.005721, allocations: 35.11 kB / 0.8801 GB, free: 3.961 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001538/0.005875, allocations: 79.8 kB / 0.8802 GB, free: 3.883 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 8.114e-05/0.005956, allocations: 43.83 kB / 0.8802 GB, free: 3.84 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.33e-05/0.005989, allocations: 8 kB / 0.8802 GB, free: 3.832 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 2.51e-05/0.006015, allocations: 12.53 kB / 0.8802 GB, free: 3.82 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 4.329e-05/0.006058, allocations: 28.47 kB / 0.8803 GB, free: 3.793 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 7.046e-05/0.006128, allocations: 39.84 kB / 0.8803 GB, free: 3.754 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002246/0.006353, allocations: 136.1 kB / 0.8804 GB, free: 3.621 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.006356, allocations: 0 / 0.8804 GB, free: 3.621 MB / 0.8386 GB Notification: Performance of FrontEnd: time 8.12e-07/0.006357, allocations: 0.6562 kB / 0.8804 GB, free: 3.621 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.006362, allocations: 1.594 kB / 0.8804 GB, free: 3.621 MB / 0.8386 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.0008884/0.007251, allocations: 0.53 MB / 0.8809 GB, free: 3.047 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.007287, allocations: 8.031 kB / 0.8809 GB, free: 3.039 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.422e-05/0.007381, allocations: 34.64 kB / 0.881 GB, free: 3.008 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003103/0.007691, allocations: 180.2 kB / 0.8812 GB, free: 2.805 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.111e-05/0.007713, allocations: 11.12 kB / 0.8812 GB, free: 2.797 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.441e-05/0.007747, allocations: 12.38 kB / 0.8812 GB, free: 2.785 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003257/0.008073, allocations: 159.4 kB / 0.8813 GB, free: 2.605 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.008083, allocations: 192 / 0.8813 GB, free: 2.605 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.854e-05/0.008101, allocations: 8.375 kB / 0.8813 GB, free: 2.598 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.008109, allocations: 7.875 kB / 0.8813 GB, free: 2.59 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002167/0.008325, allocations: 68.56 kB / 0.8814 GB, free: 2.523 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001196/0.009521, allocations: 0.9147 MB / 0.8823 GB, free: 1.555 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001407/0.009662, allocations: 47.05 kB / 0.8823 GB, free: 1.496 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.964e-05/0.009752, allocations: 33.02 kB / 0.8824 GB, free: 1.461 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.008e-05/0.009772, allocations: 0 / 0.8824 GB, free: 1.461 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002518/0.01002, allocations: 139.7 kB / 0.8825 GB, free: 1.293 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.062e-06/0.01002, allocations: 4 kB / 0.8825 GB, free: 1.289 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0004689/0.01049, allocations: 153.6 kB / 0.8827 GB, free: 1.133 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.0106, allocations: 136.5 kB / 0.8828 GB, free: 0.9688 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002788/0.01088, allocations: 268.4 kB / 0.883 GB, free: 0.6914 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.58e-05/0.01091, allocations: 29.7 kB / 0.8831 GB, free: 0.6562 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001526/0.01106, allocations: 194.8 kB / 0.8833 GB, free: 472 kB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.626e-05/0.0111, allocations: 35.73 kB / 0.8833 GB, free: 436 kB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.259e-05/0.01119, allocations: 51.31 kB / 0.8833 GB, free: 376 kB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0003182/0.01151, allocations: 0.5082 MB / 0.8838 GB, free: 15.85 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001062/0.01161, allocations: 31.98 kB / 0.8839 GB, free: 15.82 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002524/0.01186, allocations: 190.6 kB / 0.8841 GB, free: 15.56 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003932/0.01226, allocations: 242.4 kB / 0.8843 GB, free: 15.25 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.01226, allocations: 0 / 0.8843 GB, free: 15.25 MB / 0.8542 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004089/0.01267, allocations: 205.1 kB / 0.8845 GB, free: 15.04 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.01269, allocations: 8 kB / 0.8845 GB, free: 15.04 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.0127, allocations: 4 kB / 0.8845 GB, free: 15.03 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.846e-05/0.01271, allocations: 4 kB / 0.8845 GB, free: 15.03 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/0.01284, allocations: 32.42 kB / 0.8845 GB, free: 15 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.477e-05/0.01286, allocations: 11.98 kB / 0.8845 GB, free: 14.98 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001172/0.01297, allocations: 19.95 kB / 0.8846 GB, free: 14.96 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.754e-05/0.01299, allocations: 11.94 kB / 0.8846 GB, free: 14.95 MB / 0.8542 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.0001823/0.01317, allocations: 188.4 kB / 0.8847 GB, free: 14.76 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.871e-05/0.01321, allocations: 19.84 kB / 0.8848 GB, free: 14.74 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.981e-05/0.01326, allocations: 17.47 kB / 0.8848 GB, free: 14.72 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.01327, allocations: 4 kB / 0.8848 GB, free: 14.72 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.01327, allocations: 0 / 0.8848 GB, free: 14.72 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.01328, allocations: 7.984 kB / 0.8848 GB, free: 14.71 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008412/0.01412, allocations: 0.5472 MB / 0.8853 GB, free: 14.12 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.01412, allocations: 0 / 0.8853 GB, free: 14.12 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001059/0.01423, allocations: 15.98 kB / 0.8853 GB, free: 14.11 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.01423, allocations: 288 / 0.8853 GB, free: 14.11 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.01425, allocations: 4 kB / 0.8854 GB, free: 14.1 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.01425, allocations: 320 / 0.8854 GB, free: 14.1 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.01425, allocations: 0 / 0.8854 GB, free: 14.1 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005647/0.01481, allocations: 454.2 kB / 0.8858 GB, free: 13.63 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.587e-05/0.01485, allocations: 27.77 kB / 0.8858 GB, free: 13.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.059e-05/0.01488, allocations: 8 kB / 0.8858 GB, free: 13.59 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001375/0.01502, allocations: 4 kB / 0.8858 GB, free: 13.59 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.584e-05/0.01509, allocations: 15.97 kB / 0.8858 GB, free: 13.57 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.094e-05/0.01511, allocations: 8 kB / 0.8858 GB, free: 13.57 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001501/0.01526, allocations: 180.2 kB / 0.886 GB, free: 13.39 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7e-08/0.01526, allocations: 0 / 0.886 GB, free: 13.39 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003304/0.01559, allocations: 31.95 kB / 0.886 GB, free: 13.36 MB / 0.8542 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.0001458/0.01573, allocations: 110 kB / 0.8862 GB, free: 13.24 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0003242/0.01606, allocations: 123.4 kB / 0.8863 GB, free: 13.12 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.01606, allocations: 0 / 0.8863 GB, free: 13.12 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.000133/0.01619, allocations: 51.61 kB / 0.8863 GB, free: 13.06 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005743/0.01677, allocations: 66.16 kB / 0.8864 GB, free: 13 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007023/0.01747, allocations: 353.5 kB / 0.8867 GB, free: 12.61 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001234/0.01759, allocations: 108.3 kB / 0.8868 GB, free: 12.49 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 6.841e-05/0.01766, allocations: 17.48 kB / 0.8868 GB, free: 12.48 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.451e-05/0.01771, allocations: 24.48 kB / 0.8869 GB, free: 12.45 MB / 0.8542 GB Notification: Performance of SimCode: time 5.61e-07/0.01771, allocations: 0 / 0.8869 GB, free: 12.45 MB / 0.8542 GB Notification: Performance of Templates: time 0.006213/0.02393, allocations: 2.137 MB / 0.8889 GB, free: 10.38 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 300] (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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 240] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.381888950010762]