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.01088/0.01088, allocations: 100.9 kB / 15.73 MB, free: 6 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.00232/0.00232, allocations: 189.1 kB / 16.67 MB, free: 5.934 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.443/1.443, allocations: 222.9 MB / 240.4 MB, free: 4.32 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.511/2.511, allocations: 390.2 MB / 0.6648 GB, free: 168 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 63.94 kB / 0.9509 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4017/0.4029, allocations: 140.4 MB / 1.088 GB, free: 1.48 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003181/0.4062, allocations: 1.813 MB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001035/0.4072, allocations: 0.5415 MB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/0.4074, allocations: 7.938 kB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.00017/0.4076, allocations: 19.73 kB / 1.09 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.051e-05/0.4076, allocations: 31.72 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002753/0.4079, allocations: 71.86 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002625/0.4082, allocations: 167.5 kB / 1.091 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002183/0.4084, allocations: 53.58 kB / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001054/0.4085, allocations: 59.72 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.882e-05/0.4086, allocations: 59.62 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.788e-05/0.4087, allocations: 12 kB / 1.091 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 2.203e-05/0.4087, allocations: 12 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.574e-05/0.4088, allocations: 27.86 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.4089, allocations: 67.59 kB / 1.091 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002317/0.4091, allocations: 135.3 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.4091, allocations: 0 / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.885e-06/0.4091, allocations: 0 / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.354e-06/0.4092, allocations: 0 / 1.091 GB, free: 14.39 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.0008743/0.41, allocations: 478.6 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/0.4101, allocations: 8.031 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.171e-05/0.4102, allocations: 24.8 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003754/0.4105, allocations: 232.5 kB / 1.092 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.787e-05/0.4106, allocations: 12.38 kB / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.919e-05/0.4106, allocations: 12.38 kB / 1.092 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003494/0.411, allocations: 159.4 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.411, allocations: 0 / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.036e-05/0.411, allocations: 4 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.389e-05/0.4111, allocations: 4 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002331/0.4113, allocations: 67.83 kB / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00105/0.4123, allocations: 0.7434 MB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000165/0.4125, allocations: 50.55 kB / 1.093 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001189/0.4126, allocations: 36.78 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.199e-05/0.4127, allocations: 0 / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002547/0.4129, allocations: 126.7 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.253e-06/0.413, allocations: 0 / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0005293/0.4135, allocations: 169.3 kB / 1.093 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.4136, allocations: 132.5 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002166/0.4138, allocations: 203 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.409e-05/0.4139, allocations: 25.95 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.755e-05/0.414, allocations: 139.7 kB / 1.093 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.806e-05/0.414, allocations: 39.84 kB / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.979e-05/0.4141, allocations: 41.7 kB / 1.094 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001524/0.4142, allocations: 330.8 kB / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000124/0.4144, allocations: 35.97 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002051/0.4146, allocations: 155.6 kB / 1.094 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003315/0.4149, allocations: 206.3 kB / 1.094 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.4149, allocations: 4 kB / 1.094 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000374/0.4153, allocations: 193.6 kB / 1.094 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.4153, allocations: 12.09 kB / 1.094 GB, free: 10.42 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.445e-06/0.4154, allocations: 4 kB / 1.094 GB, free: 10.42 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/0.4154, allocations: 4 kB / 1.094 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001279/0.4155, allocations: 40.16 kB / 1.094 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.4155, allocations: 7.938 kB / 1.094 GB, free: 10.37 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001473/0.4157, allocations: 31.83 kB / 1.095 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.992e-05/0.4157, allocations: 16 kB / 1.095 GB, free: 10.32 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.000116/0.4158, allocations: 141.6 kB / 1.095 GB, free: 10.17 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.637e-05/0.4159, allocations: 15.91 kB / 1.095 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5e-05/0.4159, allocations: 25.39 kB / 1.095 GB, free: 10.13 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.4159, allocations: 0 / 1.095 GB, free: 10.13 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.4159, allocations: 0 / 1.095 GB, free: 10.13 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.4159, allocations: 4 kB / 1.095 GB, free: 10.13 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007362/0.4167, allocations: 0.5132 MB / 1.095 GB, free: 9.559 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.4167, allocations: 0 / 1.095 GB, free: 9.559 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001097/0.4168, allocations: 15.98 kB / 1.095 GB, free: 9.543 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.4168, allocations: 7.938 kB / 1.095 GB, free: 9.535 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.694e-05/0.4168, allocations: 4 kB / 1.095 GB, free: 9.531 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.4168, allocations: 7.984 kB / 1.095 GB, free: 9.523 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.4169, allocations: 3.938 kB / 1.095 GB, free: 9.52 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005723/0.4174, allocations: 352.7 kB / 1.096 GB, free: 9.152 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.747e-05/0.4175, allocations: 92.97 kB / 1.096 GB, free: 9.043 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.832e-05/0.4175, allocations: 12.03 kB / 1.096 GB, free: 9.031 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001656/0.4177, allocations: 12.03 kB / 1.096 GB, free: 9.02 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.715e-05/0.4178, allocations: 23.91 kB / 1.096 GB, free: 8.996 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/0.4178, allocations: 7.984 kB / 1.096 GB, free: 8.988 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001231/0.4179, allocations: 140.6 kB / 1.096 GB, free: 8.852 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4179, allocations: 0 / 1.096 GB, free: 8.852 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003186/0.4183, allocations: 24 kB / 1.096 GB, free: 8.828 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.0001905/0.4185, allocations: 103.2 kB / 1.096 GB, free: 8.719 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003578/0.4188, allocations: 119.8 kB / 1.096 GB, free: 8.602 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.4188, allocations: 4 kB / 1.096 GB, free: 8.598 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001444/0.419, allocations: 51.89 kB / 1.096 GB, free: 8.547 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005855/0.4196, allocations: 72.59 kB / 1.096 GB, free: 8.48 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006283/0.4202, allocations: 356.5 kB / 1.097 GB, free: 8.094 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003117/0.4205, allocations: 0.7164 MB / 1.097 GB, free: 7.352 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 6.889e-05/0.4206, allocations: 25.53 kB / 1.097 GB, free: 7.328 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.284e-05/0.4207, allocations: 15.44 kB / 1.097 GB, free: 7.312 MB / 0.8575 GB Notification: Performance of SimCode: time 6.41e-07/0.4207, allocations: 0 / 1.097 GB, free: 7.312 MB / 0.8575 GB Notification: Performance of Templates: time 0.00543/0.4261, allocations: 2.04 MB / 1.099 GB, free: 5.297 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