Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.542/1.542, allocations: 252 MB / 267.6 MB, free: 10.91 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001134/0.001134, allocations: 182.7 kB / 327.3 MB, free: 2.195 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.739/1.739, allocations: 205.4 MB / 0.5783 GB, free: 20.26 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008714/0.0008713, allocations: 97.92 kB / 0.6829 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003588/0.0003586, allocations: 13.02 kB / 0.797 GB, free: 135.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2117/0.2121, allocations: 106.3 MB / 0.9008 GB, free: 63.9 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.001905/0.214, allocations: 1.492 MB / 0.9023 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0009596/0.215, allocations: 0.5618 MB / 0.9028 GB, free: 61.82 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001293/0.2152, allocations: 4 kB / 0.9028 GB, free: 61.82 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001188/0.2153, allocations: 15.8 kB / 0.9028 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.588e-05/0.2154, allocations: 23.8 kB / 0.9029 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002027/0.2156, allocations: 47.94 kB / 0.9029 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001563/0.2157, allocations: 155.5 kB / 0.9031 GB, free: 61.58 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001197/0.2159, allocations: 29.86 kB / 0.9031 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.883e-05/0.2159, allocations: 47.72 kB / 0.9031 GB, free: 61.5 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.298e-05/0.216, allocations: 51.7 kB / 0.9032 GB, free: 61.45 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.422e-05/0.216, allocations: 4 kB / 0.9032 GB, free: 61.45 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.74e-05/0.2161, allocations: 8 kB / 0.9032 GB, free: 61.44 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.886e-05/0.2161, allocations: 15.92 kB / 0.9032 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.424e-05/0.2161, allocations: 49.58 kB / 0.9033 GB, free: 61.37 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 9.468e-05/0.2162, allocations: 87.98 kB / 0.9033 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.2162, allocations: 0 / 0.9033 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.553e-06/0.2163, allocations: 0 / 0.9033 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.779e-06/0.2163, allocations: 0 / 0.9033 GB, free: 61.29 MB / 0.6042 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.0005987/0.2169, allocations: 454.6 kB / 0.9038 GB, free: 60.79 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.2169, allocations: 8.031 kB / 0.9038 GB, free: 60.79 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.596e-05/0.217, allocations: 31.75 kB / 0.9038 GB, free: 60.75 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001938/0.2172, allocations: 222.6 kB / 0.904 GB, free: 60.5 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.892e-05/0.2172, allocations: 8 kB / 0.904 GB, free: 60.49 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.361e-05/0.2172, allocations: 12 kB / 0.904 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002717/0.2175, allocations: 155.9 kB / 0.9042 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.2175, allocations: 0 / 0.9042 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.578e-05/0.2176, allocations: 4 kB / 0.9042 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.2176, allocations: 3.984 kB / 0.9042 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002189/0.2178, allocations: 91.78 kB / 0.9043 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007235/0.2185, allocations: 0.7394 MB / 0.905 GB, free: 59.4 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001876/0.2187, allocations: 58.55 kB / 0.9051 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.2189, allocations: 36.84 kB / 0.9051 GB, free: 59.3 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.689e-05/0.2189, allocations: 7.922 kB / 0.9051 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002476/0.2191, allocations: 130.7 kB / 0.9052 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=11): time 1.313e-06/0.2192, allocations: 0 / 0.9052 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11): time 0.000451/0.2196, allocations: 185.5 kB / 0.9054 GB, free: 58.95 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.032e-05/0.2197, allocations: 132.5 kB / 0.9055 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001276/0.2198, allocations: 198.9 kB / 0.9057 GB, free: 58.59 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.514e-05/0.2198, allocations: 29.7 kB / 0.9058 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.845e-05/0.2199, allocations: 127.9 kB / 0.9059 GB, free: 58.42 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.283e-05/0.2199, allocations: 31.77 kB / 0.9059 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.352e-06/0.2199, allocations: 0 / 0.9059 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.591e-05/0.22, allocations: 338.8 kB / 0.9062 GB, free: 58.05 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001155/0.2201, allocations: 40.34 kB / 0.9063 GB, free: 58.01 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001409/0.2203, allocations: 159.2 kB / 0.9064 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001302/0.2204, allocations: 55.98 kB / 0.9065 GB, free: 57.75 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.2204, allocations: 0 / 0.9065 GB, free: 57.75 MB / 0.6042 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003308/0.2207, allocations: 217.4 kB / 0.9067 GB, free: 57.53 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.2208, allocations: 7.984 kB / 0.9067 GB, free: 57.52 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.2208, allocations: 4 kB / 0.9067 GB, free: 57.52 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.2208, allocations: 8 kB / 0.9067 GB, free: 57.51 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001185/0.2209, allocations: 35.88 kB / 0.9067 GB, free: 57.48 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/0.2209, allocations: 12.12 kB / 0.9068 GB, free: 57.46 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001352/0.2211, allocations: 35.83 kB / 0.9068 GB, free: 57.43 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.071e-05/0.2211, allocations: 8 kB / 0.9068 GB, free: 57.42 MB / 0.6042 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 8.324e-05/0.2212, allocations: 137.7 kB / 0.9069 GB, free: 57.28 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.424e-05/0.2212, allocations: 23.75 kB / 0.9069 GB, free: 57.25 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.795e-05/0.2213, allocations: 21.39 kB / 0.907 GB, free: 57.23 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.2213, allocations: 0 / 0.907 GB, free: 57.23 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.2213, allocations: 11.95 kB / 0.907 GB, free: 57.22 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.2213, allocations: 3.938 kB / 0.907 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00061/0.2219, allocations: 0.5211 MB / 0.9075 GB, free: 56.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.2219, allocations: 288 / 0.9075 GB, free: 56.64 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001107/0.222, allocations: 15.98 kB / 0.9075 GB, free: 56.62 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.222, allocations: 4 kB / 0.9075 GB, free: 56.62 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.2221, allocations: 4.266 kB / 0.9075 GB, free: 56.61 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.2221, allocations: 8 kB / 0.9075 GB, free: 56.61 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2221, allocations: 3.938 kB / 0.9075 GB, free: 56.6 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004311/0.2225, allocations: 378.5 kB / 0.9079 GB, free: 56.21 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.507e-05/0.2226, allocations: 92.86 kB / 0.908 GB, free: 56.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.474e-05/0.2226, allocations: 8.031 kB / 0.908 GB, free: 56.09 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002141/0.2228, allocations: 23.94 kB / 0.908 GB, free: 56.07 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.32e-05/0.2229, allocations: 11.92 kB / 0.908 GB, free: 56.06 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.455e-06/0.2229, allocations: 4 kB / 0.908 GB, free: 56.05 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 8.196e-05/0.223, allocations: 152.2 kB / 0.9082 GB, free: 55.91 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.5e-07/0.223, allocations: 3.938 kB / 0.9082 GB, free: 55.9 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.000286/0.2233, allocations: 31.91 kB / 0.9082 GB, free: 55.87 MB / 0.6042 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.0001072/0.2234, allocations: 103.2 kB / 0.9083 GB, free: 55.76 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003016/0.2237, allocations: 123.8 kB / 0.9084 GB, free: 55.64 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.2237, allocations: 0 / 0.9084 GB, free: 55.64 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001393/0.2239, allocations: 57.03 kB / 0.9085 GB, free: 55.59 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005089/0.2244, allocations: 58.19 kB / 0.9085 GB, free: 55.53 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004887/0.2249, allocations: 424.3 kB / 0.9089 GB, free: 55.07 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001407/0.225, allocations: 0.7206 MB / 0.9096 GB, free: 54.33 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.085e-05/0.2251, allocations: 19.44 kB / 0.9097 GB, free: 54.31 MB / 0.6042 GB Notification: Performance of SimCode: time 4.21e-07/0.2251, allocations: 0 / 0.9097 GB, free: 54.31 MB / 0.6042 GB Notification: Performance of Templates: time 0.00309/0.2282, allocations: 2.096 MB / 0.9117 GB, free: 52.23 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)