Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Utilities.Math.Examples.IntegratorWithReset") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 5.009/5.009, allocations: 0.5623 GB / 0.5769 GB, free: 3.352 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.004366/0.004366, allocations: 359.2 kB / 0.644 GB, free: 185.6 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.199/4.199, allocations: 410.7 MB / 1.112 GB, free: 5.961 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00177/0.001769, allocations: 186.9 kB / 1.225 GB, free: 6.164 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0004961/0.0004964, allocations: 16 kB / 1.348 GB, free: 8.309 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5837/0.5842, allocations: 115.3 MB / 1.461 GB, free: 284.3 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.001778/0.586, allocations: 1.486 MB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.0009311/0.587, allocations: 0.5506 MB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001043/0.5871, allocations: 3.938 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 2.652e-05/0.5872, allocations: 13.8 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.0001249/0.5873, allocations: 19.8 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001955/0.5875, allocations: 55.92 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0001942/0.5877, allocations: 152.6 kB / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000129/0.5879, allocations: 40.8 kB / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 6.516e-05/0.5879, allocations: 37.61 kB / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 7.106e-05/0.588, allocations: 43.72 kB / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 2.332e-05/0.5881, allocations: 4 kB / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 1.933e-05/0.5881, allocations: 4 kB / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 2.692e-05/0.5881, allocations: 27.86 kB / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 3.747e-05/0.5882, allocations: 47.06 kB / 1.463 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0001108/0.5883, allocations: 85.89 kB / 1.463 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 5.276e-06/0.5883, allocations: 4 kB / 1.463 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of FrontEnd: time 2.457e-06/0.5883, allocations: 1.031 kB / 1.463 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 1.139e-05/0.5883, allocations: 0 / 1.463 GB, free: 281.8 MB / 0.8542 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.0006277/0.589, allocations: 457.5 kB / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.589, allocations: 11.62 kB / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.391e-05/0.5891, allocations: 23.77 kB / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002217/0.5893, allocations: 225.5 kB / 1.464 GB, free: 281 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.047e-05/0.5894, allocations: 12 kB / 1.464 GB, free: 281 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.468e-05/0.5894, allocations: 12 kB / 1.464 GB, free: 281 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003074/0.5897, allocations: 148.8 kB / 1.464 GB, free: 280.8 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.5898, allocations: 3.25 kB / 1.464 GB, free: 280.8 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.785e-05/0.5898, allocations: 8 kB / 1.464 GB, free: 280.8 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.08e-06/0.5898, allocations: 3.938 kB / 1.464 GB, free: 280.8 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002727/0.5901, allocations: 83.83 kB / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009154/0.591, allocations: 0.7451 MB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001682/0.5912, allocations: 53 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001286/0.5914, allocations: 41.89 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.48e-05/0.5914, allocations: 0.7188 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000287/0.5917, allocations: 134.8 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=11): time 3.09e-06/0.5917, allocations: 0 / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of matching and sorting (n=11): time 0.0005678/0.5923, allocations: 183 kB / 1.465 GB, free: 279.5 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.395e-05/0.5924, allocations: 132.5 kB / 1.465 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001795/0.5925, allocations: 197.5 kB / 1.466 GB, free: 279.1 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.811e-05/0.5926, allocations: 29.7 kB / 1.466 GB, free: 279.1 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 7.16e-05/0.5927, allocations: 133.2 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.624e-05/0.5927, allocations: 31.75 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.558e-06/0.5927, allocations: 4 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 6.211e-05/0.5928, allocations: 327.5 kB / 1.466 GB, free: 278.6 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001533/0.593, allocations: 49.66 kB / 1.466 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001935/0.5932, allocations: 143.9 kB / 1.466 GB, free: 278.3 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001769/0.5934, allocations: 71.88 kB / 1.466 GB, free: 278.3 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.61e-06/0.5934, allocations: 0 / 1.466 GB, free: 278.3 MB / 0.8542 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004823/0.5939, allocations: 213.3 kB / 1.467 GB, free: 278.1 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.5939, allocations: 4.625 kB / 1.467 GB, free: 278.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.295e-06/0.5939, allocations: 4 kB / 1.467 GB, free: 278 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.182e-05/0.594, allocations: 9.25 kB / 1.467 GB, free: 278 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001629/0.5941, allocations: 43.86 kB / 1.467 GB, free: 278 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.734e-06/0.5942, allocations: 4.656 kB / 1.467 GB, free: 278 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001894/0.5944, allocations: 36.98 kB / 1.467 GB, free: 278 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.706e-05/0.5944, allocations: 9.25 kB / 1.467 GB, free: 277.9 MB / 0.8542 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.0001147/0.5945, allocations: 138.1 kB / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.666e-05/0.5946, allocations: 16.31 kB / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.947e-05/0.5946, allocations: 26.45 kB / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.872e-06/0.5946, allocations: 0 / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.899e-06/0.5947, allocations: 7.953 kB / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.5947, allocations: 1.938 kB / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009441/0.5956, allocations: 0.5241 MB / 1.467 GB, free: 277.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.782e-06/0.5957, allocations: 4 kB / 1.467 GB, free: 277.2 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001768/0.5958, allocations: 22.11 kB / 1.467 GB, free: 277.2 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.29e-06/0.5959, allocations: 4 kB / 1.467 GB, free: 277.2 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.87e-05/0.5959, allocations: 3.953 kB / 1.467 GB, free: 277.2 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.614e-06/0.5959, allocations: 12.23 kB / 1.467 GB, free: 277.1 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.919e-06/0.5959, allocations: 0 / 1.467 GB, free: 277.1 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005935/0.5965, allocations: 381.1 kB / 1.468 GB, free: 276.8 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 5.307e-05/0.5966, allocations: 101.5 kB / 1.468 GB, free: 276.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.82e-05/0.5966, allocations: 6.391 kB / 1.468 GB, free: 276.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002499/0.5969, allocations: 21.05 kB / 1.468 GB, free: 276.6 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.072e-05/0.597, allocations: 11.98 kB / 1.468 GB, free: 276.6 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.694e-05/0.597, allocations: 8.953 kB / 1.468 GB, free: 276.6 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001253/0.5972, allocations: 146.1 kB / 1.468 GB, free: 276.5 MB / 0.8542 GB Notification: Performance of sort global known variables: time 8.22e-07/0.5972, allocations: 1 kB / 1.468 GB, free: 276.5 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0004678/0.5976, allocations: 28 kB / 1.468 GB, free: 276.4 MB / 0.8542 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.0001096/0.5978, allocations: 100.8 kB / 1.468 GB, free: 276.3 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0004048/0.5982, allocations: 129.3 kB / 1.468 GB, free: 276.2 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.5982, allocations: 0 / 1.468 GB, free: 276.2 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.000179/0.5984, allocations: 56.84 kB / 1.468 GB, free: 276.2 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00069/0.5991, allocations: 62.97 kB / 1.468 GB, free: 276.1 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006452/0.5998, allocations: 388.5 kB / 1.469 GB, free: 275.7 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000177/0.6, allocations: 0.7265 MB / 1.47 GB, free: 274.9 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 9.688e-05/0.6001, allocations: 19.02 kB / 1.47 GB, free: 274.9 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.968e-05/0.6001, allocations: 15.44 kB / 1.47 GB, free: 274.9 MB / 0.8542 GB Notification: Performance of SimCode: time 1.673e-06/0.6001, allocations: 0.5938 kB / 1.47 GB, free: 274.9 MB / 0.8542 GB Notification: Performance of Templates: time 0.005825/0.606, allocations: 1.737 MB / 1.471 GB, free: 273.3 MB / 0.8542 GB