Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.007979/0.007979, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001492/0.001492, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.421/1.421, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.492/2.492, allocations: 437 MB / 0.7105 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 63.91 kB / 1.019 GB, free: 9.402 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8855/0.8867, allocations: 151.6 MB / 1.167 GB, free: 3.824 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002791/0.8895, allocations: 1.815 MB / 1.168 GB, free: 2 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0008583/0.8904, allocations: 0.5376 MB / 1.169 GB, free: 1.457 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.361e-05/0.8905, allocations: 3.938 kB / 1.169 GB, free: 1.453 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001345/0.8906, allocations: 23.73 kB / 1.169 GB, free: 1.43 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.135e-05/0.8907, allocations: 27.73 kB / 1.169 GB, free: 1.402 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002185/0.8909, allocations: 67.86 kB / 1.169 GB, free: 1.336 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002087/0.8912, allocations: 175.5 kB / 1.169 GB, free: 1.164 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001613/0.8913, allocations: 57.56 kB / 1.169 GB, free: 1.105 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 8.478e-05/0.8914, allocations: 55.67 kB / 1.169 GB, free: 1.051 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.415e-05/0.8915, allocations: 59.69 kB / 1.169 GB, free: 0.9922 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.526e-05/0.8915, allocations: 12 kB / 1.169 GB, free: 0.9805 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 2.121e-05/0.8915, allocations: 8 kB / 1.169 GB, free: 0.9727 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.566e-05/0.8916, allocations: 31.84 kB / 1.169 GB, free: 0.9414 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 6.711e-05/0.8917, allocations: 63.61 kB / 1.169 GB, free: 0.8789 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001665/0.8918, allocations: 131.8 kB / 1.17 GB, free: 0.7539 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.267e-06/0.8918, allocations: 0 / 1.17 GB, free: 0.7539 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.333e-06/0.8918, allocations: 0 / 1.17 GB, free: 0.7539 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.8919, allocations: 0 / 1.17 GB, free: 0.7539 MB / 0.8887 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.0006654/0.8925, allocations: 486.5 kB / 1.17 GB, free: 236 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.8926, allocations: 8.922 kB / 1.17 GB, free: 228 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.731e-05/0.8926, allocations: 20.84 kB / 1.17 GB, free: 208 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002874/0.8929, allocations: 240 kB / 1.17 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.398e-05/0.8929, allocations: 12.38 kB / 1.17 GB, free: 15.92 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.149e-05/0.893, allocations: 12.38 kB / 1.17 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002773/0.8933, allocations: 156.1 kB / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.8933, allocations: 7.875 kB / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.291e-05/0.8933, allocations: 0 / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.8933, allocations: 4 kB / 1.171 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002093/0.8935, allocations: 79.88 kB / 1.171 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008122/0.8943, allocations: 0.7395 MB / 1.171 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001388/0.8945, allocations: 42.56 kB / 1.171 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.706e-05/0.8946, allocations: 32.83 kB / 1.171 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.022e-05/0.8946, allocations: 4 kB / 1.171 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002147/0.8948, allocations: 130.7 kB / 1.172 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=11): time 1.212e-06/0.8949, allocations: 0 / 1.172 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11): time 0.0004363/0.8953, allocations: 165.4 kB / 1.172 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.501e-05/0.8954, allocations: 132.8 kB / 1.172 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001667/0.8955, allocations: 203 kB / 1.172 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.59e-05/0.8956, allocations: 29.7 kB / 1.172 GB, free: 14.03 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.606e-05/0.8956, allocations: 124 kB / 1.172 GB, free: 13.9 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.584e-05/0.8957, allocations: 39.88 kB / 1.172 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.418e-05/0.8957, allocations: 41.7 kB / 1.172 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 9.452e-05/0.8958, allocations: 326.8 kB / 1.173 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001159/0.896, allocations: 43.97 kB / 1.173 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001637/0.8961, allocations: 146.4 kB / 1.173 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002796/0.8964, allocations: 202.4 kB / 1.173 GB, free: 13 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.8964, allocations: 0 / 1.173 GB, free: 13 MB / 0.9044 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003681/0.8968, allocations: 213.3 kB / 1.173 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.8968, allocations: 8 kB / 1.173 GB, free: 12.78 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.8968, allocations: 7.938 kB / 1.173 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.8969, allocations: 4 kB / 1.173 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001178/0.897, allocations: 31.92 kB / 1.173 GB, free: 12.73 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.897, allocations: 11.94 kB / 1.173 GB, free: 12.72 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001402/0.8971, allocations: 32.19 kB / 1.173 GB, free: 12.69 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.252e-05/0.8972, allocations: 11.94 kB / 1.173 GB, free: 12.68 MB / 0.9044 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.0001013/0.8973, allocations: 137.9 kB / 1.173 GB, free: 12.54 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.699e-05/0.8973, allocations: 19.89 kB / 1.173 GB, free: 12.52 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.486e-05/0.8974, allocations: 25.39 kB / 1.173 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.8974, allocations: 3.938 kB / 1.173 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.555e-05/0.8974, allocations: 4 kB / 1.173 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-06/0.8974, allocations: 0 / 1.173 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006733/0.8981, allocations: 0.5093 MB / 1.174 GB, free: 11.91 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.8981, allocations: 0 / 1.174 GB, free: 11.91 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001053/0.8982, allocations: 15.98 kB / 1.174 GB, free: 11.89 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.8982, allocations: 4 kB / 1.174 GB, free: 11.89 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.8982, allocations: 4 kB / 1.174 GB, free: 11.89 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.744e-06/0.8982, allocations: 4.312 kB / 1.174 GB, free: 11.88 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.8982, allocations: 7.875 kB / 1.174 GB, free: 11.88 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004408/0.8987, allocations: 360.3 kB / 1.174 GB, free: 11.5 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.973e-05/0.8988, allocations: 96.95 kB / 1.174 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.357e-05/0.8988, allocations: 8.031 kB / 1.174 GB, free: 11.38 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001591/0.899, allocations: 15.98 kB / 1.174 GB, free: 11.36 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.217e-05/0.899, allocations: 19.86 kB / 1.174 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.947e-06/0.899, allocations: 4 kB / 1.174 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001012/0.8991, allocations: 144.4 kB / 1.175 GB, free: 11.2 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8991, allocations: 0 / 1.175 GB, free: 11.2 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003121/0.8995, allocations: 28 kB / 1.175 GB, free: 11.17 MB / 0.9044 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.0001273/0.8996, allocations: 107.2 kB / 1.175 GB, free: 11.06 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003016/0.8999, allocations: 111.8 kB / 1.175 GB, free: 10.95 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.8999, allocations: 1 kB / 1.175 GB, free: 10.95 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001359/0.9, allocations: 56.02 kB / 1.175 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005388/0.9006, allocations: 72.48 kB / 1.175 GB, free: 10.83 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005647/0.9012, allocations: 347.8 kB / 1.175 GB, free: 10.45 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000283/0.9015, allocations: 0.7242 MB / 1.176 GB, free: 9.703 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 6.234e-05/0.9015, allocations: 21.86 kB / 1.176 GB, free: 9.684 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.511e-05/0.9016, allocations: 19.44 kB / 1.176 GB, free: 9.664 MB / 0.9044 GB Notification: Performance of SimCode: time 2.41e-07/0.9016, allocations: 4 kB / 1.176 GB, free: 9.66 MB / 0.9044 GB Notification: Performance of Templates: time 0.004674/0.9063, allocations: 2.023 MB / 1.178 GB, free: 7.664 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches