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.001653/0.001653, allocations: 104.6 kB / 16.35 MB, free: 5.887 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.001715/0.001715, allocations: 192.3 kB / 17.29 MB, free: 5.527 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.351/1.351, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.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.285/2.285, allocations: 390.3 MB / 0.6655 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001262, allocations: 65.61 kB / 0.814 GB, free: 32.73 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2581, allocations: 140.4 MB / 0.9511 GB, free: 8.078 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002932/0.261, allocations: 1.82 MB / 0.9529 GB, free: 6.25 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0008897/0.2619, allocations: 0.5338 MB / 0.9534 GB, free: 5.711 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.456e-05/0.262, allocations: 3.938 kB / 0.9534 GB, free: 5.707 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.000131/0.2622, allocations: 31.72 kB / 0.9534 GB, free: 5.676 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.306e-05/0.2623, allocations: 27.73 kB / 0.9535 GB, free: 5.648 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002031/0.2625, allocations: 67.86 kB / 0.9535 GB, free: 5.582 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001999/0.2627, allocations: 171.5 kB / 0.9537 GB, free: 5.414 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001389/0.2628, allocations: 61.53 kB / 0.9538 GB, free: 5.352 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 7.451e-05/0.2629, allocations: 51.73 kB / 0.9538 GB, free: 5.301 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.111e-05/0.263, allocations: 59.64 kB / 0.9539 GB, free: 5.242 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.188e-05/0.263, allocations: 8 kB / 0.9539 GB, free: 5.234 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.877e-05/0.263, allocations: 12 kB / 0.9539 GB, free: 5.223 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.558e-05/0.2631, allocations: 31.89 kB / 0.9539 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 8.24e-05/0.2632, allocations: 63.61 kB / 0.954 GB, free: 5.129 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001541/0.2633, allocations: 131.3 kB / 0.9541 GB, free: 5 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2633, allocations: 0 / 0.9541 GB, free: 5 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.232e-06/0.2633, allocations: 0 / 0.9541 GB, free: 5 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.689e-06/0.2633, allocations: 0 / 0.9541 GB, free: 5 MB / 0.7325 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.0006721/0.264, allocations: 478.8 kB / 0.9546 GB, free: 4.484 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.218e-05/0.2641, allocations: 8.031 kB / 0.9546 GB, free: 4.477 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.341e-05/0.2641, allocations: 20.66 kB / 0.9546 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002811/0.2644, allocations: 232.5 kB / 0.9548 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.196e-05/0.2644, allocations: 20.31 kB / 0.9548 GB, free: 4.172 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.425e-05/0.2645, allocations: 16.28 kB / 0.9548 GB, free: 4.156 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002618/0.2647, allocations: 142.2 kB / 0.955 GB, free: 3.996 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.2647, allocations: 4 kB / 0.955 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.2648, allocations: 0 / 0.955 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.692e-06/0.2648, allocations: 4 kB / 0.955 GB, free: 3.988 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002154/0.265, allocations: 83.77 kB / 0.9551 GB, free: 3.906 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008166/0.2658, allocations: 0.7315 MB / 0.9558 GB, free: 3.109 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001316/0.266, allocations: 50.5 kB / 0.9558 GB, free: 3.051 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.2661, allocations: 36.81 kB / 0.9559 GB, free: 3.012 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.777e-05/0.2661, allocations: 0 / 0.9559 GB, free: 3.012 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002103/0.2663, allocations: 142.5 kB / 0.956 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=11): time 1.322e-06/0.2663, allocations: 0 / 0.956 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.0004379/0.2668, allocations: 161.3 kB / 0.9562 GB, free: 2.684 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.204e-05/0.2668, allocations: 140.7 kB / 0.9563 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001917/0.267, allocations: 195 kB / 0.9565 GB, free: 2.312 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.467e-05/0.2671, allocations: 33.7 kB / 0.9565 GB, free: 2.273 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 9.925e-05/0.2672, allocations: 127.8 kB / 0.9566 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.8e-05/0.2672, allocations: 39.69 kB / 0.9567 GB, free: 2.105 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.404e-05/0.2673, allocations: 41.7 kB / 0.9567 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001548/0.2675, allocations: 326.8 kB / 0.957 GB, free: 1.73 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000121/0.2676, allocations: 39.97 kB / 0.9571 GB, free: 1.691 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002109/0.2678, allocations: 147.9 kB / 0.9572 GB, free: 1.496 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003183/0.2681, allocations: 198.3 kB / 0.9574 GB, free: 1.25 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.2682, allocations: 4 kB / 0.9574 GB, free: 1.246 MB / 0.7325 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003929/0.2686, allocations: 209.1 kB / 0.9576 GB, free: 1.035 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.2686, allocations: 11.98 kB / 0.9576 GB, free: 1.023 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-06/0.2686, allocations: 4 kB / 0.9576 GB, free: 1.02 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.396e-05/0.2686, allocations: 4 kB / 0.9576 GB, free: 1.016 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001261/0.2688, allocations: 31.92 kB / 0.9576 GB, free: 0.9844 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.28e-05/0.2688, allocations: 4 kB / 0.9576 GB, free: 0.9805 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001364/0.2689, allocations: 32.17 kB / 0.9577 GB, free: 0.9492 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.049e-05/0.2689, allocations: 8 kB / 0.9577 GB, free: 0.9414 MB / 0.7325 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.0001235/0.2691, allocations: 143.7 kB / 0.9578 GB, free: 0.793 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.606e-05/0.2691, allocations: 15.81 kB / 0.9578 GB, free: 0.7773 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.52e-05/0.2692, allocations: 21.64 kB / 0.9579 GB, free: 0.7578 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.2692, allocations: 4 kB / 0.9579 GB, free: 0.7539 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.2692, allocations: 4 kB / 0.9579 GB, free: 0.75 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.2692, allocations: 4 kB / 0.9579 GB, free: 0.7461 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007209/0.2699, allocations: 0.517 MB / 0.9584 GB, free: 176 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.2699, allocations: 0 / 0.9584 GB, free: 176 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001079/0.27, allocations: 15.98 kB / 0.9584 GB, free: 160 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.27, allocations: 0 / 0.9584 GB, free: 160 kB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.792e-05/0.2701, allocations: 8 kB / 0.9584 GB, free: 152 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.2701, allocations: 0 / 0.9584 GB, free: 152 kB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.2701, allocations: 11.88 kB / 0.9584 GB, free: 140 kB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004833/0.2706, allocations: 352.2 kB / 0.9587 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 5.469e-05/0.2706, allocations: 88.92 kB / 0.9588 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.906e-05/0.2707, allocations: 12.41 kB / 0.9588 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000159/0.2708, allocations: 15.98 kB / 0.9588 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.912e-05/0.2709, allocations: 15.86 kB / 0.9589 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.158e-05/0.2709, allocations: 8 kB / 0.9589 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001083/0.271, allocations: 135.2 kB / 0.959 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.61e-07/0.271, allocations: 3.938 kB / 0.959 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003307/0.2714, allocations: 28 kB / 0.959 GB, free: 15.45 MB / 0.7481 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.0001403/0.2715, allocations: 119.2 kB / 0.9591 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0003241/0.2719, allocations: 115.7 kB / 0.9593 GB, free: 15.21 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.2719, allocations: 1 kB / 0.9593 GB, free: 15.21 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001412/0.272, allocations: 60.03 kB / 0.9593 GB, free: 15.15 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005541/0.2726, allocations: 64.2 kB / 0.9594 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006298/0.2732, allocations: 348.8 kB / 0.9597 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002784/0.2735, allocations: 0.728 MB / 0.9604 GB, free: 13.96 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 6.137e-05/0.2736, allocations: 13.55 kB / 0.9604 GB, free: 13.95 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.676e-05/0.2736, allocations: 23.44 kB / 0.9605 GB, free: 13.93 MB / 0.7481 GB Notification: Performance of SimCode: time 2e-07/0.2736, allocations: 0 / 0.9605 GB, free: 13.93 MB / 0.7481 GB Notification: Performance of Templates: time 0.004585/0.2782, allocations: 2.007 MB / 0.9624 GB, free: 11.95 MB / 0.7481 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches