Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001323/0.001323, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001404/0.001404, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.391/1.391, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.622/2.622, allocations: 437 MB / 0.71 GB, free: 5.211 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 63.91 kB / 0.8687 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6944/0.6958, allocations: 151.6 MB / 1.017 GB, free: 2.832 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001785/0.6976, allocations: 0.647 MB / 1.017 GB, free: 2.184 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0002672/0.6979, allocations: 51.84 kB / 1.017 GB, free: 2.133 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.827e-05/0.6979, allocations: 0 / 1.017 GB, free: 2.133 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.505e-05/0.6979, allocations: 7.875 kB / 1.017 GB, free: 2.125 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.901e-06/0.698, allocations: 0 / 1.017 GB, free: 2.125 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002572/0.6982, allocations: 11.98 kB / 1.017 GB, free: 2.113 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 3.682e-05/0.6983, allocations: 0 / 1.017 GB, free: 2.113 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 5.612e-05/0.6983, allocations: 7.984 kB / 1.018 GB, free: 2.105 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.416e-05/0.6984, allocations: 0 / 1.018 GB, free: 2.105 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 2.283e-05/0.6984, allocations: 0 / 1.018 GB, free: 2.105 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.016e-05/0.6984, allocations: 0 / 1.018 GB, free: 2.105 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001115/0.6985, allocations: 23.98 kB / 1.018 GB, free: 2.082 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.067e-05/0.6985, allocations: 0 / 1.018 GB, free: 2.082 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 1.614e-05/0.6986, allocations: 0 / 1.018 GB, free: 2.082 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 8.903e-05/0.6986, allocations: 23.97 kB / 1.018 GB, free: 2.059 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.6987, allocations: 0 / 1.018 GB, free: 2.059 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.994e-06/0.6987, allocations: 0 / 1.018 GB, free: 2.059 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 9.358e-06/0.6987, allocations: 0 / 1.018 GB, free: 2.059 MB / 0.7637 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.0003189/0.699, allocations: 315.6 kB / 1.018 GB, free: 1.699 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.699, allocations: 8.031 kB / 1.018 GB, free: 1.691 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002671/0.6993, allocations: 20.91 kB / 1.018 GB, free: 1.672 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001138/0.6994, allocations: 168.3 kB / 1.018 GB, free: 1.469 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.6995, allocations: 4.359 kB / 1.018 GB, free: 1.465 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.036e-05/0.6995, allocations: 4.312 kB / 1.018 GB, free: 1.461 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001542/0.6996, allocations: 38.19 kB / 1.018 GB, free: 1.418 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.305e-06/0.6996, allocations: 192 / 1.018 GB, free: 1.418 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.506e-05/0.6997, allocations: 3.938 kB / 1.018 GB, free: 1.414 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.6997, allocations: 0 / 1.018 GB, free: 1.414 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.531e-05/0.6998, allocations: 15.98 kB / 1.018 GB, free: 1.398 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001468/0.6999, allocations: 145.7 kB / 1.018 GB, free: 1.207 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 9.123e-05/0.7, allocations: 22.59 kB / 1.018 GB, free: 1.176 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.369e-05/0.7001, allocations: 8.922 kB / 1.018 GB, free: 1.164 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 1.65e-05/0.7001, allocations: 3.938 kB / 1.018 GB, free: 1.16 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.182e-05/0.7001, allocations: 34.56 kB / 1.018 GB, free: 1.117 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.7001, allocations: 0 / 1.018 GB, free: 1.117 MB / 0.7637 GB Notification: Performance of matching and sorting (n=1): time 0.0002501/0.7004, allocations: 53.59 kB / 1.018 GB, free: 1.059 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.719e-05/0.7004, allocations: 55.41 kB / 1.018 GB, free: 0.9922 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.637e-05/0.7005, allocations: 89.86 kB / 1.018 GB, free: 0.8945 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 1.362e-05/0.7005, allocations: 25.7 kB / 1.019 GB, free: 0.8633 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 2.929e-05/0.7005, allocations: 80.14 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 3.248e-05/0.7006, allocations: 8.031 kB / 1.019 GB, free: 0.7734 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.967e-05/0.7006, allocations: 17.7 kB / 1.019 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001228/0.7007, allocations: 310.8 kB / 1.019 GB, free: 448 kB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.739e-05/0.7008, allocations: 4 kB / 1.019 GB, free: 444 kB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.972e-05/0.7008, allocations: 11.92 kB / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.764e-05/0.7009, allocations: 16.84 kB / 1.019 GB, free: 412 kB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.7009, allocations: 4.062 kB / 1.019 GB, free: 408 kB / 0.7637 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001115/0.7011, allocations: 41.69 kB / 1.019 GB, free: 360 kB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.7011, allocations: 4 kB / 1.019 GB, free: 356 kB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.7011, allocations: 0 / 1.019 GB, free: 356 kB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.7011, allocations: 3.938 kB / 1.019 GB, free: 352 kB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.225e-05/0.7012, allocations: 4 kB / 1.019 GB, free: 348 kB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.7012, allocations: 3.984 kB / 1.019 GB, free: 344 kB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.149e-05/0.7012, allocations: 0 / 1.019 GB, free: 344 kB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.698e-06/0.7012, allocations: 12.03 kB / 1.019 GB, free: 332 kB / 0.7637 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.065e-05/0.7013, allocations: 106.4 kB / 1.019 GB, free: 216 kB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.374e-06/0.7013, allocations: 3.938 kB / 1.019 GB, free: 212 kB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.642e-05/0.7014, allocations: 7.062 kB / 1.019 GB, free: 204 kB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.7014, allocations: 0 / 1.019 GB, free: 204 kB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.7014, allocations: 3.938 kB / 1.019 GB, free: 200 kB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.7014, allocations: 4 kB / 1.019 GB, free: 196 kB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001132/0.7015, allocations: 149.7 kB / 1.019 GB, free: 16 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.7015, allocations: 0 / 1.019 GB, free: 16 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.219e-05/0.7016, allocations: 11.94 kB / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.7016, allocations: 0 / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.7016, allocations: 7.922 kB / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.021e-06/0.7016, allocations: 0 / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.7016, allocations: 0 / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001325/0.7017, allocations: 65.12 kB / 1.019 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.907e-05/0.7018, allocations: 77.14 kB / 1.019 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.142e-05/0.7018, allocations: 7.938 kB / 1.019 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.296e-05/0.7018, allocations: 3.984 kB / 1.019 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.068e-05/0.7019, allocations: 0 / 1.019 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.086e-06/0.7019, allocations: 4 kB / 1.019 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.307e-05/0.7019, allocations: 79.22 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.7019, allocations: 0 / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001745/0.7021, allocations: 0 / 1.02 GB, free: 15.71 MB / 0.7794 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.0001058/0.7022, allocations: 103.2 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001338/0.7023, allocations: 11.98 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.7023, allocations: 0 / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.318e-05/0.7024, allocations: 7.984 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001262/0.7025, allocations: 3.672 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002149/0.7027, allocations: 85.05 kB / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002264/0.703, allocations: 0.6807 MB / 1.02 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.468e-05/0.703, allocations: 0 / 1.02 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.532e-05/0.7031, allocations: 7.438 kB / 1.02 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.7031, allocations: 0 / 1.02 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of Templates: time 0.001994/0.7051, allocations: 241.4 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches