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.005393/0.005393, allocations: 101.1 kB / 15.73 MB, free: 5.492 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.00106/0.00106, allocations: 188.4 kB / 16.67 MB, free: 5.422 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.373/1.373, allocations: 222.9 MB / 240.4 MB, free: 15.09 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.241/2.241, allocations: 390.2 MB / 0.6648 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 67.89 kB / 0.9509 GB, free: 7.598 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.115/1.116, allocations: 140.4 MB / 1.088 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001844/1.118, allocations: 0.5838 MB / 1.089 GB, free: 5.148 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0002961/1.118, allocations: 53.78 kB / 1.089 GB, free: 5.121 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.841e-05/1.118, allocations: 0 / 1.089 GB, free: 5.121 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.54e-05/1.118, allocations: 0 / 1.089 GB, free: 5.121 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.716e-06/1.118, allocations: 0 / 1.089 GB, free: 5.121 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002742/1.119, allocations: 12.38 kB / 1.089 GB, free: 5.117 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.567e-05/1.119, allocations: 1.734 kB / 1.089 GB, free: 5.117 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 6.215e-05/1.119, allocations: 2.875 kB / 1.089 GB, free: 5.117 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 1.784e-05/1.119, allocations: 1.094 kB / 1.089 GB, free: 5.117 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 2.565e-05/1.119, allocations: 5.312 kB / 1.089 GB, free: 5.113 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.023e-05/1.119, allocations: 0 / 1.089 GB, free: 5.113 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001228/1.119, allocations: 27.78 kB / 1.089 GB, free: 5.102 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.356e-05/1.119, allocations: 1.125 kB / 1.089 GB, free: 5.102 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 1.961e-05/1.119, allocations: 7.875 kB / 1.089 GB, free: 5.094 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 9.911e-05/1.119, allocations: 11.58 kB / 1.089 GB, free: 5.094 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/1.119, allocations: 0 / 1.089 GB, free: 5.094 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.923e-06/1.119, allocations: 1.156 kB / 1.089 GB, free: 5.094 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.422e-06/1.119, allocations: 0 / 1.089 GB, free: 5.094 MB / 0.8575 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.0002694/1.119, allocations: 319.3 kB / 1.089 GB, free: 4.738 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/1.119, allocations: 13.03 kB / 1.089 GB, free: 4.734 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000268/1.12, allocations: 18.52 kB / 1.089 GB, free: 4.734 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.088e-05/1.12, allocations: 165.5 kB / 1.089 GB, free: 4.535 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.194e-05/1.12, allocations: 1.625 kB / 1.089 GB, free: 4.535 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.327e-05/1.12, allocations: 1.031 kB / 1.089 GB, free: 4.535 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001246/1.12, allocations: 34.64 kB / 1.089 GB, free: 4.504 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/1.12, allocations: 1.344 kB / 1.089 GB, free: 4.504 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/1.12, allocations: 7.938 kB / 1.089 GB, free: 4.496 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.698e-06/1.12, allocations: 0 / 1.089 GB, free: 4.496 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.045e-05/1.12, allocations: 9.469 kB / 1.089 GB, free: 4.496 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001052/1.12, allocations: 149.5 kB / 1.089 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 6.825e-05/1.12, allocations: 24.22 kB / 1.089 GB, free: 4.277 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.915e-05/1.12, allocations: 10.38 kB / 1.089 GB, free: 4.27 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.29e-05/1.12, allocations: 4 kB / 1.089 GB, free: 4.266 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.575e-05/1.12, allocations: 32.03 kB / 1.089 GB, free: 4.227 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/1.12, allocations: 1.188 kB / 1.089 GB, free: 4.227 MB / 0.8575 GB Notification: Performance of matching and sorting (n=1): time 0.0002237/1.121, allocations: 55.44 kB / 1.089 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.404e-05/1.121, allocations: 52.53 kB / 1.09 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.913e-05/1.121, allocations: 90.47 kB / 1.09 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.123e-06/1.121, allocations: 33.77 kB / 1.09 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.081e-05/1.121, allocations: 80.14 kB / 1.09 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.993e-05/1.121, allocations: 0.9688 kB / 1.09 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.697e-05/1.121, allocations: 12.72 kB / 1.09 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.487e-05/1.121, allocations: 316.5 kB / 1.09 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.449e-05/1.121, allocations: 8.891 kB / 1.09 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.564e-05/1.121, allocations: 5.25 kB / 1.09 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.176e-05/1.121, allocations: 18.48 kB / 1.09 GB, free: 3.555 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/1.121, allocations: 0.9688 kB / 1.09 GB, free: 3.555 MB / 0.8575 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001071/1.121, allocations: 40.19 kB / 1.09 GB, free: 3.523 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/1.121, allocations: 5.219 kB / 1.09 GB, free: 3.523 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/1.121, allocations: 0 / 1.09 GB, free: 3.523 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/1.121, allocations: 5.781 kB / 1.09 GB, free: 3.52 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.991e-05/1.121, allocations: 7.312 kB / 1.09 GB, free: 3.516 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/1.121, allocations: 5.766 kB / 1.09 GB, free: 3.512 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.155e-05/1.121, allocations: 2.094 kB / 1.09 GB, free: 3.512 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.817e-06/1.121, allocations: 1.859 kB / 1.09 GB, free: 3.512 MB / 0.8575 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 4.536e-05/1.121, allocations: 115.4 kB / 1.09 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.383e-06/1.121, allocations: 0.7031 kB / 1.09 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.398e-05/1.121, allocations: 7.844 kB / 1.09 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/1.121, allocations: 0.5156 kB / 1.09 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/1.121, allocations: 1.094 kB / 1.09 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/1.121, allocations: 4.75 kB / 1.09 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.376e-05/1.121, allocations: 144.2 kB / 1.09 GB, free: 3.191 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/1.121, allocations: 5.594 kB / 1.09 GB, free: 3.188 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.99e-05/1.121, allocations: 3.625 kB / 1.09 GB, free: 3.188 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/1.121, allocations: 1.125 kB / 1.09 GB, free: 3.188 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/1.122, allocations: 4.547 kB / 1.09 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/1.122, allocations: 1.812 kB / 1.09 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/1.122, allocations: 0 / 1.09 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001259/1.122, allocations: 73.06 kB / 1.09 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.07e-05/1.122, allocations: 77.72 kB / 1.091 GB, free: 3.016 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.271e-05/1.122, allocations: 5.719 kB / 1.091 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.243e-05/1.122, allocations: 2.125 kB / 1.091 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.76e-05/1.122, allocations: 1.859 kB / 1.091 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-06/1.122, allocations: 0 / 1.091 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 1.446e-05/1.122, allocations: 76.41 kB / 1.091 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of sort global known variables: time 8e-08/1.122, allocations: 0 / 1.091 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001731/1.122, allocations: 5.094 kB / 1.091 GB, free: 2.934 MB / 0.8575 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.000112/1.122, allocations: 97.77 kB / 1.091 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001439/1.122, allocations: 13.39 kB / 1.091 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/1.122, allocations: 3.938 kB / 1.091 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 4.221e-05/1.122, allocations: 9.578 kB / 1.091 GB, free: 2.836 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001332/1.122, allocations: 1.547 kB / 1.091 GB, free: 2.836 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002535/1.123, allocations: 98.22 kB / 1.091 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001107/1.123, allocations: 0.6712 MB / 1.091 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.82e-05/1.123, allocations: 1.906 kB / 1.091 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.293e-05/1.123, allocations: 8.625 kB / 1.092 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of SimCode: time 2.11e-07/1.123, allocations: 4 kB / 1.092 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of Templates: time 0.002073/1.125, allocations: 230.2 kB / 1.092 GB, free: 1.969 MB / 0.8575 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