Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.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.00149/0.00149, allocations: 81.23 kB / 19.18 MB, free: 2.516 MB / 14.72 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.001441/0.001441, allocations: 162.4 kB / 22.46 MB, free: 5.375 MB / 14.72 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.565/1.565, allocations: 177.1 MB / 202.8 MB, free: 9.148 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.98/2.98, allocations: 377.8 MB / 0.6221 GB, free: 12.61 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.984e-06/1.984e-06, allocations: 0 / 0.9815 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.12e-05/3.318e-05, allocations: 9.656 kB / 0.9815 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002043/0.002076, allocations: 0.8468 MB / 0.9823 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001783/0.003859, allocations: 1.197 MB / 0.9835 GB, free: 9.844 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.427e-05/0.003913, allocations: 4 kB / 0.9835 GB, free: 9.84 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.729e-05/0.003951, allocations: 11.86 kB / 0.9835 GB, free: 9.828 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.725e-05/0.004028, allocations: 15.86 kB / 0.9835 GB, free: 9.812 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005568/0.004585, allocations: 164.3 kB / 0.9837 GB, free: 9.656 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002454/0.00483, allocations: 163.6 kB / 0.9838 GB, free: 9.496 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001337/0.004964, allocations: 33.22 kB / 0.9839 GB, free: 9.465 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001549/0.005119, allocations: 91.84 kB / 0.984 GB, free: 9.375 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001122/0.005231, allocations: 59.8 kB / 0.984 GB, free: 9.316 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.673e-05/0.005268, allocations: 16 kB / 0.984 GB, free: 9.301 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 8.03e-05/0.005348, allocations: 23.98 kB / 0.9841 GB, free: 9.277 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.913e-05/0.005387, allocations: 27.91 kB / 0.9841 GB, free: 9.25 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 7.957e-05/0.005467, allocations: 51.89 kB / 0.9841 GB, free: 9.199 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002896/0.005756, allocations: 191.4 kB / 0.9843 GB, free: 9.012 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.005759, allocations: 0 / 0.9843 GB, free: 9.012 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.537e-06/0.005762, allocations: 4 kB / 0.9843 GB, free: 9.008 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.066e-06/0.00577, allocations: 0 / 0.9843 GB, free: 9.008 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007353/0.006506, allocations: 414 kB / 0.9847 GB, free: 8.555 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.006543, allocations: 16.03 kB / 0.9847 GB, free: 8.539 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.797e-05/0.006601, allocations: 16.84 kB / 0.9848 GB, free: 8.523 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005331/0.007134, allocations: 181.7 kB / 0.9849 GB, free: 8.32 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.181e-05/0.007146, allocations: 8.312 kB / 0.9849 GB, free: 8.312 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.381e-05/0.00719, allocations: 20.33 kB / 0.985 GB, free: 8.293 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002223/0.007412, allocations: 86.2 kB / 0.985 GB, free: 8.203 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.007419, allocations: 192 / 0.985 GB, free: 8.203 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.779e-05/0.007437, allocations: 12.36 kB / 0.985 GB, free: 8.191 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.241e-06/0.007443, allocations: 4.125 kB / 0.9851 GB, free: 8.188 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001888/0.007632, allocations: 47.95 kB / 0.9851 GB, free: 8.141 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000656/0.008288, allocations: 304.2 kB / 0.9854 GB, free: 7.812 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001326/0.008421, allocations: 46.53 kB / 0.9854 GB, free: 7.758 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.631e-05/0.008517, allocations: 24.97 kB / 0.9855 GB, free: 7.73 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.287e-05/0.00853, allocations: 4 kB / 0.9855 GB, free: 7.727 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002711/0.008801, allocations: 99.23 kB / 0.9856 GB, free: 7.617 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=10): time 1.453e-06/0.008802, allocations: 0 / 0.9856 GB, free: 7.617 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10): time 0.0004405/0.009243, allocations: 137.7 kB / 0.9857 GB, free: 7.477 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.388e-05/0.009287, allocations: 55.5 kB / 0.9857 GB, free: 7.41 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001278/0.009414, allocations: 148.3 kB / 0.9859 GB, free: 7.258 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.423e-05/0.009449, allocations: 37.69 kB / 0.9859 GB, free: 7.215 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.268e-05/0.009531, allocations: 104.2 kB / 0.986 GB, free: 7.109 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.059e-05/0.009562, allocations: 31.78 kB / 0.986 GB, free: 7.078 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.68e-05/0.009649, allocations: 49.69 kB / 0.9861 GB, free: 7.023 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001434/0.009792, allocations: 326.8 kB / 0.9864 GB, free: 6.695 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001884/0.009981, allocations: 81.66 kB / 0.9865 GB, free: 6.609 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002493/0.01023, allocations: 168.8 kB / 0.9866 GB, free: 6.398 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003837/0.01061, allocations: 196.7 kB / 0.9868 GB, free: 6.16 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.01062, allocations: 4 kB / 0.9868 GB, free: 6.156 MB / 0.9356 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005615/0.01118, allocations: 276.6 kB / 0.9871 GB, free: 5.867 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.082e-05/0.01122, allocations: 33.7 kB / 0.9871 GB, free: 5.828 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.01122, allocations: 4.375 kB / 0.9871 GB, free: 5.824 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.01124, allocations: 8 kB / 0.9871 GB, free: 5.816 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001178/0.01136, allocations: 27.92 kB / 0.9872 GB, free: 5.789 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.146e-05/0.01137, allocations: 7.984 kB / 0.9872 GB, free: 5.781 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002401/0.01161, allocations: 39.86 kB / 0.9872 GB, free: 5.742 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.892e-05/0.01164, allocations: 15.98 kB / 0.9872 GB, free: 5.727 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (booleanPulse.y,$PRE.booleanPulse.y,$whenCondition4,$whenCondition1,$whenCondition2,sampleTrigger.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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.0001217/0.01176, allocations: 125.7 kB / 0.9873 GB, free: 5.594 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.378e-05/0.01178, allocations: 15.95 kB / 0.9874 GB, free: 5.578 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.291e-05/0.01182, allocations: 12.78 kB / 0.9874 GB, free: 5.566 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.01182, allocations: 4 kB / 0.9874 GB, free: 5.562 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.01182, allocations: 0 / 0.9874 GB, free: 5.562 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.01183, allocations: 3.984 kB / 0.9874 GB, free: 5.559 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005621/0.01239, allocations: 334 kB / 0.9877 GB, free: 5.195 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.01239, allocations: 0 / 0.9877 GB, free: 5.195 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.773e-05/0.01249, allocations: 15.98 kB / 0.9877 GB, free: 5.18 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.01249, allocations: 0 / 0.9877 GB, free: 5.18 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.0125, allocations: 0 / 0.9877 GB, free: 5.18 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.01251, allocations: 4 kB / 0.9877 GB, free: 5.176 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.01251, allocations: 0 / 0.9877 GB, free: 5.176 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004701/0.01298, allocations: 255.3 kB / 0.988 GB, free: 4.91 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 1.214e-05/0.01299, allocations: 3.953 kB / 0.988 GB, free: 4.906 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.221e-05/0.01301, allocations: 8.047 kB / 0.988 GB, free: 4.898 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.619e-05/0.01311, allocations: 11.92 kB / 0.988 GB, free: 4.887 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.948e-05/0.01315, allocations: 15.92 kB / 0.988 GB, free: 4.871 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.14e-05/0.01316, allocations: 11.92 kB / 0.988 GB, free: 4.859 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.508e-05/0.01323, allocations: 105.8 kB / 0.9881 GB, free: 4.758 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.11e-07/0.01323, allocations: 0 / 0.9881 GB, free: 4.758 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003013/0.01353, allocations: 31.95 kB / 0.9881 GB, free: 4.727 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intWitRes2.y,intWitRes1.y,intDef.y) * Number of discrete variables: 6 (sampleTrigger.y,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booleanPulse.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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.0001718/0.01371, allocations: 107.2 kB / 0.9882 GB, free: 4.613 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004451/0.01415, allocations: 197.6 kB / 0.9884 GB, free: 4.402 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.01415, allocations: 4.062 kB / 0.9884 GB, free: 4.398 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001362/0.01429, allocations: 39.91 kB / 0.9885 GB, free: 4.359 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002972/0.01459, allocations: 15.98 kB / 0.9885 GB, free: 4.344 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005314/0.01512, allocations: 237.8 kB / 0.9887 GB, free: 4.086 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.598e-05/0.01521, allocations: 105.5 kB / 0.9888 GB, free: 3.961 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.088e-05/0.01528, allocations: 16.64 kB / 0.9888 GB, free: 3.941 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.012e-05/0.01532, allocations: 16.5 kB / 0.9889 GB, free: 3.926 MB / 0.9356 GB Notification: Performance of SimCode: time 4.51e-07/0.01532, allocations: 0 / 0.9889 GB, free: 3.926 MB / 0.9356 GB Notification: Performance of Templates: time 0.005278/0.02059, allocations: 1.737 MB / 0.9905 GB, free: 2.227 MB / 0.9356 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.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.48664852976799]