Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000992/0.000992, allocations: 88.23 kB / 19.64 MB, free: 308 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009159/0.0009159, allocations: 168.9 kB / 23.02 MB, free: 1.574 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8883/0.8883, allocations: 177.1 MB / 203.4 MB, free: 5.66 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.028/2.028, allocations: 429.5 MB / 0.6732 GB, free: 4.02 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep") translateModel(Buildings.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.244e-06/2.244e-06, allocations: 0 / 0.8782 GB, free: 6.246 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.697e-05/2.922e-05, allocations: 6.438 kB / 0.8782 GB, free: 6.242 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001578/0.001607, allocations: 0.6108 MB / 0.8788 GB, free: 5.648 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0003228/0.00193, allocations: 45.23 kB / 0.8789 GB, free: 5.605 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.091e-05/0.001951, allocations: 0 / 0.8789 GB, free: 5.605 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.582e-05/0.001977, allocations: 5.312 kB / 0.8789 GB, free: 5.602 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 9.308e-06/0.001986, allocations: 0 / 0.8789 GB, free: 5.602 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.00032/0.002306, allocations: 12.64 kB / 0.8789 GB, free: 5.59 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 6.283e-05/0.002369, allocations: 9.188 kB / 0.8789 GB, free: 5.582 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 5.114e-05/0.00242, allocations: 4.656 kB / 0.8789 GB, free: 5.578 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 3.197e-05/0.002452, allocations: 0 / 0.8789 GB, free: 5.578 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 2.844e-05/0.002481, allocations: 0.9688 kB / 0.8789 GB, free: 5.578 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.173e-05/0.002502, allocations: 0 / 0.8789 GB, free: 5.578 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001346/0.002637, allocations: 20.75 kB / 0.8789 GB, free: 5.559 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 1.582e-05/0.002653, allocations: 1.531 kB / 0.8789 GB, free: 5.559 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 1.776e-05/0.00267, allocations: 0 / 0.8789 GB, free: 5.559 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001206/0.002791, allocations: 24.78 kB / 0.8789 GB, free: 5.535 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.434e-06/0.002793, allocations: 3.938 kB / 0.8789 GB, free: 5.531 MB / 0.8386 GB Notification: Performance of FrontEnd: time 5.81e-07/0.002794, allocations: 1.312 kB / 0.8789 GB, free: 5.531 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.07e-06/0.002799, allocations: 0 / 0.8789 GB, free: 5.531 MB / 0.8386 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.0003179/0.003117, allocations: 336.4 kB / 0.8793 GB, free: 5.164 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.003163, allocations: 17.02 kB / 0.8793 GB, free: 5.148 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002357/0.003399, allocations: 12.92 kB / 0.8793 GB, free: 5.137 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.723e-05/0.003476, allocations: 108.8 kB / 0.8794 GB, free: 5.008 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.183e-05/0.003488, allocations: 384 / 0.8794 GB, free: 5.008 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.406e-06/0.003496, allocations: 384 / 0.8794 GB, free: 5.008 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001418/0.003638, allocations: 46.95 kB / 0.8794 GB, free: 4.953 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.003646, allocations: 192 / 0.8794 GB, free: 4.953 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.478e-06/0.003656, allocations: 384 / 0.8794 GB, free: 4.953 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.003664, allocations: 384 / 0.8794 GB, free: 4.953 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.754e-05/0.003692, allocations: 12.58 kB / 0.8795 GB, free: 4.941 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001244/0.003816, allocations: 120.6 kB / 0.8796 GB, free: 4.789 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 5.32e-05/0.003869, allocations: 27.09 kB / 0.8796 GB, free: 4.75 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.133e-05/0.003891, allocations: 7.688 kB / 0.8796 GB, free: 4.738 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.604e-05/0.003907, allocations: 0 / 0.8796 GB, free: 4.738 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.717e-05/0.003934, allocations: 37.45 kB / 0.8796 GB, free: 4.691 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=1): time 1.292e-06/0.003935, allocations: 0.6562 kB / 0.8796 GB, free: 4.691 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1): time 0.0001574/0.004093, allocations: 37.62 kB / 0.8797 GB, free: 4.648 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.856e-05/0.004131, allocations: 51.41 kB / 0.8797 GB, free: 4.586 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.946e-05/0.004181, allocations: 146.2 kB / 0.8799 GB, free: 4.43 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.307e-05/0.004194, allocations: 29.83 kB / 0.8799 GB, free: 4.395 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.912e-05/0.004233, allocations: 126.9 kB / 0.88 GB, free: 4.266 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.397e-05/0.004267, allocations: 9.062 kB / 0.88 GB, free: 4.258 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.263e-05/0.004299, allocations: 15.38 kB / 0.88 GB, free: 4.234 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001515/0.004451, allocations: 496.1 kB / 0.8805 GB, free: 3.738 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.802e-05/0.004469, allocations: 4 kB / 0.8805 GB, free: 3.734 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.258e-05/0.004482, allocations: 3.984 kB / 0.8805 GB, free: 3.73 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.382e-05/0.004525, allocations: 11.69 kB / 0.8805 GB, free: 3.715 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.004527, allocations: 0 / 0.8805 GB, free: 3.715 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1) (initialization): time 7.45e-05/0.004602, allocations: 42.25 kB / 0.8806 GB, free: 3.668 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.004617, allocations: 4 kB / 0.8806 GB, free: 3.664 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.004622, allocations: 4 kB / 0.8806 GB, free: 3.66 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.00464, allocations: 0 / 0.8806 GB, free: 3.66 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.568e-05/0.004726, allocations: 7.969 kB / 0.8806 GB, free: 3.652 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.732e-06/0.004733, allocations: 0.875 kB / 0.8806 GB, free: 3.652 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.361e-05/0.004756, allocations: 7.938 kB / 0.8806 GB, free: 3.645 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.026e-05/0.004767, allocations: 4 kB / 0.8806 GB, free: 3.641 MB / 0.8386 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 8.652e-05/0.004853, allocations: 152.6 kB / 0.8807 GB, free: 3.48 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.596e-06/0.004862, allocations: 4.031 kB / 0.8807 GB, free: 3.477 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.141e-05/0.004893, allocations: 7 kB / 0.8808 GB, free: 3.469 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.004895, allocations: 0 / 0.8808 GB, free: 3.469 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.0049, allocations: 0 / 0.8808 GB, free: 3.469 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.004903, allocations: 3.938 kB / 0.8808 GB, free: 3.465 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.212e-05/0.004985, allocations: 120.5 kB / 0.8809 GB, free: 3.312 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.004987, allocations: 0 / 0.8809 GB, free: 3.312 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.249e-05/0.005019, allocations: 4 kB / 0.8809 GB, free: 3.309 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.005022, allocations: 0 / 0.8809 GB, free: 3.309 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.00503, allocations: 0 / 0.8809 GB, free: 3.309 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.005032, allocations: 4 kB / 0.8809 GB, free: 3.305 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.005033, allocations: 0 / 0.8809 GB, free: 3.305 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000103/0.005136, allocations: 77.06 kB / 0.881 GB, free: 3.207 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.971e-06/0.005142, allocations: 4 kB / 0.881 GB, free: 3.203 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.197e-05/0.005154, allocations: 0 / 0.881 GB, free: 3.203 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.054e-05/0.005175, allocations: 0 / 0.881 GB, free: 3.203 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.666e-05/0.005191, allocations: 0 / 0.881 GB, free: 3.203 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.65e-06/0.005197, allocations: 3.984 kB / 0.881 GB, free: 3.199 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.554e-05/0.005243, allocations: 119.2 kB / 0.8811 GB, free: 3.082 MB / 0.8386 GB Notification: Performance of sort global known variables: time 9e-08/0.005243, allocations: 4 kB / 0.8811 GB, free: 3.078 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002027/0.005445, allocations: 4.031 kB / 0.8811 GB, free: 3.074 MB / 0.8386 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 9.615e-05/0.005542, allocations: 99.19 kB / 0.8812 GB, free: 2.969 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 9.976e-05/0.005641, allocations: 11.69 kB / 0.8812 GB, free: 2.953 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.005643, allocations: 0 / 0.8812 GB, free: 2.953 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 1.825e-05/0.005662, allocations: 15.62 kB / 0.8812 GB, free: 2.934 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001469/0.005808, allocations: 2.188 kB / 0.8812 GB, free: 2.934 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002371/0.006046, allocations: 87.94 kB / 0.8813 GB, free: 2.816 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.793e-05/0.006083, allocations: 55.48 kB / 0.8813 GB, free: 2.742 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.951e-05/0.006113, allocations: 4 kB / 0.8813 GB, free: 2.738 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.772e-05/0.006141, allocations: 8.5 kB / 0.8814 GB, free: 2.73 MB / 0.8386 GB Notification: Performance of SimCode: time 5.11e-07/0.006141, allocations: 0 / 0.8814 GB, free: 2.73 MB / 0.8386 GB Notification: Performance of Templates: time 0.00228/0.008421, allocations: 273.2 kB / 0.8816 GB, free: 2.465 MB / 0.8386 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.makefile [Timeout 300] (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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.1468625399284065]