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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.324/2.324, allocations: 390.3 MB / 402.8 MB, free: 6.656 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 177 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.572/1.572, allocations: 221.3 MB / 0.7915 GB, free: 5.375 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009862/0.0009864, allocations: 99.31 kB / 0.9318 GB, free: 5.684 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.236e-05/3.238e-05, allocations: 11.98 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3321/0.3322, allocations: 143 MB / 1.219 GB, free: 13.49 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9854/1.318, allocations: 149.3 MB / 1.365 GB, free: 4.754 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/1.318, allocations: 75.98 kB / 1.365 GB, free: 4.711 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.001363/1.319, allocations: 0.5369 MB / 1.365 GB, free: 4.199 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.673e-06/1.319, allocations: 0 / 1.365 GB, free: 4.199 MB / 0.823 GB Notification: Performance of Transformations before backend: time 7.203e-06/1.319, allocations: 0 / 1.365 GB, free: 4.199 MB / 0.823 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.0002597/1.32, allocations: 310.5 kB / 1.365 GB, free: 3.852 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/1.32, allocations: 8.031 kB / 1.365 GB, free: 3.844 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001863/1.32, allocations: 17.97 kB / 1.365 GB, free: 3.828 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001054/1.32, allocations: 163 kB / 1.366 GB, free: 3.629 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/1.32, allocations: 4 kB / 1.366 GB, free: 3.625 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.253e-05/1.32, allocations: 0 / 1.366 GB, free: 3.625 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.729e-05/1.32, allocations: 37.62 kB / 1.366 GB, free: 3.582 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/1.32, allocations: 0 / 1.366 GB, free: 3.582 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.969e-06/1.32, allocations: 0 / 1.366 GB, free: 3.582 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/1.32, allocations: 0 / 1.366 GB, free: 3.582 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.574e-05/1.32, allocations: 4 kB / 1.366 GB, free: 3.578 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001597/1.32, allocations: 152.3 kB / 1.366 GB, free: 3.383 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 7.006e-05/1.32, allocations: 29.58 kB / 1.366 GB, free: 3.352 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.313e-05/1.32, allocations: 4.859 kB / 1.366 GB, free: 3.344 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.002e-05/1.321, allocations: 3.938 kB / 1.366 GB, free: 3.34 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.267e-05/1.321, allocations: 30.56 kB / 1.366 GB, free: 3.301 MB / 0.823 GB Notification: Performance of pre-optimization done (n=1): time 2.545e-06/1.321, allocations: 3.984 kB / 1.366 GB, free: 3.297 MB / 0.823 GB Notification: Performance of matching and sorting (n=1): time 0.0001402/1.321, allocations: 37.75 kB / 1.366 GB, free: 3.254 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.541e-05/1.321, allocations: 51.41 kB / 1.366 GB, free: 3.191 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.44e-05/1.321, allocations: 89.03 kB / 1.366 GB, free: 3.098 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.442e-05/1.321, allocations: 26.58 kB / 1.366 GB, free: 3.066 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 3.865e-05/1.321, allocations: 80.14 kB / 1.366 GB, free: 2.984 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 2.459e-05/1.321, allocations: 0 / 1.366 GB, free: 2.984 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.777e-06/1.321, allocations: 7.312 kB / 1.366 GB, free: 2.98 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001279/1.321, allocations: 310.8 kB / 1.366 GB, free: 2.668 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.26e-05/1.321, allocations: 4 kB / 1.366 GB, free: 2.664 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.873e-06/1.321, allocations: 0 / 1.366 GB, free: 2.664 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.356e-05/1.321, allocations: 11.95 kB / 1.366 GB, free: 2.652 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/1.321, allocations: 1.969 kB / 1.366 GB, free: 2.652 MB / 0.823 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.874e-05/1.321, allocations: 37.69 kB / 1.366 GB, free: 2.609 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/1.321, allocations: 4 kB / 1.366 GB, free: 2.605 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.958e-06/1.321, allocations: 0 / 1.366 GB, free: 2.605 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/1.321, allocations: 0 / 1.366 GB, free: 2.605 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.334e-05/1.321, allocations: 4 kB / 1.366 GB, free: 2.602 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/1.321, allocations: 3.984 kB / 1.366 GB, free: 2.598 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.257e-05/1.321, allocations: 4.625 kB / 1.367 GB, free: 2.594 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.004e-06/1.321, allocations: 0 / 1.367 GB, free: 2.594 MB / 0.823 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.895e-05/1.321, allocations: 109 kB / 1.367 GB, free: 2.48 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.386e-06/1.321, allocations: 3.375 kB / 1.367 GB, free: 2.48 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.165e-05/1.321, allocations: 3.875 kB / 1.367 GB, free: 2.48 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/1.321, allocations: 4 kB / 1.367 GB, free: 2.477 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/1.321, allocations: 0 / 1.367 GB, free: 2.477 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-06/1.321, allocations: 0 / 1.367 GB, free: 2.477 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001083/1.322, allocations: 145.7 kB / 1.367 GB, free: 2.285 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/1.322, allocations: 3.953 kB / 1.367 GB, free: 2.281 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.382e-05/1.322, allocations: 11.94 kB / 1.367 GB, free: 2.273 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/1.322, allocations: 3.938 kB / 1.367 GB, free: 2.27 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.643e-06/1.322, allocations: 3.938 kB / 1.367 GB, free: 2.266 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/1.322, allocations: 3.984 kB / 1.367 GB, free: 2.262 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/1.322, allocations: 0 / 1.367 GB, free: 2.262 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.571e-05/1.322, allocations: 57.08 kB / 1.367 GB, free: 2.191 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.046e-05/1.322, allocations: 84.97 kB / 1.367 GB, free: 2.09 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.199e-05/1.322, allocations: 3.984 kB / 1.367 GB, free: 2.086 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.326e-05/1.322, allocations: 8.031 kB / 1.367 GB, free: 2.078 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.074e-05/1.322, allocations: 0 / 1.367 GB, free: 2.078 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.785e-06/1.322, allocations: 0 / 1.367 GB, free: 2.078 MB / 0.823 GB Notification: Performance of sorting global known variables: time 3.949e-05/1.322, allocations: 75.28 kB / 1.367 GB, free: 2.004 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.3e-07/1.322, allocations: 0 / 1.367 GB, free: 2.004 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0001684/1.322, allocations: 0 / 1.367 GB, free: 2.004 MB / 0.823 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000127/1.322, allocations: 99.25 kB / 1.367 GB, free: 1.895 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 6.828e-05/1.322, allocations: 11.94 kB / 1.367 GB, free: 1.883 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/1.322, allocations: 0 / 1.367 GB, free: 1.883 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 1.201e-05/1.322, allocations: 7.797 kB / 1.367 GB, free: 1.879 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.771e-05/1.322, allocations: 6.219 kB / 1.367 GB, free: 1.875 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001913/1.323, allocations: 48.94 kB / 1.367 GB, free: 1.805 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002777/1.323, allocations: 0.677 MB / 1.368 GB, free: 1.102 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 3.809e-05/1.323, allocations: 4.125 kB / 1.368 GB, free: 1.098 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.602e-05/1.323, allocations: 7.438 kB / 1.368 GB, free: 1.09 MB / 0.823 GB Notification: Performance of SimCode: time 3.1e-07/1.323, allocations: 0 / 1.368 GB, free: 1.09 MB / 0.823 GB Notification: Performance of Templates: time 0.001754/1.325, allocations: 220.5 kB / 1.368 GB, free: 0.8828 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches