Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.009697/0.009697, allocations: 101 kB / 15.73 MB, free: 6.043 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.001416/0.001416, allocations: 188.3 kB / 16.67 MB, free: 5.973 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.55/1.55, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.662/2.662, allocations: 390.2 MB / 0.6648 GB, free: 168 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 64.06 kB / 0.9508 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3518/0.3531, allocations: 140.4 MB / 1.088 GB, free: 1.473 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.00384/0.357, allocations: 1.824 MB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001176/0.3582, allocations: 0.5299 MB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000179/0.3584, allocations: 8 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001638/0.3586, allocations: 23.67 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001174/0.3588, allocations: 31.72 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002744/0.359, allocations: 67.91 kB / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000305/0.3594, allocations: 167.5 kB / 1.091 GB, free: 14.81 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001815/0.3595, allocations: 61.52 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00011/0.3597, allocations: 51.78 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001058/0.3598, allocations: 63.62 kB / 1.091 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.469e-05/0.3598, allocations: 12 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 2.393e-05/0.3599, allocations: 8 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.383e-05/0.3599, allocations: 31.86 kB / 1.091 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.16e-05/0.36, allocations: 59.61 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002245/0.3602, allocations: 139.4 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.3602, allocations: 0 / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.743e-06/0.3602, allocations: 4 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.737e-06/0.3603, allocations: 0 / 1.091 GB, free: 14.38 MB / 0.8575 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.000875/0.3611, allocations: 470.7 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/0.3612, allocations: 8.031 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.473e-05/0.3613, allocations: 24.69 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00044/0.3617, allocations: 236.4 kB / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/0.3618, allocations: 8.375 kB / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.347e-05/0.3618, allocations: 12.38 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003553/0.3622, allocations: 151.8 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/0.3622, allocations: 0 / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.301e-05/0.3622, allocations: 7.984 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.3623, allocations: 7.938 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002657/0.3625, allocations: 71.89 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001097/0.3636, allocations: 0.7352 MB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001633/0.3638, allocations: 50.55 kB / 1.093 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001134/0.3639, allocations: 28.84 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.345e-05/0.364, allocations: 4 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002613/0.3642, allocations: 126.7 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 4.769e-06/0.3643, allocations: 0 / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0005518/0.3648, allocations: 173.5 kB / 1.093 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.892e-05/0.3649, allocations: 132.5 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002059/0.3651, allocations: 199 kB / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.46e-05/0.3652, allocations: 29.7 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001039/0.3653, allocations: 139.7 kB / 1.093 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.49e-05/0.3653, allocations: 27.56 kB / 1.093 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.27e-05/0.3654, allocations: 45.7 kB / 1.094 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001535/0.3655, allocations: 334.8 kB / 1.094 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001306/0.3657, allocations: 39.97 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001909/0.3659, allocations: 147.5 kB / 1.094 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000343/0.3662, allocations: 202.3 kB / 1.094 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.3662, allocations: 256 / 1.094 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004281/0.3667, allocations: 209 kB / 1.094 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.3667, allocations: 11.94 kB / 1.094 GB, free: 10.42 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.3667, allocations: 8 kB / 1.094 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/0.3668, allocations: 4 kB / 1.094 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001216/0.3669, allocations: 32.42 kB / 1.094 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.404e-05/0.3669, allocations: 15.98 kB / 1.094 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001557/0.3671, allocations: 27.83 kB / 1.094 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.435e-05/0.3671, allocations: 8 kB / 1.095 GB, free: 10.33 MB / 0.8575 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.0001567/0.3672, allocations: 141.6 kB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.839e-05/0.3673, allocations: 15.81 kB / 1.095 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.893e-05/0.3673, allocations: 25.39 kB / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.3674, allocations: 0 / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/0.3674, allocations: 4 kB / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.3674, allocations: 4 kB / 1.095 GB, free: 10.13 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007517/0.3681, allocations: 0.5131 MB / 1.095 GB, free: 9.562 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.3681, allocations: 0 / 1.095 GB, free: 9.562 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001111/0.3683, allocations: 15.98 kB / 1.095 GB, free: 9.547 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.881e-06/0.3683, allocations: 4 kB / 1.095 GB, free: 9.543 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.496e-05/0.3683, allocations: 0 / 1.095 GB, free: 9.543 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/0.3683, allocations: 8 kB / 1.095 GB, free: 9.535 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.3683, allocations: 7.922 kB / 1.095 GB, free: 9.527 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004999/0.3688, allocations: 356.3 kB / 1.096 GB, free: 9.156 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.663e-05/0.3689, allocations: 100.8 kB / 1.096 GB, free: 9.039 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.583e-05/0.3689, allocations: 0 / 1.096 GB, free: 9.039 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001666/0.3691, allocations: 15.98 kB / 1.096 GB, free: 9.023 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.587e-05/0.3692, allocations: 11.92 kB / 1.096 GB, free: 9.012 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/0.3692, allocations: 8 kB / 1.096 GB, free: 9.004 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001144/0.3693, allocations: 140.6 kB / 1.096 GB, free: 8.867 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3693, allocations: 0 / 1.096 GB, free: 8.867 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003666/0.3697, allocations: 43.83 kB / 1.096 GB, free: 8.824 MB / 0.8575 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.0001579/0.3699, allocations: 103.2 kB / 1.096 GB, free: 8.715 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003381/0.3702, allocations: 112.9 kB / 1.096 GB, free: 8.605 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.3702, allocations: 192 / 1.096 GB, free: 8.605 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001441/0.3704, allocations: 51.91 kB / 1.096 GB, free: 8.555 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000597/0.371, allocations: 75.62 kB / 1.096 GB, free: 8.484 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008445/0.3718, allocations: 340.7 kB / 1.097 GB, free: 8.113 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005477/0.3724, allocations: 0.7243 MB / 1.097 GB, free: 7.363 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001312/0.3725, allocations: 17.55 kB / 1.097 GB, free: 7.348 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.96e-05/0.3726, allocations: 23.42 kB / 1.097 GB, free: 7.324 MB / 0.8575 GB Notification: Performance of SimCode: time 2.374e-06/0.3726, allocations: 0 / 1.097 GB, free: 7.324 MB / 0.8575 GB Notification: Performance of Templates: time 0.005728/0.3783, allocations: 2.034 MB / 1.099 GB, free: 5.316 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches