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.001539/0.001539, allocations: 80.94 kB / 19.94 MB, free: 4.547 MB / 18.57 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.001882/0.001882, allocations: 177 kB / 23.36 MB, free: 1.133 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.987/0.987, allocations: 177.1 MB / 203.8 MB, free: 5.5 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.536/2.536, allocations: 438.8 MB / 0.6826 GB, free: 13.65 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.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 1.452e-06/1.452e-06, allocations: 0 / 0.8387 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.866e-05/2.011e-05, allocations: 2.312 kB / 0.8387 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001744/0.001765, allocations: 0.6541 MB / 0.8393 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.0002733/0.002038, allocations: 47.81 kB / 0.8394 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.685e-05/0.002055, allocations: 0 / 0.8394 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 1.676e-05/0.002071, allocations: 0 / 0.8394 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 8.576e-06/0.00208, allocations: 0 / 0.8394 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002237/0.002304, allocations: 15.92 kB / 0.8394 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 4.145e-05/0.002345, allocations: 0 / 0.8394 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 3.885e-05/0.002384, allocations: 7.984 kB / 0.8394 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 3.486e-05/0.002419, allocations: 11.92 kB / 0.8394 GB, free: 13.41 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 2.437e-05/0.002443, allocations: 0 / 0.8394 GB, free: 13.41 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.2e-05/0.002455, allocations: 0 / 0.8394 GB, free: 13.41 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001262/0.002581, allocations: 19.98 kB / 0.8394 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 9.898e-06/0.002591, allocations: 0 / 0.8394 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 1.024e-05/0.002602, allocations: 0 / 0.8394 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 8.938e-05/0.002691, allocations: 23.91 kB / 0.8394 GB, free: 13.37 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.002693, allocations: 0 / 0.8394 GB, free: 13.37 MB / 0.8073 GB Notification: Performance of FrontEnd: time 8.82e-07/0.002694, allocations: 0 / 0.8394 GB, free: 13.37 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.998e-06/0.002698, allocations: 0 / 0.8394 GB, free: 13.37 MB / 0.8073 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.0002182/0.002916, allocations: 220.8 kB / 0.8396 GB, free: 13.13 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.002955, allocations: 12.62 kB / 0.8397 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002082/0.003164, allocations: 17.2 kB / 0.8397 GB, free: 13.1 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.491e-05/0.003239, allocations: 105.8 kB / 0.8398 GB, free: 12.97 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.125e-05/0.00325, allocations: 4.375 kB / 0.8398 GB, free: 12.97 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.931e-06/0.003256, allocations: 384 / 0.8398 GB, free: 12.97 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001116/0.003367, allocations: 46.95 kB / 0.8398 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.003375, allocations: 192 / 0.8398 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.104e-06/0.003382, allocations: 384 / 0.8398 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.003388, allocations: 384 / 0.8398 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.028e-05/0.003408, allocations: 11.92 kB / 0.8398 GB, free: 12.9 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.641e-05/0.003494, allocations: 57.05 kB / 0.8399 GB, free: 12.83 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 4.697e-05/0.003541, allocations: 18.52 kB / 0.8399 GB, free: 12.8 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.417e-05/0.003556, allocations: 8.953 kB / 0.8399 GB, free: 12.79 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.163e-05/0.003567, allocations: 0 / 0.8399 GB, free: 12.79 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.571e-05/0.003593, allocations: 34.56 kB / 0.8399 GB, free: 12.75 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.003594, allocations: 0 / 0.8399 GB, free: 12.75 MB / 0.8073 GB Notification: Performance of matching and sorting (n=1): time 0.0001063/0.0037, allocations: 33.69 kB / 0.84 GB, free: 12.71 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001658/0.003866, allocations: 59.47 kB / 0.84 GB, free: 12.64 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.081e-05/0.003897, allocations: 93.86 kB / 0.8401 GB, free: 12.54 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.184e-05/0.003909, allocations: 29.64 kB / 0.8402 GB, free: 12.5 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.284e-05/0.003931, allocations: 80.14 kB / 0.8402 GB, free: 12.42 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.777e-05/0.003959, allocations: 3.953 kB / 0.8402 GB, free: 12.42 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.178e-05/0.003991, allocations: 13.72 kB / 0.8402 GB, free: 12.4 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.568e-05/0.004077, allocations: 314.8 kB / 0.8405 GB, free: 12.08 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.502e-05/0.004092, allocations: 0 / 0.8405 GB, free: 12.08 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.082e-05/0.004102, allocations: 8 kB / 0.8406 GB, free: 12.07 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.451e-05/0.004137, allocations: 12.89 kB / 0.8406 GB, free: 12.06 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.004139, allocations: 8 kB / 0.8406 GB, free: 12.05 MB / 0.8073 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.691e-05/0.004196, allocations: 29.7 kB / 0.8406 GB, free: 12.02 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.004209, allocations: 7.938 kB / 0.8406 GB, free: 12.01 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.004214, allocations: 0 / 0.8406 GB, free: 12.01 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.004228, allocations: 0 / 0.8406 GB, free: 12.01 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.357e-05/0.004291, allocations: 7.984 kB / 0.8406 GB, free: 12 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.967e-06/0.004295, allocations: 3.984 kB / 0.8406 GB, free: 12 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.89e-05/0.004314, allocations: 0 / 0.8406 GB, free: 12 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.35e-06/0.004319, allocations: 0 / 0.8406 GB, free: 12 MB / 0.8073 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.715e-05/0.004386, allocations: 121.8 kB / 0.8407 GB, free: 11.87 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.985e-06/0.004394, allocations: 0 / 0.8407 GB, free: 11.87 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.545e-05/0.00442, allocations: 3 kB / 0.8407 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.004422, allocations: 0 / 0.8407 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.004423, allocations: 0 / 0.8407 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.004426, allocations: 0 / 0.8407 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.015e-05/0.004486, allocations: 73.77 kB / 0.8408 GB, free: 11.77 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.004488, allocations: 0 / 0.8408 GB, free: 11.77 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.137e-05/0.004519, allocations: 4 kB / 0.8408 GB, free: 11.77 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.004521, allocations: 0 / 0.8408 GB, free: 11.77 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.348e-06/0.004526, allocations: 4 kB / 0.8408 GB, free: 11.76 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.004527, allocations: 0 / 0.8408 GB, free: 11.76 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.004529, allocations: 0 / 0.8408 GB, free: 11.76 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.978e-05/0.004608, allocations: 65 kB / 0.8409 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 3.977e-06/0.004612, allocations: 0 / 0.8409 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.125e-06/0.00462, allocations: 0 / 0.8409 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.854e-05/0.004639, allocations: 0 / 0.8409 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.488e-06/0.004648, allocations: 4 kB / 0.8409 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.328e-06/0.004653, allocations: 3.984 kB / 0.8409 GB, free: 11.67 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 6.722e-06/0.004659, allocations: 8.797 kB / 0.8409 GB, free: 11.66 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1.1e-07/0.00466, allocations: 4.031 kB / 0.8409 GB, free: 11.66 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001549/0.004814, allocations: 0 / 0.8409 GB, free: 11.66 MB / 0.8073 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.578e-05/0.00491, allocations: 76.42 kB / 0.841 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 6.047e-05/0.004971, allocations: 12.86 kB / 0.841 GB, free: 11.56 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.004973, allocations: 0 / 0.841 GB, free: 11.56 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 1.23e-05/0.004985, allocations: 8.797 kB / 0.841 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.395e-05/0.005049, allocations: 7.938 kB / 0.841 GB, free: 11.54 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001823/0.005232, allocations: 86.56 kB / 0.8411 GB, free: 11.43 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.123e-05/0.005263, allocations: 51.36 kB / 0.8411 GB, free: 11.36 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 2.955e-05/0.005293, allocations: 3.984 kB / 0.8411 GB, free: 11.35 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.157e-05/0.005334, allocations: 51.38 kB / 0.8412 GB, free: 11.3 MB / 0.8073 GB Notification: Performance of SimCode: time 8.41e-07/0.005335, allocations: 0 / 0.8412 GB, free: 11.3 MB / 0.8073 GB Notification: Performance of Templates: time 0.002031/0.007366, allocations: 281.3 kB / 0.8415 GB, free: 11.03 MB / 0.8073 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 -s gbode -gbm=radauIIA3 -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.478214829228818]