Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep") translateModel(Buildings.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_9_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.001495/0.001495, allocations: 103.4 kB / 16.27 MB, free: 5.965 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.001641/0.001641, allocations: 191 kB / 17.2 MB, free: 5.59 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.378/1.378, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.249/2.249, allocations: 390.3 MB / 0.6653 GB, free: 0.6875 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 66.75 kB / 0.8132 GB, free: 33 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2623/0.2636, allocations: 140.4 MB / 0.9503 GB, free: 8.879 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.002091/0.2658, allocations: 0.5708 MB / 0.9508 GB, free: 8.297 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0002761/0.2661, allocations: 47.86 kB / 0.9509 GB, free: 8.25 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.708e-05/0.2661, allocations: 4 kB / 0.9509 GB, free: 8.246 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.407e-05/0.2661, allocations: 0 / 0.9509 GB, free: 8.246 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.172e-06/0.2662, allocations: 3.938 kB / 0.9509 GB, free: 8.242 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002427/0.2664, allocations: 19.91 kB / 0.9509 GB, free: 8.223 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 4.318e-05/0.2665, allocations: 7.938 kB / 0.9509 GB, free: 8.215 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 5.022e-05/0.2665, allocations: 3.984 kB / 0.9509 GB, free: 8.211 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 1.366e-05/0.2666, allocations: 0 / 0.9509 GB, free: 8.211 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 2.229e-05/0.2666, allocations: 0 / 0.9509 GB, free: 8.211 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.11e-05/0.2666, allocations: 0 / 0.9509 GB, free: 8.211 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001121/0.2667, allocations: 19.98 kB / 0.9509 GB, free: 8.191 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.004e-05/0.2667, allocations: 4 kB / 0.951 GB, free: 8.188 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 1.736e-05/0.2668, allocations: 0 / 0.951 GB, free: 8.188 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 9.046e-05/0.2669, allocations: 19.97 kB / 0.951 GB, free: 8.168 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2669, allocations: 0 / 0.951 GB, free: 8.168 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.843e-06/0.2669, allocations: 0 / 0.951 GB, free: 8.168 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.46e-06/0.2669, allocations: 0 / 0.951 GB, free: 8.168 MB / 0.7325 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.0003055/0.2672, allocations: 315.6 kB / 0.9513 GB, free: 7.809 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.2672, allocations: 8.031 kB / 0.9513 GB, free: 7.801 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002825/0.2675, allocations: 24.91 kB / 0.9513 GB, free: 7.777 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001052/0.2676, allocations: 168.3 kB / 0.9515 GB, free: 7.574 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.347e-05/0.2677, allocations: 4.359 kB / 0.9515 GB, free: 7.57 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.089e-05/0.2677, allocations: 384 / 0.9515 GB, free: 7.57 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001443/0.2678, allocations: 38.19 kB / 0.9515 GB, free: 7.527 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.2678, allocations: 192 / 0.9515 GB, free: 7.527 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.185e-05/0.2679, allocations: 3.938 kB / 0.9515 GB, free: 7.523 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.2679, allocations: 0 / 0.9515 GB, free: 7.523 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.084e-05/0.268, allocations: 11.98 kB / 0.9515 GB, free: 7.512 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001508/0.2681, allocations: 149.7 kB / 0.9517 GB, free: 7.316 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 8.113e-05/0.2682, allocations: 26.53 kB / 0.9517 GB, free: 7.281 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.296e-05/0.2683, allocations: 8.922 kB / 0.9517 GB, free: 7.27 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.154e-05/0.2683, allocations: 0 / 0.9517 GB, free: 7.27 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.425e-05/0.2683, allocations: 30.56 kB / 0.9517 GB, free: 7.23 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.2683, allocations: 4 kB / 0.9517 GB, free: 7.227 MB / 0.7325 GB Notification: Performance of matching and sorting (n=1): time 0.0002409/0.2686, allocations: 53.52 kB / 0.9518 GB, free: 7.168 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.75e-05/0.2686, allocations: 51.41 kB / 0.9518 GB, free: 7.105 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.149e-05/0.2687, allocations: 97.8 kB / 0.9519 GB, free: 7 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.258e-05/0.2687, allocations: 25.7 kB / 0.9519 GB, free: 6.969 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.33e-05/0.2687, allocations: 80.14 kB / 0.952 GB, free: 6.887 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.889e-05/0.2688, allocations: 0 / 0.952 GB, free: 6.887 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.618e-05/0.2688, allocations: 21.83 kB / 0.952 GB, free: 6.859 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.2689, allocations: 310.8 kB / 0.9523 GB, free: 6.547 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.89e-05/0.269, allocations: 4 kB / 0.9523 GB, free: 6.543 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.062e-05/0.269, allocations: 7.984 kB / 0.9524 GB, free: 6.535 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.408e-05/0.2691, allocations: 16.84 kB / 0.9524 GB, free: 6.516 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.2692, allocations: 0 / 0.9524 GB, free: 6.516 MB / 0.7325 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001333/0.2693, allocations: 49.75 kB / 0.9524 GB, free: 6.461 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.2693, allocations: 7.938 kB / 0.9524 GB, free: 6.453 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.2693, allocations: 0 / 0.9524 GB, free: 6.453 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.2693, allocations: 3.938 kB / 0.9524 GB, free: 6.449 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.939e-05/0.2694, allocations: 7.938 kB / 0.9524 GB, free: 6.441 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.2694, allocations: 3.984 kB / 0.9524 GB, free: 6.438 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.289e-05/0.2695, allocations: 0 / 0.9524 GB, free: 6.438 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.674e-06/0.2695, allocations: 4 kB / 0.9524 GB, free: 6.434 MB / 0.7325 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.624e-05/0.2696, allocations: 109.9 kB / 0.9525 GB, free: 6.316 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.737e-06/0.2696, allocations: 0 / 0.9525 GB, free: 6.316 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.879e-05/0.2696, allocations: 7.062 kB / 0.9526 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.2696, allocations: 0 / 0.9526 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.2696, allocations: 0 / 0.9526 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.2696, allocations: 7.938 kB / 0.9526 GB, free: 6.301 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001057/0.2698, allocations: 149.7 kB / 0.9527 GB, free: 6.105 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.2698, allocations: 0 / 0.9527 GB, free: 6.105 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.546e-05/0.2698, allocations: 4 kB / 0.9527 GB, free: 6.102 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.2698, allocations: 4 kB / 0.9527 GB, free: 6.098 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.2698, allocations: 7.922 kB / 0.9527 GB, free: 6.09 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.2699, allocations: 0 / 0.9527 GB, free: 6.09 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2699, allocations: 0 / 0.9527 GB, free: 6.09 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001466/0.27, allocations: 65.06 kB / 0.9528 GB, free: 6.008 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.295e-05/0.2701, allocations: 77.11 kB / 0.9529 GB, free: 5.914 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.618e-05/0.2701, allocations: 7.922 kB / 0.9529 GB, free: 5.906 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.454e-05/0.2701, allocations: 12.02 kB / 0.9529 GB, free: 5.895 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.41e-05/0.2701, allocations: 4 kB / 0.9529 GB, free: 5.891 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-06/0.2701, allocations: 0 / 0.9529 GB, free: 5.891 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 2.628e-05/0.2702, allocations: 75.28 kB / 0.9529 GB, free: 5.816 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2702, allocations: 0 / 0.9529 GB, free: 5.816 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0001772/0.2704, allocations: 0 / 0.9529 GB, free: 5.816 MB / 0.7325 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.000135/0.2705, allocations: 99.25 kB / 0.953 GB, free: 5.711 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001466/0.2707, allocations: 15.98 kB / 0.9531 GB, free: 5.695 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2707, allocations: 0 / 0.9531 GB, free: 5.695 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 4.514e-05/0.2707, allocations: 7.984 kB / 0.9531 GB, free: 5.688 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00013/0.2709, allocations: 2.938 kB / 0.9531 GB, free: 5.688 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002995/0.2712, allocations: 120.7 kB / 0.9532 GB, free: 5.539 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002704/0.2714, allocations: 0.6727 MB / 0.9538 GB, free: 4.84 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.968e-05/0.2715, allocations: 15.56 kB / 0.9539 GB, free: 4.824 MB / 0.7325 GB Notification: Performance of SimCode: time 3.81e-07/0.2715, allocations: 0 / 0.9539 GB, free: 4.824 MB / 0.7325 GB Notification: Performance of Templates: time 0.001597/0.2731, allocations: 394.8 kB / 0.9542 GB, free: 4.441 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches