Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep") translateModel(Buildings.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.774/1.774, allocations: 306.1 MB / 321.4 MB, free: 10.77 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 179.5 kB / 393.1 MB, free: 4.086 MB / 314.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 225.7 MB / 0.6743 GB, free: 12.58 MB / 0.4948 GB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007105/0.0007106, allocations: 99.92 kB / 0.7935 GB, free: 40.14 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.000342/0.000342, allocations: 12.84 kB / 0.9224 GB, free: 8.633 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5561/0.5565, allocations: 121.3 MB / 1.041 GB, free: 58.78 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.0006187/0.5572, allocations: 324.7 kB / 1.041 GB, free: 58.62 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.000243/0.5574, allocations: 135.7 kB / 1.041 GB, free: 58.49 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.506e-06/0.5574, allocations: 0 / 1.041 GB, free: 58.49 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 1.034e-05/0.5575, allocations: 0 / 1.041 GB, free: 58.49 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 4.348e-06/0.5575, allocations: 0 / 1.041 GB, free: 58.49 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001759/0.5576, allocations: 7.281 kB / 1.041 GB, free: 58.49 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 3.418e-05/0.5577, allocations: 2.906 kB / 1.041 GB, free: 58.49 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 3.519e-05/0.5577, allocations: 1.422 kB / 1.041 GB, free: 58.49 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 1.384e-05/0.5577, allocations: 9.859 kB / 1.041 GB, free: 58.48 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 3.009e-05/0.5578, allocations: 0.875 kB / 1.041 GB, free: 58.48 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 6.562e-06/0.5578, allocations: 3.188 kB / 1.041 GB, free: 58.48 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 8.301e-05/0.5579, allocations: 20.52 kB / 1.041 GB, free: 58.48 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 8.325e-06/0.5579, allocations: 0 / 1.041 GB, free: 58.48 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 2.208e-05/0.5579, allocations: 30.8 kB / 1.041 GB, free: 58.45 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 6.898e-05/0.558, allocations: 16.36 kB / 1.041 GB, free: 58.44 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.558, allocations: 5.969 kB / 1.041 GB, free: 58.44 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.262e-06/0.558, allocations: 1.062 kB / 1.041 GB, free: 58.44 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.026e-06/0.558, allocations: 0 / 1.041 GB, free: 58.44 MB / 0.698 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.000175/0.5582, allocations: 310.8 kB / 1.042 GB, free: 58.09 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.5582, allocations: 9.594 kB / 1.042 GB, free: 58.09 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000238/0.5585, allocations: 19.84 kB / 1.042 GB, free: 58.09 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.014e-05/0.5586, allocations: 161 kB / 1.042 GB, free: 57.89 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.048e-05/0.5586, allocations: 1.312 kB / 1.042 GB, free: 57.89 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.404e-06/0.5586, allocations: 3.812 kB / 1.042 GB, free: 57.89 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001147/0.5587, allocations: 36.52 kB / 1.042 GB, free: 57.86 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-06/0.5587, allocations: 192 / 1.042 GB, free: 57.86 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.876e-06/0.5587, allocations: 4.844 kB / 1.042 GB, free: 57.86 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.5587, allocations: 1.406 kB / 1.042 GB, free: 57.86 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.04e-05/0.5588, allocations: 12.02 kB / 1.042 GB, free: 57.86 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.648e-05/0.5589, allocations: 145.7 kB / 1.042 GB, free: 57.66 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 6.932e-05/0.559, allocations: 28.94 kB / 1.042 GB, free: 57.64 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.551e-05/0.5591, allocations: 8.594 kB / 1.042 GB, free: 57.63 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.492e-05/0.5591, allocations: 2.328 kB / 1.042 GB, free: 57.63 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.274e-05/0.5591, allocations: 34.55 kB / 1.042 GB, free: 57.59 MB / 0.698 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.5591, allocations: 0 / 1.042 GB, free: 57.59 MB / 0.698 GB Notification: Performance of matching and sorting (n=1): time 0.0002019/0.5593, allocations: 55.03 kB / 1.042 GB, free: 57.55 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.767e-05/0.5593, allocations: 55.34 kB / 1.042 GB, free: 57.48 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.781e-05/0.5594, allocations: 90.47 kB / 1.042 GB, free: 57.39 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 6.562e-06/0.5594, allocations: 25.7 kB / 1.042 GB, free: 57.36 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 1.042e-05/0.5594, allocations: 84.12 kB / 1.042 GB, free: 57.27 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.518e-05/0.5594, allocations: 6.859 kB / 1.042 GB, free: 57.27 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.557e-06/0.5594, allocations: 3.938 kB / 1.042 GB, free: 57.26 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 3.859e-05/0.5595, allocations: 320.2 kB / 1.043 GB, free: 56.95 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.999e-05/0.5595, allocations: 0 / 1.043 GB, free: 56.95 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.498e-05/0.5596, allocations: 9.672 kB / 1.043 GB, free: 56.95 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.768e-05/0.5596, allocations: 20.23 kB / 1.043 GB, free: 56.93 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.5597, allocations: 0 / 1.043 GB, free: 56.93 MB / 0.698 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001017/0.5598, allocations: 39.25 kB / 1.043 GB, free: 56.9 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.5598, allocations: 12.5 kB / 1.043 GB, free: 56.89 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.5598, allocations: 0.9062 kB / 1.043 GB, free: 56.89 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.5598, allocations: 5.594 kB / 1.043 GB, free: 56.89 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.32e-05/0.5599, allocations: 7.625 kB / 1.043 GB, free: 56.89 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.529e-06/0.5599, allocations: 0 / 1.043 GB, free: 56.89 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.194e-05/0.5599, allocations: 2.5 kB / 1.043 GB, free: 56.89 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.5599, allocations: 0 / 1.043 GB, free: 56.89 MB / 0.698 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 3.968e-05/0.56, allocations: 109.5 kB / 1.043 GB, free: 56.78 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.793e-06/0.56, allocations: 0 / 1.043 GB, free: 56.78 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.342e-05/0.56, allocations: 15.61 kB / 1.043 GB, free: 56.77 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.56, allocations: 0 / 1.043 GB, free: 56.77 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.56, allocations: 0 / 1.043 GB, free: 56.77 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.56, allocations: 1.5 kB / 1.043 GB, free: 56.77 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.299e-05/0.5601, allocations: 146.2 kB / 1.043 GB, free: 56.58 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.5601, allocations: 5.75 kB / 1.043 GB, free: 56.58 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.1e-05/0.5601, allocations: 6.594 kB / 1.043 GB, free: 56.58 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.5602, allocations: 1.438 kB / 1.043 GB, free: 56.58 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.951e-06/0.5602, allocations: 3.938 kB / 1.043 GB, free: 56.57 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.5602, allocations: 2.594 kB / 1.043 GB, free: 56.57 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.5602, allocations: 1.156 kB / 1.043 GB, free: 56.57 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001151/0.5603, allocations: 66.83 kB / 1.043 GB, free: 56.5 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 1.348e-05/0.5603, allocations: 80.33 kB / 1.043 GB, free: 56.41 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.136e-05/0.5603, allocations: 6.562 kB / 1.043 GB, free: 56.41 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.082e-05/0.5604, allocations: 3.062 kB / 1.043 GB, free: 56.41 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.22e-05/0.5604, allocations: 0 / 1.043 GB, free: 56.41 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.787e-06/0.5604, allocations: 4.875 kB / 1.043 GB, free: 56.41 MB / 0.698 GB Notification: Performance of sorting global known variables: time 1.08e-05/0.5604, allocations: 79.53 kB / 1.043 GB, free: 56.33 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5604, allocations: 0 / 1.043 GB, free: 56.33 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0001703/0.5606, allocations: 1.344 kB / 1.043 GB, free: 56.33 MB / 0.698 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 8.959e-05/0.5607, allocations: 104.5 kB / 1.043 GB, free: 56.24 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0001145/0.5608, allocations: 14.11 kB / 1.043 GB, free: 56.24 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.532e-06/0.5608, allocations: 0 / 1.043 GB, free: 56.24 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 4.042e-05/0.5609, allocations: 12.02 kB / 1.043 GB, free: 56.23 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001134/0.561, allocations: 2.109 kB / 1.044 GB, free: 56.23 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001802/0.5612, allocations: 92.78 kB / 1.044 GB, free: 56.13 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.099e-05/0.5613, allocations: 0.6731 MB / 1.044 GB, free: 55.44 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 3.691e-05/0.5613, allocations: 7.766 kB / 1.044 GB, free: 55.43 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.066e-05/0.5613, allocations: 8.75 kB / 1.044 GB, free: 55.43 MB / 0.698 GB Notification: Performance of SimCode: time 5.41e-07/0.5613, allocations: 0 / 1.044 GB, free: 55.43 MB / 0.698 GB Notification: Performance of Templates: time 0.001601/0.5629, allocations: 214.7 kB / 1.044 GB, free: 55.38 MB / 0.698 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1)