Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.000886/0.000886, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.001182/0.001182, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.573/1.573, allocations: 205.4 MB / 222.1 MB, free: 5.391 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.863/1.863, allocations: 292.7 MB / 0.5499 GB, free: 14.56 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000531/0.0005311, allocations: 12.69 kB / 0.6737 GB, free: 26.09 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.2647, allocations: 116.3 MB / 0.7873 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002024/0.2668, allocations: 1.492 MB / 0.7887 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0009925/0.2678, allocations: 0.5428 MB / 0.7893 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001291/0.2679, allocations: 7.938 kB / 0.7893 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001345/0.2681, allocations: 11.86 kB / 0.7893 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.495e-05/0.2682, allocations: 31.72 kB / 0.7893 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002532/0.2684, allocations: 51.92 kB / 0.7894 GB, free: 9.781 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000225/0.2687, allocations: 151.5 kB / 0.7895 GB, free: 9.633 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001481/0.2688, allocations: 37.83 kB / 0.7895 GB, free: 9.598 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.841e-05/0.2689, allocations: 43.8 kB / 0.7896 GB, free: 9.555 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.269e-05/0.269, allocations: 47.7 kB / 0.7896 GB, free: 9.508 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.043e-05/0.269, allocations: 4 kB / 0.7896 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.627e-05/0.2691, allocations: 4 kB / 0.7896 GB, free: 9.5 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.49e-05/0.2691, allocations: 23.86 kB / 0.7897 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.738e-05/0.2691, allocations: 49.62 kB / 0.7897 GB, free: 9.422 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001175/0.2693, allocations: 84.06 kB / 0.7898 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.2693, allocations: 0 / 0.7898 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.164e-06/0.2693, allocations: 0 / 0.7898 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.2693, allocations: 0 / 0.7898 GB, free: 9.34 MB / 0.6075 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.000672/0.27, allocations: 458.6 kB / 0.7902 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.27, allocations: 12.03 kB / 0.7902 GB, free: 8.832 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.05e-05/0.2701, allocations: 15.81 kB / 0.7903 GB, free: 8.816 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002454/0.2703, allocations: 226.7 kB / 0.7905 GB, free: 8.555 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.95e-05/0.2704, allocations: 8 kB / 0.7905 GB, free: 8.547 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.689e-05/0.2704, allocations: 15.91 kB / 0.7905 GB, free: 8.531 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003081/0.2707, allocations: 157.9 kB / 0.7906 GB, free: 8.355 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.2707, allocations: 0 / 0.7906 GB, free: 8.355 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.2708, allocations: 4 kB / 0.7906 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.2708, allocations: 4 kB / 0.7907 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002501/0.271, allocations: 91.83 kB / 0.7907 GB, free: 8.258 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008677/0.2719, allocations: 0.7356 MB / 0.7915 GB, free: 7.457 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001372/0.2721, allocations: 50.55 kB / 0.7915 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001048/0.2722, allocations: 44.77 kB / 0.7915 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.474e-05/0.2722, allocations: 4 kB / 0.7916 GB, free: 7.348 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002564/0.2725, allocations: 134.6 kB / 0.7917 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.192e-06/0.2725, allocations: 0 / 0.7917 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0004578/0.2729, allocations: 181.5 kB / 0.7919 GB, free: 7.008 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.496e-05/0.273, allocations: 136.5 kB / 0.792 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002136/0.2732, allocations: 199.5 kB / 0.7922 GB, free: 6.637 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.2733, allocations: 29.7 kB / 0.7922 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.977e-05/0.2734, allocations: 127.8 kB / 0.7923 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.797e-05/0.2734, allocations: 39.64 kB / 0.7924 GB, free: 6.434 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.354e-06/0.2734, allocations: 4 kB / 0.7924 GB, free: 6.43 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001089/0.2735, allocations: 330.8 kB / 0.7927 GB, free: 6.098 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001238/0.2737, allocations: 40.34 kB / 0.7927 GB, free: 6.059 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001876/0.2739, allocations: 157.7 kB / 0.7929 GB, free: 5.855 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001424/0.274, allocations: 59.91 kB / 0.7929 GB, free: 5.797 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.274, allocations: 4 kB / 0.7929 GB, free: 5.793 MB / 0.6075 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003952/0.2744, allocations: 213.6 kB / 0.7931 GB, free: 5.578 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.2745, allocations: 4 kB / 0.7931 GB, free: 5.574 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.2745, allocations: 4.047 kB / 0.7931 GB, free: 5.57 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.985e-05/0.2745, allocations: 11.98 kB / 0.7932 GB, free: 5.559 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001228/0.2746, allocations: 35.91 kB / 0.7932 GB, free: 5.523 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.395e-05/0.2746, allocations: 15.89 kB / 0.7932 GB, free: 5.508 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001541/0.2748, allocations: 36.02 kB / 0.7932 GB, free: 5.473 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.41e-05/0.2748, allocations: 8 kB / 0.7932 GB, free: 5.465 MB / 0.6075 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 ($whenCondition2,sampleTrigger.y,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001284/0.275, allocations: 130.4 kB / 0.7934 GB, free: 5.328 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.255e-05/0.275, allocations: 23.72 kB / 0.7934 GB, free: 5.305 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.622e-05/0.2751, allocations: 21.39 kB / 0.7934 GB, free: 5.281 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.2751, allocations: 4 kB / 0.7934 GB, free: 5.277 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.2751, allocations: 0 / 0.7934 GB, free: 5.277 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.2751, allocations: 3.953 kB / 0.7934 GB, free: 5.273 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000719/0.2758, allocations: 0.5289 MB / 0.7939 GB, free: 4.688 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.2758, allocations: 0 / 0.7939 GB, free: 4.688 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001123/0.2759, allocations: 27.86 kB / 0.794 GB, free: 4.66 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.838e-06/0.276, allocations: 0 / 0.794 GB, free: 4.66 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.599e-05/0.276, allocations: 8 kB / 0.794 GB, free: 4.652 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.71e-06/0.276, allocations: 7.938 kB / 0.794 GB, free: 4.645 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.276, allocations: 0 / 0.794 GB, free: 4.645 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004911/0.2765, allocations: 376.1 kB / 0.7943 GB, free: 4.254 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.709e-05/0.2766, allocations: 89.23 kB / 0.7944 GB, free: 4.148 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.567e-05/0.2766, allocations: 4 kB / 0.7944 GB, free: 4.145 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001627/0.2768, allocations: 24.03 kB / 0.7944 GB, free: 4.121 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.912e-05/0.2768, allocations: 11.94 kB / 0.7945 GB, free: 4.109 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.912e-05/0.2769, allocations: 11.98 kB / 0.7945 GB, free: 4.098 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001164/0.277, allocations: 136.6 kB / 0.7946 GB, free: 3.965 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.41e-07/0.277, allocations: 4 kB / 0.7946 GB, free: 3.961 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003529/0.2773, allocations: 28 kB / 0.7946 GB, free: 3.934 MB / 0.6075 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001513/0.2775, allocations: 108.2 kB / 0.7947 GB, free: 3.82 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003142/0.2778, allocations: 124 kB / 0.7949 GB, free: 3.699 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.2778, allocations: 0 / 0.7949 GB, free: 3.699 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001394/0.278, allocations: 56.72 kB / 0.7949 GB, free: 3.645 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005478/0.2785, allocations: 63.88 kB / 0.795 GB, free: 3.582 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000628/0.2792, allocations: 386.7 kB / 0.7953 GB, free: 3.172 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003215/0.2795, allocations: 0.7245 MB / 0.796 GB, free: 2.422 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 9.85e-05/0.2796, allocations: 21.86 kB / 0.7961 GB, free: 2.402 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.319e-05/0.2797, allocations: 15.44 kB / 0.7961 GB, free: 2.391 MB / 0.6075 GB Notification: Performance of SimCode: time 4.41e-07/0.2797, allocations: 0 / 0.7961 GB, free: 2.391 MB / 0.6075 GB Notification: Performance of Templates: time 0.004931/0.2846, allocations: 1.74 MB / 0.7978 GB, free: 0.6758 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) Environment - environmentSimulation: