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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001206/0.001205, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.00141/0.00141, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.379/1.379, allocations: 223.2 MB / 239.9 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.504/2.504, allocations: 390.2 MB / 0.6653 GB, free: 2.984 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002988/0.0002988, allocations: 8 kB / 0.8145 GB, free: 14.29 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7639/0.7642, allocations: 142.3 MB / 0.9535 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002291/0.7665, allocations: 1.474 MB / 0.9549 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009989/0.7676, allocations: 0.5086 MB / 0.9554 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001339/0.7677, allocations: 5.812 kB / 0.9554 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.801e-05/0.7678, allocations: 12.83 kB / 0.9555 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001505/0.7679, allocations: 27.39 kB / 0.9555 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002369/0.7682, allocations: 57.67 kB / 0.9555 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000246/0.7684, allocations: 116.9 kB / 0.9556 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000164/0.7686, allocations: 38.47 kB / 0.9557 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.6e-05/0.7687, allocations: 46.39 kB / 0.9557 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.283e-05/0.7688, allocations: 45.56 kB / 0.9558 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.191e-05/0.7688, allocations: 7.469 kB / 0.9558 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.997e-05/0.7689, allocations: 4.125 kB / 0.9558 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.803e-05/0.7689, allocations: 20.69 kB / 0.9558 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.877e-05/0.7689, allocations: 46.95 kB / 0.9558 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001257/0.7691, allocations: 87.14 kB / 0.9559 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.7691, allocations: 4 kB / 0.9559 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.363e-06/0.7691, allocations: 4 kB / 0.9559 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.999e-06/0.7691, allocations: 0 / 0.9559 GB, free: 6.164 MB / 0.7169 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.0007034/0.7698, allocations: 449.2 kB / 0.9564 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.7699, allocations: 8.594 kB / 0.9564 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.862e-05/0.77, allocations: 29.64 kB / 0.9564 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002562/0.7702, allocations: 226.9 kB / 0.9566 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.649e-05/0.7703, allocations: 12.19 kB / 0.9566 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.3e-05/0.7703, allocations: 12.66 kB / 0.9566 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002723/0.7706, allocations: 154.5 kB / 0.9568 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.7706, allocations: 0 / 0.9568 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.795e-05/0.7706, allocations: 6.281 kB / 0.9568 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.7706, allocations: 6.297 kB / 0.9568 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002186/0.7708, allocations: 79.78 kB / 0.9569 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007333/0.7716, allocations: 0.744 MB / 0.9576 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001519/0.7717, allocations: 50.25 kB / 0.9577 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.927e-05/0.7718, allocations: 2.094 kB / 0.9577 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002467/0.772, allocations: 128.6 kB / 0.9578 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.182e-06/0.772, allocations: 0 / 0.9578 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0004695/0.7725, allocations: 186.7 kB / 0.958 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.097e-05/0.7726, allocations: 131.2 kB / 0.9581 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001559/0.7727, allocations: 198.3 kB / 0.9583 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.349e-05/0.7728, allocations: 34.95 kB / 0.9583 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.348e-05/0.7728, allocations: 136.7 kB / 0.9584 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.679e-05/0.7729, allocations: 29.38 kB / 0.9585 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.855e-06/0.7729, allocations: 4 kB / 0.9585 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.124e-05/0.7729, allocations: 332 kB / 0.9588 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001255/0.7731, allocations: 41.75 kB / 0.9588 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001981/0.7733, allocations: 147.4 kB / 0.959 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002068/0.7735, allocations: 69.52 kB / 0.959 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.159e-06/0.7735, allocations: 1.219 kB / 0.959 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004662/0.774, allocations: 218.2 kB / 0.9592 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.774, allocations: 7.25 kB / 0.9592 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.774, allocations: 4.375 kB / 0.9593 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.774, allocations: 16.94 kB / 0.9593 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.7742, allocations: 38.67 kB / 0.9593 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.7742, allocations: 5.531 kB / 0.9593 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001432/0.7744, allocations: 35.45 kB / 0.9593 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.626e-05/0.7744, allocations: 9.406 kB / 0.9594 GB, free: 3.098 MB / 0.7169 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 ($whenCondition2,sampleTrigger.y,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.577e-05/0.7745, allocations: 140.4 kB / 0.9595 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.701e-05/0.7745, allocations: 16.47 kB / 0.9595 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.281e-05/0.7746, allocations: 22.44 kB / 0.9595 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.7746, allocations: 6.859 kB / 0.9595 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.7746, allocations: 1.031 kB / 0.9595 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.7746, allocations: 5.422 kB / 0.9595 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006174/0.7752, allocations: 0.523 MB / 0.96 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.7752, allocations: 5.359 kB / 0.9601 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001061/0.7753, allocations: 17.73 kB / 0.9601 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.628e-06/0.7753, allocations: 5.328 kB / 0.9601 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.7754, allocations: 3.062 kB / 0.9601 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.7754, allocations: 5.375 kB / 0.9601 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.7754, allocations: 5.375 kB / 0.9601 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004582/0.7758, allocations: 416.1 kB / 0.9605 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.282e-05/0.7759, allocations: 98.36 kB / 0.9606 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.645e-05/0.7759, allocations: 2.75 kB / 0.9606 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001621/0.7761, allocations: 23.02 kB / 0.9606 GB, free: 1.953 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.852e-05/0.7761, allocations: 13.48 kB / 0.9606 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.588e-06/0.7762, allocations: 4.125 kB / 0.9606 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.585e-05/0.7763, allocations: 144 kB / 0.9608 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7763, allocations: 1.375 kB / 0.9608 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003189/0.7766, allocations: 26 kB / 0.9608 GB, free: 1.832 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001133/0.7767, allocations: 118.4 kB / 0.9609 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003692/0.7771, allocations: 125.7 kB / 0.961 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.7771, allocations: 1.594 kB / 0.961 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001802/0.7773, allocations: 53.19 kB / 0.9611 GB, free: 1.656 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004164/0.7777, allocations: 53.69 kB / 0.9611 GB, free: 1.633 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005667/0.7783, allocations: 387.6 kB / 0.9615 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000192/0.7785, allocations: 0.7338 MB / 0.9622 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.51e-05/0.7786, allocations: 23.44 kB / 0.9622 GB, free: 0.5703 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.777e-05/0.7786, allocations: 17.06 kB / 0.9622 GB, free: 0.5625 MB / 0.7169 GB Notification: Performance of SimCode: time 2.6e-07/0.7786, allocations: 0 / 0.9622 GB, free: 0.5625 MB / 0.7169 GB Notification: Performance of Templates: time 0.005125/0.7838, allocations: 1.732 MB / 0.9639 GB, free: 15.7 MB / 0.7325 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","../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches