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.001369/0.001369, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001546/0.001547, allocations: 195 kB / 16.14 MB, free: 6.648 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.451/1.451, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.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.602/2.602, allocations: 390.2 MB / 0.6642 GB, free: 0.6445 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 67.91 kB / 0.8119 GB, free: 14.9 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.904/0.9054, allocations: 140.4 MB / 0.9489 GB, free: 9.191 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.002168/0.9076, allocations: 0.6537 MB / 0.9496 GB, free: 8.688 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003088/0.9079, allocations: 53.53 kB / 0.9496 GB, free: 8.648 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.495e-05/0.908, allocations: 0 / 0.9496 GB, free: 8.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.948e-05/0.908, allocations: 0 / 0.9496 GB, free: 8.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.951e-06/0.908, allocations: 0 / 0.9496 GB, free: 8.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002261/0.9082, allocations: 12.11 kB / 0.9496 GB, free: 8.641 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.565e-05/0.9083, allocations: 1.375 kB / 0.9496 GB, free: 8.641 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.592e-05/0.9084, allocations: 5.375 kB / 0.9496 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.597e-05/0.9084, allocations: 0 / 0.9496 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.978e-05/0.9084, allocations: 5.312 kB / 0.9496 GB, free: 8.633 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.888e-05/0.9084, allocations: 0 / 0.9496 GB, free: 8.633 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001099/0.9086, allocations: 22.98 kB / 0.9497 GB, free: 8.621 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.205e-05/0.9086, allocations: 3.984 kB / 0.9497 GB, free: 8.617 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.946e-05/0.9086, allocations: 0 / 0.9497 GB, free: 8.617 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.333e-05/0.9087, allocations: 14.84 kB / 0.9497 GB, free: 8.609 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.84e-06/0.9087, allocations: 0 / 0.9497 GB, free: 8.609 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.383e-06/0.9087, allocations: 0 / 0.9497 GB, free: 8.609 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.298e-06/0.9087, allocations: 1.375 kB / 0.9497 GB, free: 8.609 MB / 0.7169 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.0002576/0.909, allocations: 318.3 kB / 0.95 GB, free: 8.25 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.909, allocations: 9.625 kB / 0.95 GB, free: 8.25 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002747/0.9093, allocations: 18.53 kB / 0.95 GB, free: 8.242 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.889e-05/0.9094, allocations: 164.4 kB / 0.9502 GB, free: 8.043 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.2e-05/0.9094, allocations: 4.312 kB / 0.9502 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.037e-05/0.9094, allocations: 1.75 kB / 0.9502 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001408/0.9096, allocations: 42.31 kB / 0.9502 GB, free: 7.996 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.9096, allocations: 192 / 0.9502 GB, free: 7.996 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/0.9096, allocations: 3.938 kB / 0.9502 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.9096, allocations: 0 / 0.9502 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.381e-05/0.9097, allocations: 14.84 kB / 0.9502 GB, free: 7.984 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001177/0.9098, allocations: 145.7 kB / 0.9504 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.013e-05/0.9099, allocations: 26.62 kB / 0.9504 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.683e-05/0.91, allocations: 12.98 kB / 0.9504 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.827e-05/0.91, allocations: 3.984 kB / 0.9504 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.208e-05/0.91, allocations: 31.94 kB / 0.9504 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.282e-06/0.91, allocations: 3.938 kB / 0.9504 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0002422/0.9103, allocations: 48.78 kB / 0.9505 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.509e-05/0.9103, allocations: 51.41 kB / 0.9505 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.877e-05/0.9103, allocations: 95.2 kB / 0.9506 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.596e-06/0.9103, allocations: 29.69 kB / 0.9507 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.2e-05/0.9104, allocations: 80.14 kB / 0.9507 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.408e-05/0.9104, allocations: 4.969 kB / 0.9507 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.81e-05/0.9104, allocations: 11.97 kB / 0.9507 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.086e-05/0.9105, allocations: 310.8 kB / 0.951 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.668e-05/0.9105, allocations: 7.312 kB / 0.9511 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.98e-05/0.9106, allocations: 15.3 kB / 0.9511 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.563e-05/0.9107, allocations: 15.66 kB / 0.9511 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.9107, allocations: 4 kB / 0.9511 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000117/0.9108, allocations: 39.34 kB / 0.9511 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.9108, allocations: 4.406 kB / 0.9511 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.9109, allocations: 1.281 kB / 0.9511 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/0.9109, allocations: 3.938 kB / 0.9511 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.543e-05/0.911, allocations: 10.58 kB / 0.9511 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.911, allocations: 0.875 kB / 0.9511 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.452e-05/0.911, allocations: 1.125 kB / 0.9511 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-06/0.911, allocations: 5.094 kB / 0.9511 GB, free: 6.965 MB / 0.7169 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 6.138e-05/0.9111, allocations: 107.1 kB / 0.9513 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.556e-06/0.9111, allocations: 0 / 0.9513 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.281e-05/0.9111, allocations: 16.2 kB / 0.9513 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.9111, allocations: 0 / 0.9513 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.9112, allocations: 5.125 kB / 0.9513 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.155e-06/0.9112, allocations: 0 / 0.9513 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.268e-05/0.9112, allocations: 143 kB / 0.9514 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.9112, allocations: 0 / 0.9514 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.403e-05/0.9113, allocations: 7.266 kB / 0.9514 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.9113, allocations: 0 / 0.9514 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.197e-06/0.9113, allocations: 5.031 kB / 0.9514 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.9113, allocations: 3.938 kB / 0.9514 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.9113, allocations: 1.219 kB / 0.9514 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000131/0.9115, allocations: 66.62 kB / 0.9515 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.189e-05/0.9115, allocations: 82.25 kB / 0.9516 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.357e-05/0.9115, allocations: 7.875 kB / 0.9516 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.037e-05/0.9115, allocations: 1.156 kB / 0.9516 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.43e-05/0.9116, allocations: 5.062 kB / 0.9516 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.907e-06/0.9116, allocations: 1.062 kB / 0.9516 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.776e-05/0.9116, allocations: 75.31 kB / 0.9517 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9116, allocations: 4 kB / 0.9517 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001785/0.9118, allocations: 1.094 kB / 0.9517 GB, free: 6.371 MB / 0.7169 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.0001323/0.9119, allocations: 97.22 kB / 0.9518 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001405/0.9121, allocations: 11.45 kB / 0.9518 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.9121, allocations: 1.312 kB / 0.9518 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.225e-05/0.9121, allocations: 7.828 kB / 0.9518 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001425/0.9123, allocations: 9.031 kB / 0.9518 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000253/0.9125, allocations: 79.38 kB / 0.9519 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001339/0.9127, allocations: 0.6699 MB / 0.9525 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.104e-05/0.9127, allocations: 2.438 kB / 0.9525 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.385e-05/0.9128, allocations: 19.36 kB / 0.9525 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.9128, allocations: 0 / 0.9525 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of Templates: time 0.002347/0.9151, allocations: 225.7 kB / 0.9527 GB, free: 5.34 MB / 0.7169 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/jenkins/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