Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001128/0.001128, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.008784/0.008784, allocations: 170.8 kB / 16.27 MB, free: 6.656 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.454/1.454, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.834/2.834, allocations: 462.6 MB / 0.7363 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003914/0.0003914, allocations: 9.719 kB / 0.9027 GB, free: 36.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3933/0.3937, allocations: 159.6 MB / 1.059 GB, free: 5.027 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002406/0.3962, allocations: 1.518 MB / 1.06 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001085/0.3973, allocations: 0.5453 MB / 1.061 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001256/0.3974, allocations: 4 kB / 1.061 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001569/0.3976, allocations: 15.8 kB / 1.061 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.451e-05/0.3977, allocations: 19.84 kB / 1.061 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002225/0.3979, allocations: 59.88 kB / 1.061 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000217/0.3981, allocations: 159.5 kB / 1.061 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001683/0.3983, allocations: 45.66 kB / 1.061 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.372e-05/0.3984, allocations: 43.73 kB / 1.061 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.873e-05/0.3985, allocations: 55.62 kB / 1.061 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.122e-05/0.3985, allocations: 4 kB / 1.061 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.645e-05/0.3986, allocations: 4 kB / 1.061 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.31e-05/0.3986, allocations: 23.86 kB / 1.061 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.294e-05/0.3987, allocations: 81.25 kB / 1.061 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001481/0.3988, allocations: 115.8 kB / 1.061 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.3989, allocations: 4 kB / 1.061 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.315e-06/0.3989, allocations: 0 / 1.061 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.03e-05/0.3989, allocations: 0 / 1.061 GB, free: 2.316 MB / 0.8106 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.000708/0.3996, allocations: 446.9 kB / 1.062 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.3997, allocations: 23.91 kB / 1.062 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.969e-05/0.3997, allocations: 20.66 kB / 1.062 GB, free: 1.789 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002583/0.4, allocations: 228 kB / 1.062 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.447e-05/0.4, allocations: 12.31 kB / 1.062 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.784e-05/0.4001, allocations: 24.22 kB / 1.062 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003165/0.4004, allocations: 156.5 kB / 1.062 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.4004, allocations: 0 / 1.062 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.786e-05/0.4004, allocations: 4 kB / 1.062 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.4004, allocations: 7.984 kB / 1.062 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002365/0.4007, allocations: 79.89 kB / 1.062 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009036/0.4016, allocations: 0.7392 MB / 1.063 GB, free: 436 kB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001523/0.4017, allocations: 50.55 kB / 1.063 GB, free: 376 kB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00011/0.4019, allocations: 44.84 kB / 1.063 GB, free: 328 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.12e-05/0.4019, allocations: 0 / 1.063 GB, free: 328 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002711/0.4022, allocations: 130.7 kB / 1.063 GB, free: 172 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.162e-06/0.4022, allocations: 0 / 1.063 GB, free: 172 kB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0004995/0.4027, allocations: 177.4 kB / 1.063 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.349e-05/0.4028, allocations: 140.7 kB / 1.063 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001695/0.4029, allocations: 198.9 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.98e-05/0.403, allocations: 29.7 kB / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.384e-05/0.4031, allocations: 131.8 kB / 1.064 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.734e-05/0.4031, allocations: 39.69 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.742e-05/0.4032, allocations: 29.7 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001068/0.4033, allocations: 326.8 kB / 1.064 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000131/0.4034, allocations: 43.97 kB / 1.064 GB, free: 15 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001814/0.4036, allocations: 153.5 kB / 1.064 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003276/0.4039, allocations: 210.3 kB / 1.065 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.4039, allocations: 3.938 kB / 1.065 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003955/0.4043, allocations: 225.4 kB / 1.065 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.4044, allocations: 8 kB / 1.065 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.4044, allocations: 4 kB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.4044, allocations: 4 kB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001271/0.4045, allocations: 35.92 kB / 1.065 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.4046, allocations: 7.984 kB / 1.065 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001443/0.4047, allocations: 36.02 kB / 1.065 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.284e-05/0.4047, allocations: 8 kB / 1.065 GB, free: 14.21 MB / 0.8262 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.0001111/0.4048, allocations: 138 kB / 1.065 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.942e-05/0.4049, allocations: 15.81 kB / 1.065 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.877e-05/0.4049, allocations: 25.38 kB / 1.065 GB, free: 14.03 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.4049, allocations: 4 kB / 1.065 GB, free: 14.03 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.405, allocations: 0 / 1.065 GB, free: 14.03 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.405, allocations: 0 / 1.065 GB, free: 14.03 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007468/0.4057, allocations: 0.5406 MB / 1.066 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.4057, allocations: 4 kB / 1.066 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000116/0.4059, allocations: 19.98 kB / 1.066 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.4059, allocations: 0 / 1.066 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.571e-05/0.4059, allocations: 7.938 kB / 1.066 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.4059, allocations: 0 / 1.066 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.4059, allocations: 7.938 kB / 1.066 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005034/0.4064, allocations: 380.1 kB / 1.066 GB, free: 13 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.955e-05/0.4065, allocations: 96.95 kB / 1.066 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.411e-05/0.4065, allocations: 0 / 1.066 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001718/0.4067, allocations: 19.98 kB / 1.066 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.076e-05/0.4067, allocations: 15.92 kB / 1.066 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.03e-05/0.4068, allocations: 4 kB / 1.066 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001093/0.4069, allocations: 140.6 kB / 1.066 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4069, allocations: 0 / 1.066 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003316/0.4072, allocations: 32 kB / 1.066 GB, free: 12.68 MB / 0.8262 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.0001779/0.4074, allocations: 111.1 kB / 1.066 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003747/0.4078, allocations: 124.1 kB / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.4078, allocations: 0 / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001701/0.408, allocations: 55.91 kB / 1.067 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006387/0.4086, allocations: 55.88 kB / 1.067 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007017/0.4093, allocations: 410.7 kB / 1.067 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003284/0.4097, allocations: 0.7167 MB / 1.068 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.044e-05/0.4098, allocations: 34.03 kB / 1.068 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.157e-05/0.4098, allocations: 15.44 kB / 1.068 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of SimCode: time 5.81e-07/0.4099, allocations: 3.938 kB / 1.068 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of Templates: time 0.0058/0.4157, allocations: 1.803 MB / 1.069 GB, free: 9.316 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches