Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001467/0.001467, allocations: 103 kB / 16.45 MB, free: 6.449 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.001592/0.001592, allocations: 212.9 kB / 19.43 MB, free: 3.637 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.535/1.535, allocations: 230.6 MB / 252.8 MB, free: 9.125 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.195/3.195, allocations: 0.49 GB / 0.7915 GB, free: 33.33 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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.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_12_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_12_Buildings.Utilities.Math.Examples.IntegratorWithReset") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002062/0.002062, allocations: 71.94 kB / 1.149 GB, free: 26.07 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3539/0.3559, allocations: 176.1 MB / 1.321 GB, free: 2.801 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003091/0.359, allocations: 1.852 MB / 1.323 GB, free: 0.9375 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001077/0.3601, allocations: 0.5844 MB / 1.324 GB, free: 356 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.285e-05/0.3602, allocations: 3.938 kB / 1.324 GB, free: 352 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001367/0.3603, allocations: 27.73 kB / 1.324 GB, free: 324 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.8e-05/0.3604, allocations: 23.72 kB / 1.324 GB, free: 300 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.000212/0.3606, allocations: 71.86 kB / 1.324 GB, free: 228 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002364/0.3609, allocations: 171.5 kB / 1.324 GB, free: 56 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.361, allocations: 33.67 kB / 1.324 GB, free: 20 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000106/0.3611, allocations: 63.84 kB / 1.324 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.529e-05/0.3612, allocations: 51.7 kB / 1.324 GB, free: 15.9 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.701e-05/0.3612, allocations: 12 kB / 1.324 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 2.078e-05/0.3612, allocations: 8 kB / 1.324 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.118e-05/0.3613, allocations: 31.84 kB / 1.324 GB, free: 15.85 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.374e-05/0.3613, allocations: 63.61 kB / 1.324 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001933/0.3615, allocations: 135.3 kB / 1.324 GB, free: 15.66 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.3615, allocations: 0 / 1.324 GB, free: 15.66 MB / 1.029 GB Notification: Performance of FrontEnd: time 3.697e-06/0.3615, allocations: 3.984 kB / 1.324 GB, free: 15.65 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.3615, allocations: 0 / 1.324 GB, free: 15.65 MB / 1.029 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.000773/0.3623, allocations: 486.5 kB / 1.325 GB, free: 15.13 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.3623, allocations: 11.98 kB / 1.325 GB, free: 15.12 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.196e-05/0.3624, allocations: 28.72 kB / 1.325 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003418/0.3627, allocations: 244 kB / 1.325 GB, free: 14.81 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.461e-05/0.3628, allocations: 4.375 kB / 1.325 GB, free: 14.81 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.444e-05/0.3628, allocations: 16.38 kB / 1.325 GB, free: 14.79 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003161/0.3631, allocations: 146.2 kB / 1.325 GB, free: 14.63 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.3631, allocations: 0 / 1.325 GB, free: 14.63 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.704e-05/0.3631, allocations: 4 kB / 1.325 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.938e-06/0.3631, allocations: 11.92 kB / 1.325 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002404/0.3634, allocations: 67.89 kB / 1.325 GB, free: 14.55 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009629/0.3643, allocations: 0.7434 MB / 1.326 GB, free: 13.74 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001581/0.3645, allocations: 46.55 kB / 1.326 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001131/0.3646, allocations: 28.84 kB / 1.326 GB, free: 13.65 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.894e-05/0.3646, allocations: 4 kB / 1.326 GB, free: 13.65 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002504/0.3649, allocations: 134.6 kB / 1.326 GB, free: 13.49 MB / 1.029 GB Notification: Performance of pre-optimization done (n=11): time 1.302e-06/0.3649, allocations: 0 / 1.326 GB, free: 13.49 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.0005081/0.3654, allocations: 165.4 kB / 1.326 GB, free: 13.32 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.879e-05/0.3655, allocations: 132.8 kB / 1.326 GB, free: 13.16 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002038/0.3657, allocations: 207 kB / 1.327 GB, free: 12.95 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.077e-05/0.3657, allocations: 25.7 kB / 1.327 GB, free: 12.92 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.371e-05/0.3658, allocations: 124 kB / 1.327 GB, free: 12.8 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.179e-05/0.3658, allocations: 47.88 kB / 1.327 GB, free: 12.75 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.403e-05/0.3659, allocations: 37.7 kB / 1.327 GB, free: 12.71 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001451/0.366, allocations: 330.8 kB / 1.327 GB, free: 12.38 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001371/0.3662, allocations: 39.97 kB / 1.327 GB, free: 12.34 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002088/0.3664, allocations: 149.1 kB / 1.327 GB, free: 12.14 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003655/0.3668, allocations: 202.4 kB / 1.328 GB, free: 11.89 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.3668, allocations: 4 kB / 1.328 GB, free: 11.89 MB / 1.029 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004382/0.3672, allocations: 217.3 kB / 1.328 GB, free: 11.67 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.3672, allocations: 4 kB / 1.328 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.3672, allocations: 4 kB / 1.328 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.846e-05/0.3672, allocations: 8 kB / 1.328 GB, free: 11.65 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.3674, allocations: 35.92 kB / 1.328 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.094e-05/0.3674, allocations: 7.984 kB / 1.328 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001479/0.3675, allocations: 23.88 kB / 1.328 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.811e-05/0.3676, allocations: 16.19 kB / 1.328 GB, free: 11.57 MB / 1.029 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.0001235/0.3677, allocations: 135.7 kB / 1.328 GB, free: 11.43 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.195e-05/0.3677, allocations: 19.91 kB / 1.328 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.064e-05/0.3678, allocations: 21.39 kB / 1.328 GB, free: 11.38 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.3678, allocations: 4 kB / 1.328 GB, free: 11.38 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.3678, allocations: 0 / 1.328 GB, free: 11.38 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.3678, allocations: 0 / 1.328 GB, free: 11.38 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008173/0.3686, allocations: 0.5171 MB / 1.329 GB, free: 10.8 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.3686, allocations: 7.938 kB / 1.329 GB, free: 10.8 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001221/0.3687, allocations: 15.98 kB / 1.329 GB, free: 10.78 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.3687, allocations: 0 / 1.329 GB, free: 10.78 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.73e-05/0.3687, allocations: 8 kB / 1.329 GB, free: 10.77 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.3687, allocations: 0 / 1.329 GB, free: 10.77 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.3687, allocations: 3.938 kB / 1.329 GB, free: 10.77 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005512/0.3693, allocations: 368.5 kB / 1.329 GB, free: 10.39 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.429e-05/0.3694, allocations: 93.05 kB / 1.329 GB, free: 10.28 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.627e-05/0.3694, allocations: 4 kB / 1.329 GB, free: 10.27 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001815/0.3696, allocations: 15.98 kB / 1.329 GB, free: 10.26 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.605e-05/0.3696, allocations: 27.94 kB / 1.329 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-05/0.3696, allocations: 4 kB / 1.329 GB, free: 10.23 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001229/0.3698, allocations: 144.2 kB / 1.329 GB, free: 10.09 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3698, allocations: 0 / 1.329 GB, free: 10.09 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003405/0.3701, allocations: 28 kB / 1.329 GB, free: 10.06 MB / 1.029 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.0001359/0.3702, allocations: 111.2 kB / 1.329 GB, free: 9.941 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003559/0.3706, allocations: 111.8 kB / 1.329 GB, free: 9.832 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3706, allocations: 0 / 1.329 GB, free: 9.832 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001588/0.3708, allocations: 48.97 kB / 1.33 GB, free: 9.785 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005776/0.3713, allocations: 76.94 kB / 1.33 GB, free: 9.715 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006179/0.3719, allocations: 343.9 kB / 1.33 GB, free: 9.34 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003699/0.3723, allocations: 0.7242 MB / 1.331 GB, free: 8.59 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.689e-05/0.3724, allocations: 17.55 kB / 1.331 GB, free: 8.574 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.47e-05/0.3725, allocations: 19.38 kB / 1.331 GB, free: 8.555 MB / 1.029 GB Notification: Performance of SimCode: time 3.4e-07/0.3725, allocations: 0 / 1.331 GB, free: 8.555 MB / 1.029 GB Notification: Performance of Templates: time 0.006086/0.3785, allocations: 2.031 MB / 1.333 GB, free: 6.547 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.92223459482193]