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.001141/0.001141, allocations: 92.2 kB / 20.19 MB, free: 4.363 MB / 18.57 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.0009754/0.0009754, allocations: 173 kB / 23.49 MB, free: 1.055 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 0.9699/0.9699, allocations: 177.1 MB / 203.8 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 179] 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 2.139/2.139, allocations: 429.5 MB / 0.6736 GB, free: 4.066 MB / 0.6355 GB " [Timeout remaining time 177] 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.152e-06/1.152e-06, allocations: 0 / 0.8782 GB, free: 6.648 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.553e-05/1.668e-05, allocations: 2.312 kB / 0.8782 GB, free: 6.645 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002028/0.002045, allocations: 1.847 MB / 0.88 GB, free: 4.812 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0008158/0.002861, allocations: 0.5622 MB / 0.8805 GB, free: 4.246 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.638e-05/0.002957, allocations: 4.781 kB / 0.8805 GB, free: 4.242 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001299/0.003087, allocations: 35.66 kB / 0.8806 GB, free: 4.207 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 5.709e-05/0.003144, allocations: 26 kB / 0.8806 GB, free: 4.184 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001766/0.003321, allocations: 63.84 kB / 0.8807 GB, free: 4.121 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001903/0.003511, allocations: 179.4 kB / 0.8808 GB, free: 3.945 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.003629, allocations: 29.78 kB / 0.8809 GB, free: 3.914 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 9.339e-05/0.003722, allocations: 82.17 kB / 0.8809 GB, free: 3.836 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 5.367e-05/0.003776, allocations: 47.75 kB / 0.881 GB, free: 3.789 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.348e-05/0.003799, allocations: 8 kB / 0.881 GB, free: 3.781 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 1.267e-05/0.003812, allocations: 12 kB / 0.881 GB, free: 3.77 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.685e-05/0.003839, allocations: 27.91 kB / 0.881 GB, free: 3.742 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 4.114e-05/0.00388, allocations: 35.86 kB / 0.8811 GB, free: 3.707 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001304/0.00401, allocations: 105.7 kB / 0.8812 GB, free: 3.605 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.833e-06/0.004012, allocations: 0 / 0.8812 GB, free: 3.605 MB / 0.8386 GB Notification: Performance of FrontEnd: time 5.51e-07/0.004012, allocations: 4 kB / 0.8812 GB, free: 3.602 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.747e-06/0.004016, allocations: 0 / 0.8812 GB, free: 3.602 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.0006226/0.004639, allocations: 0.5116 MB / 0.8817 GB, free: 3.047 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.089e-05/0.00467, allocations: 8.031 kB / 0.8817 GB, free: 3.039 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.238e-05/0.004722, allocations: 26.5 kB / 0.8817 GB, free: 3.016 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001918/0.004914, allocations: 184.2 kB / 0.8819 GB, free: 2.809 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.004926, allocations: 13.62 kB / 0.8819 GB, free: 2.797 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.592e-05/0.004952, allocations: 16.36 kB / 0.8819 GB, free: 2.781 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001941/0.005146, allocations: 149.3 kB / 0.8821 GB, free: 2.605 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.005157, allocations: 12.11 kB / 0.8821 GB, free: 2.594 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/0.005171, allocations: 4.375 kB / 0.8821 GB, free: 2.59 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.005182, allocations: 7.938 kB / 0.8821 GB, free: 2.582 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.53e-05/0.005257, allocations: 39.86 kB / 0.8821 GB, free: 2.543 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008173/0.006074, allocations: 0.8858 MB / 0.883 GB, free: 1.602 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.941e-05/0.006154, allocations: 38.98 kB / 0.883 GB, free: 1.551 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.525e-05/0.006189, allocations: 15.69 kB / 0.883 GB, free: 1.531 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.552e-05/0.006215, allocations: 8 kB / 0.883 GB, free: 1.523 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000149/0.006364, allocations: 115.8 kB / 0.8831 GB, free: 1.379 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.232e-06/0.006365, allocations: 0 / 0.8831 GB, free: 1.379 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0002415/0.006606, allocations: 113.6 kB / 0.8833 GB, free: 1.262 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.571e-05/0.006662, allocations: 140.4 kB / 0.8834 GB, free: 1.094 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001359/0.006798, allocations: 240.4 kB / 0.8836 GB, free: 0.8438 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.657e-05/0.006815, allocations: 33.7 kB / 0.8837 GB, free: 0.8047 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.612e-05/0.006891, allocations: 182.6 kB / 0.8838 GB, free: 0.6211 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.396e-05/0.006915, allocations: 36.12 kB / 0.8839 GB, free: 0.5859 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.597e-05/0.006961, allocations: 55.31 kB / 0.8839 GB, free: 0.5234 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001055/0.007066, allocations: 0.4962 MB / 0.8844 GB, free: 16 kB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.266e-05/0.007099, allocations: 15.98 kB / 0.8844 GB, free: 0 / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.641e-05/0.007195, allocations: 168.9 kB / 0.8846 GB, free: 15.77 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001382/0.007333, allocations: 206.4 kB / 0.8848 GB, free: 15.49 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.007336, allocations: 0 / 0.8848 GB, free: 15.49 MB / 0.8542 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001782/0.007514, allocations: 177.1 kB / 0.8849 GB, free: 15.31 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.007528, allocations: 8 kB / 0.8849 GB, free: 15.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.007533, allocations: 4 kB / 0.885 GB, free: 15.3 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/0.007546, allocations: 4 kB / 0.885 GB, free: 15.3 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.537e-05/0.007622, allocations: 31.92 kB / 0.885 GB, free: 15.27 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.00763, allocations: 12.38 kB / 0.885 GB, free: 15.25 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.389e-05/0.007694, allocations: 28.19 kB / 0.885 GB, free: 15.23 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-06/0.007702, allocations: 8 kB / 0.885 GB, free: 15.22 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 7.875e-05/0.007781, allocations: 178.7 kB / 0.8852 GB, free: 15.04 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.169e-05/0.007803, allocations: 23.84 kB / 0.8852 GB, free: 15.01 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.906e-05/0.007832, allocations: 21.45 kB / 0.8852 GB, free: 14.99 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.007835, allocations: 4 kB / 0.8852 GB, free: 14.99 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.007838, allocations: 0 / 0.8852 GB, free: 14.99 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.007843, allocations: 4 kB / 0.8853 GB, free: 14.98 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003573/0.0082, allocations: 0.4967 MB / 0.8857 GB, free: 14.45 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.008203, allocations: 8 kB / 0.8857 GB, free: 14.44 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.101e-05/0.008254, allocations: 12.03 kB / 0.8858 GB, free: 14.43 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.008258, allocations: 7.984 kB / 0.8858 GB, free: 14.42 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.529e-05/0.008273, allocations: 7.938 kB / 0.8858 GB, free: 14.41 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.008275, allocations: 4 kB / 0.8858 GB, free: 14.41 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.008276, allocations: 0 / 0.8858 GB, free: 14.41 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002249/0.008501, allocations: 398.2 kB / 0.8862 GB, free: 13.99 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.923e-05/0.008521, allocations: 23.84 kB / 0.8862 GB, free: 13.96 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.742e-05/0.008538, allocations: 4 kB / 0.8862 GB, free: 13.96 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.304e-05/0.008611, allocations: 11.98 kB / 0.8862 GB, free: 13.95 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.685e-05/0.008658, allocations: 15.98 kB / 0.8862 GB, free: 13.93 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.442e-06/0.008664, allocations: 4 kB / 0.8862 GB, free: 13.93 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 6.8e-05/0.008732, allocations: 172.2 kB / 0.8864 GB, free: 13.76 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.008732, allocations: 0 / 0.8864 GB, free: 13.76 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002171/0.00895, allocations: 31.95 kB / 0.8864 GB, free: 13.73 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 7.402e-05/0.009024, allocations: 101.8 kB / 0.8865 GB, free: 13.62 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.000137/0.009161, allocations: 87.95 kB / 0.8866 GB, free: 13.53 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.009162, allocations: 0 / 0.8866 GB, free: 13.53 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 4.79e-05/0.00921, allocations: 35.61 kB / 0.8866 GB, free: 13.49 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003512/0.009561, allocations: 66.33 kB / 0.8867 GB, free: 13.43 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004265/0.009988, allocations: 346.2 kB / 0.887 GB, free: 13.05 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.643e-05/0.01003, allocations: 68 kB / 0.8871 GB, free: 12.96 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.272e-05/0.01008, allocations: 17.48 kB / 0.8871 GB, free: 12.95 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.037e-05/0.01012, allocations: 28.48 kB / 0.8871 GB, free: 12.92 MB / 0.8542 GB Notification: Performance of SimCode: time 8.82e-07/0.01012, allocations: 0 / 0.8871 GB, free: 12.92 MB / 0.8542 GB Notification: Performance of Templates: time 0.00378/0.0139, allocations: 2.135 MB / 0.8892 GB, free: 10.84 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.281312769977376]