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.001357/0.001357, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001309/0.001309, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.425/1.425, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.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.256/2.256, allocations: 390.2 MB / 0.6653 GB, free: 0.7109 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 65.91 kB / 0.8132 GB, free: 33.09 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.2653, allocations: 140.4 MB / 0.9503 GB, free: 8.879 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.004604/0.27, allocations: 1.824 MB / 0.952 GB, free: 7.039 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001473/0.2715, allocations: 0.5377 MB / 0.9526 GB, free: 6.496 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002005/0.2717, allocations: 4 kB / 0.9526 GB, free: 6.492 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001915/0.272, allocations: 23.67 kB / 0.9526 GB, free: 6.469 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001242/0.2721, allocations: 23.73 kB / 0.9526 GB, free: 6.445 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003216/0.2725, allocations: 63.91 kB / 0.9527 GB, free: 6.383 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003394/0.2728, allocations: 171.4 kB / 0.9528 GB, free: 6.215 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002107/0.2731, allocations: 69.52 kB / 0.9529 GB, free: 6.145 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000121/0.2732, allocations: 47.8 kB / 0.953 GB, free: 6.098 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001158/0.2733, allocations: 59.58 kB / 0.953 GB, free: 6.039 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.911e-05/0.2734, allocations: 12 kB / 0.953 GB, free: 6.027 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 3.018e-05/0.2734, allocations: 8 kB / 0.953 GB, free: 6.02 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.649e-05/0.2735, allocations: 23.92 kB / 0.9531 GB, free: 5.996 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 9.489e-05/0.2736, allocations: 71.58 kB / 0.9531 GB, free: 5.926 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002482/0.2738, allocations: 131.8 kB / 0.9532 GB, free: 5.797 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.2738, allocations: 4 kB / 0.9533 GB, free: 5.793 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.543e-06/0.2738, allocations: 3.938 kB / 0.9533 GB, free: 5.789 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.676e-06/0.2739, allocations: 0 / 0.9533 GB, free: 5.789 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.001031/0.2749, allocations: 466.8 kB / 0.9537 GB, free: 5.285 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.64e-05/0.275, allocations: 12.03 kB / 0.9537 GB, free: 5.273 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.133e-05/0.2751, allocations: 20.66 kB / 0.9537 GB, free: 5.254 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003937/0.2755, allocations: 228.5 kB / 0.954 GB, free: 4.992 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.2755, allocations: 12.38 kB / 0.954 GB, free: 4.98 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.095e-05/0.2756, allocations: 16.28 kB / 0.954 GB, free: 4.965 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003903/0.276, allocations: 143.9 kB / 0.9541 GB, free: 4.805 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.675e-05/0.276, allocations: 7.938 kB / 0.9541 GB, free: 4.797 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.377e-05/0.276, allocations: 4 kB / 0.9541 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.276, allocations: 7.938 kB / 0.9541 GB, free: 4.785 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003027/0.2763, allocations: 81.02 kB / 0.9542 GB, free: 4.707 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001236/0.2776, allocations: 0.7315 MB / 0.9549 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001942/0.2778, allocations: 42.56 kB / 0.955 GB, free: 3.859 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001444/0.278, allocations: 36.83 kB / 0.955 GB, free: 3.82 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.189e-05/0.278, allocations: 0 / 0.955 GB, free: 3.82 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003737/0.2784, allocations: 138.7 kB / 0.9551 GB, free: 3.66 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=11): time 2.325e-06/0.2784, allocations: 0 / 0.9551 GB, free: 3.66 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.0006554/0.2791, allocations: 169.5 kB / 0.9553 GB, free: 3.488 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.619e-05/0.2792, allocations: 128.5 kB / 0.9554 GB, free: 3.332 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002587/0.2794, allocations: 202.8 kB / 0.9556 GB, free: 3.125 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.656e-05/0.2795, allocations: 29.7 kB / 0.9556 GB, free: 3.09 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001276/0.2796, allocations: 131.8 kB / 0.9558 GB, free: 2.957 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.845e-05/0.2797, allocations: 31.55 kB / 0.9558 GB, free: 2.926 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.691e-05/0.2798, allocations: 41.7 kB / 0.9558 GB, free: 2.879 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002692/0.28, allocations: 330.8 kB / 0.9562 GB, free: 2.547 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001521/0.2802, allocations: 35.97 kB / 0.9562 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002356/0.2804, allocations: 154.4 kB / 0.9563 GB, free: 2.309 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003774/0.2808, allocations: 194.4 kB / 0.9565 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.2808, allocations: 4 kB / 0.9565 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000553/0.2814, allocations: 209 kB / 0.9567 GB, free: 1.852 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/0.2814, allocations: 8 kB / 0.9567 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.2815, allocations: 4 kB / 0.9567 GB, free: 1.84 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.077e-05/0.2815, allocations: 4 kB / 0.9567 GB, free: 1.836 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001795/0.2817, allocations: 36.42 kB / 0.9568 GB, free: 1.801 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.702e-05/0.2817, allocations: 4 kB / 0.9568 GB, free: 1.797 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002424/0.282, allocations: 31.77 kB / 0.9568 GB, free: 1.766 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.478e-05/0.282, allocations: 19.92 kB / 0.9568 GB, free: 1.746 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.0001912/0.2822, allocations: 129.8 kB / 0.9569 GB, free: 1.609 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.89e-05/0.2823, allocations: 15.81 kB / 0.957 GB, free: 1.594 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.112e-05/0.2823, allocations: 25.33 kB / 0.957 GB, free: 1.57 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.2823, allocations: 7.938 kB / 0.957 GB, free: 1.562 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.2824, allocations: 256 / 0.957 GB, free: 1.562 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.869e-06/0.2824, allocations: 4 kB / 0.957 GB, free: 1.559 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009977/0.2834, allocations: 0.5212 MB / 0.9575 GB, free: 0.9805 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.2834, allocations: 0 / 0.9575 GB, free: 0.9805 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001527/0.2836, allocations: 19.98 kB / 0.9575 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.773e-06/0.2836, allocations: 4 kB / 0.9575 GB, free: 0.957 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.2836, allocations: 4.047 kB / 0.9575 GB, free: 0.9531 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.594e-05/0.2836, allocations: 4 kB / 0.9575 GB, free: 0.9492 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/0.2836, allocations: 11.86 kB / 0.9576 GB, free: 0.9375 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006641/0.2843, allocations: 348.4 kB / 0.9579 GB, free: 0.5742 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.208e-05/0.2844, allocations: 96.86 kB / 0.958 GB, free: 472 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.038e-05/0.2845, allocations: 8.031 kB / 0.958 GB, free: 464 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002457/0.2847, allocations: 11.98 kB / 0.958 GB, free: 452 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.426e-05/0.2848, allocations: 19.86 kB / 0.958 GB, free: 432 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.2848, allocations: 4 kB / 0.958 GB, free: 428 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001559/0.285, allocations: 144.6 kB / 0.9582 GB, free: 284 kB / 0.7325 GB Notification: Performance of sort global known variables: time 1.61e-07/0.285, allocations: 0 / 0.9582 GB, free: 284 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005211/0.2855, allocations: 28 kB / 0.9582 GB, free: 256 kB / 0.7325 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.0001657/0.2857, allocations: 111.2 kB / 0.9583 GB, free: 136 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004363/0.2861, allocations: 116.4 kB / 0.9584 GB, free: 20 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.2862, allocations: 4.312 kB / 0.9584 GB, free: 16 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002268/0.2864, allocations: 51.91 kB / 0.9585 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007958/0.2872, allocations: 72.7 kB / 0.9585 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008588/0.2881, allocations: 378.6 kB / 0.9589 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003865/0.2885, allocations: 0.728 MB / 0.9596 GB, free: 14.73 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.939e-05/0.2885, allocations: 23.44 kB / 0.9596 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of SimCode: time 5.71e-07/0.2886, allocations: 0 / 0.9596 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of Templates: time 0.004869/0.2934, allocations: 2.112 MB / 0.9617 GB, free: 12.6 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 -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