Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.RegStep.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.RegStep") translateModel(Buildings.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.RegStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001274/0.001275, allocations: 201.8 kB / 16.26 MB, free: 6.621 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.358/1.358, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.735/2.735, allocations: 472.6 MB / 0.7448 GB, free: 4.906 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002107/0.002107, allocations: 65.98 kB / 0.9115 GB, free: 33.67 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3446/0.3468, allocations: 159.9 MB / 1.068 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001831/0.3486, allocations: 0.6481 MB / 1.068 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002375/0.3489, allocations: 51.78 kB / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.373e-05/0.3489, allocations: 4 kB / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.472e-05/0.3489, allocations: 0 / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.59e-06/0.3489, allocations: 0 / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002327/0.3492, allocations: 8 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 3.582e-05/0.3492, allocations: 0 / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 5.136e-05/0.3493, allocations: 11.98 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.282e-05/0.3493, allocations: 4 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 2.039e-05/0.3493, allocations: 0 / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.007e-06/0.3493, allocations: 0 / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001011/0.3494, allocations: 23.97 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.458e-06/0.3495, allocations: 0 / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.452e-05/0.3495, allocations: 0 / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 8.001e-05/0.3496, allocations: 15.92 kB / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.3496, allocations: 4 kB / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3496, allocations: 0 / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.139e-06/0.3496, allocations: 3.938 kB / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000269/0.3499, allocations: 319.6 kB / 1.069 GB, free: 9.699 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.3499, allocations: 8.031 kB / 1.069 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002485/0.3502, allocations: 16.91 kB / 1.069 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.952e-05/0.3503, allocations: 166.5 kB / 1.069 GB, free: 9.477 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.047e-06/0.3503, allocations: 384 / 1.069 GB, free: 9.477 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.18e-05/0.3503, allocations: 8.359 kB / 1.069 GB, free: 9.469 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001208/0.3504, allocations: 34.25 kB / 1.069 GB, free: 9.43 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.723e-06/0.3504, allocations: 4.188 kB / 1.069 GB, free: 9.426 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.738e-06/0.3504, allocations: 3.938 kB / 1.069 GB, free: 9.422 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.606e-06/0.3504, allocations: 0 / 1.069 GB, free: 9.422 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.131e-05/0.3505, allocations: 11.98 kB / 1.069 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001204/0.3507, allocations: 145.7 kB / 1.069 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 7.407e-05/0.3507, allocations: 26.53 kB / 1.069 GB, free: 9.184 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.129e-05/0.3508, allocations: 8.859 kB / 1.069 GB, free: 9.172 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.968e-05/0.3508, allocations: 8.047 kB / 1.069 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.078e-05/0.3508, allocations: 34.56 kB / 1.069 GB, free: 9.121 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 9.21e-07/0.3509, allocations: 0 / 1.069 GB, free: 9.121 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.000224/0.3511, allocations: 49.61 kB / 1.069 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.789e-05/0.3511, allocations: 51.41 kB / 1.069 GB, free: 9.004 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.78e-05/0.3512, allocations: 97.92 kB / 1.069 GB, free: 8.898 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.136e-05/0.3512, allocations: 25.7 kB / 1.069 GB, free: 8.867 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.315e-05/0.3512, allocations: 80.14 kB / 1.07 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.246e-05/0.3512, allocations: 0 / 1.07 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.121e-05/0.3513, allocations: 25.7 kB / 1.07 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.442e-05/0.3514, allocations: 310.8 kB / 1.07 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.678e-05/0.3514, allocations: 4 kB / 1.07 GB, free: 8.438 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.665e-05/0.3515, allocations: 3.984 kB / 1.07 GB, free: 8.434 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.907e-05/0.3516, allocations: 20.91 kB / 1.07 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.3516, allocations: 3.938 kB / 1.07 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001128/0.3517, allocations: 37.69 kB / 1.07 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.3517, allocations: 9.406 kB / 1.07 GB, free: 8.355 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.3517, allocations: 0 / 1.07 GB, free: 8.355 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.3517, allocations: 3.938 kB / 1.07 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.153e-05/0.3518, allocations: 7.969 kB / 1.07 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.271e-06/0.3518, allocations: 7.984 kB / 1.07 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.277e-05/0.3519, allocations: 0 / 1.07 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.701e-06/0.3519, allocations: 0 / 1.07 GB, free: 8.336 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 7.376e-05/0.3519, allocations: 113.8 kB / 1.07 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.628e-06/0.352, allocations: 3.906 kB / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.646e-05/0.352, allocations: 7.062 kB / 1.07 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.352, allocations: 0 / 1.07 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.352, allocations: 3.938 kB / 1.07 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.352, allocations: 4 kB / 1.07 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.264e-05/0.3521, allocations: 149.7 kB / 1.07 GB, free: 8 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.3521, allocations: 0 / 1.07 GB, free: 8 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.969e-05/0.3522, allocations: 0 / 1.07 GB, free: 8 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.3522, allocations: 0 / 1.07 GB, free: 8 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.568e-05/0.3522, allocations: 15.92 kB / 1.07 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.3522, allocations: 0 / 1.07 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3522, allocations: 0 / 1.07 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001461/0.3523, allocations: 69.06 kB / 1.07 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.803e-05/0.3524, allocations: 81.11 kB / 1.07 GB, free: 7.801 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.276e-05/0.3524, allocations: 3.938 kB / 1.07 GB, free: 7.797 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.672e-05/0.3525, allocations: 3.984 kB / 1.07 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.668e-06/0.3525, allocations: 0 / 1.07 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.246e-06/0.3525, allocations: 0 / 1.07 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.959e-05/0.3525, allocations: 75.28 kB / 1.07 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.11e-07/0.3525, allocations: 4 kB / 1.07 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001767/0.3527, allocations: 4.031 kB / 1.07 GB, free: 7.711 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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 Backend phase and start with SimCode phase: time 0.0001178/0.3528, allocations: 95.25 kB / 1.071 GB, free: 7.605 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001436/0.353, allocations: 15.98 kB / 1.071 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.353, allocations: 0 / 1.071 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.353e-05/0.353, allocations: 7.984 kB / 1.071 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001329/0.3532, allocations: 4.281 kB / 1.071 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002278/0.3534, allocations: 96.91 kB / 1.071 GB, free: 7.457 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002071/0.3536, allocations: 0.669 MB / 1.071 GB, free: 6.762 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.567e-05/0.3537, allocations: 0 / 1.071 GB, free: 6.762 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.421e-05/0.3537, allocations: 11.44 kB / 1.071 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.3537, allocations: 4 kB / 1.071 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of Templates: time 0.001889/0.3556, allocations: 228.5 kB / 1.072 GB, free: 6.523 MB / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.RegStep.makefile (rm -f Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & ./Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.RegStep -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1)