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.008559/0.008559, allocations: 102.2 kB / 15.73 MB, free: 6.066 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.001152/0.001152, allocations: 192.7 kB / 16.68 MB, free: 5.973 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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.598/2.598, allocations: 437 MB / 0.7105 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 72.12 kB / 1.019 GB, free: 9.344 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9109/0.9122, allocations: 151.6 MB / 1.167 GB, free: 3.785 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.002231/0.9145, allocations: 0.5844 MB / 1.167 GB, free: 3.203 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0003699/0.9149, allocations: 45.77 kB / 1.167 GB, free: 3.16 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.102e-05/0.915, allocations: 0 / 1.167 GB, free: 3.16 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.287e-05/0.915, allocations: 0 / 1.167 GB, free: 3.16 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 1.001e-05/0.915, allocations: 11.88 kB / 1.167 GB, free: 3.148 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000305/0.9154, allocations: 15.98 kB / 1.167 GB, free: 3.133 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 5.26e-05/0.9154, allocations: 7.984 kB / 1.167 GB, free: 3.125 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 5.632e-05/0.9155, allocations: 0 / 1.167 GB, free: 3.125 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 1.623e-05/0.9155, allocations: 3.938 kB / 1.167 GB, free: 3.121 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 2.567e-05/0.9155, allocations: 3.984 kB / 1.167 GB, free: 3.117 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.398e-05/0.9156, allocations: 4 kB / 1.167 GB, free: 3.113 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001362/0.9157, allocations: 15.98 kB / 1.167 GB, free: 3.098 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.233e-05/0.9157, allocations: 0 / 1.167 GB, free: 3.098 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.804e-05/0.9158, allocations: 0 / 1.167 GB, free: 3.098 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001199/0.9159, allocations: 23.97 kB / 1.167 GB, free: 3.074 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.9159, allocations: 0 / 1.167 GB, free: 3.074 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.354e-06/0.9159, allocations: 0 / 1.167 GB, free: 3.074 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.576e-06/0.9159, allocations: 0 / 1.167 GB, free: 3.074 MB / 0.8887 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.0003591/0.9163, allocations: 312.5 kB / 1.168 GB, free: 2.719 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.9163, allocations: 8.922 kB / 1.168 GB, free: 2.711 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003011/0.9166, allocations: 24.91 kB / 1.168 GB, free: 2.688 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001083/0.9168, allocations: 168.4 kB / 1.168 GB, free: 2.484 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.241e-05/0.9168, allocations: 4.375 kB / 1.168 GB, free: 2.48 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.45e-05/0.9168, allocations: 384 / 1.168 GB, free: 2.48 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000152/0.917, allocations: 38.19 kB / 1.168 GB, free: 2.438 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.917, allocations: 192 / 1.168 GB, free: 2.438 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.917, allocations: 3.938 kB / 1.168 GB, free: 2.434 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.917, allocations: 0 / 1.168 GB, free: 2.434 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.1e-05/0.9171, allocations: 11.98 kB / 1.168 GB, free: 2.422 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001527/0.9173, allocations: 145.2 kB / 1.168 GB, free: 2.234 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 8.114e-05/0.9173, allocations: 34.53 kB / 1.168 GB, free: 2.191 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.064e-05/0.9174, allocations: 8.922 kB / 1.168 GB, free: 2.18 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.454e-05/0.9174, allocations: 0 / 1.168 GB, free: 2.18 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.869e-05/0.9175, allocations: 34.55 kB / 1.168 GB, free: 2.137 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=1): time 1.142e-06/0.9175, allocations: 0 / 1.168 GB, free: 2.137 MB / 0.8887 GB Notification: Performance of matching and sorting (n=1): time 0.0002535/0.9177, allocations: 53.58 kB / 1.168 GB, free: 2.078 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.515e-05/0.9178, allocations: 55.34 kB / 1.168 GB, free: 2.012 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.755e-05/0.9178, allocations: 89.86 kB / 1.168 GB, free: 1.914 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.334e-05/0.9178, allocations: 25.7 kB / 1.168 GB, free: 1.883 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 2.834e-05/0.9179, allocations: 80.14 kB / 1.168 GB, free: 1.801 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 3.61e-05/0.9179, allocations: 11.98 kB / 1.168 GB, free: 1.789 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.723e-05/0.918, allocations: 9.719 kB / 1.168 GB, free: 1.773 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001188/0.9181, allocations: 315 kB / 1.169 GB, free: 1.457 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.608e-05/0.9181, allocations: 4 kB / 1.169 GB, free: 1.453 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.831e-05/0.9182, allocations: 7.984 kB / 1.169 GB, free: 1.445 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.922e-05/0.9183, allocations: 12.84 kB / 1.169 GB, free: 1.43 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.9183, allocations: 4 kB / 1.169 GB, free: 1.426 MB / 0.8887 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001239/0.9184, allocations: 45.69 kB / 1.169 GB, free: 1.375 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.9184, allocations: 8.031 kB / 1.169 GB, free: 1.367 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.9185, allocations: 0 / 1.169 GB, free: 1.367 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.9185, allocations: 7.875 kB / 1.169 GB, free: 1.359 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.753e-05/0.9186, allocations: 7.984 kB / 1.169 GB, free: 1.352 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.9186, allocations: 0 / 1.169 GB, free: 1.352 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.376e-05/0.9186, allocations: 4 kB / 1.169 GB, free: 1.348 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.223e-06/0.9186, allocations: 0 / 1.169 GB, free: 1.348 MB / 0.8887 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 7.767e-05/0.9187, allocations: 105.8 kB / 1.169 GB, free: 1.234 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.127e-06/0.9187, allocations: 4 kB / 1.169 GB, free: 1.23 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.756e-05/0.9188, allocations: 7.062 kB / 1.169 GB, free: 1.219 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.9188, allocations: 4 kB / 1.169 GB, free: 1.215 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.729e-06/0.9188, allocations: 3.984 kB / 1.169 GB, free: 1.211 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.9188, allocations: 3.938 kB / 1.169 GB, free: 1.207 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001061/0.9189, allocations: 145.7 kB / 1.169 GB, free: 1.016 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.9189, allocations: 0 / 1.169 GB, free: 1.016 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.659e-05/0.919, allocations: 7.984 kB / 1.169 GB, free: 1.008 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.919, allocations: 0 / 1.169 GB, free: 1.008 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.919, allocations: 3.938 kB / 1.169 GB, free: 1.004 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.919, allocations: 4 kB / 1.169 GB, free: 1 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.919, allocations: 4 kB / 1.169 GB, free: 0.9961 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001483/0.9192, allocations: 69.06 kB / 1.169 GB, free: 0.9102 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 4.163e-05/0.9192, allocations: 77.11 kB / 1.169 GB, free: 0.8164 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.55e-05/0.9192, allocations: 7.922 kB / 1.169 GB, free: 0.8086 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.06e-05/0.9193, allocations: 4 kB / 1.169 GB, free: 0.8047 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.514e-05/0.9193, allocations: 8.016 kB / 1.169 GB, free: 0.7969 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.517e-06/0.9193, allocations: 0 / 1.169 GB, free: 0.7969 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 2.613e-05/0.9193, allocations: 75.28 kB / 1.169 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9193, allocations: 0 / 1.169 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0001934/0.9195, allocations: 4 kB / 1.169 GB, free: 0.7188 MB / 0.8887 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.0001323/0.9197, allocations: 99.25 kB / 1.169 GB, free: 0.6094 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0001537/0.9198, allocations: 15.98 kB / 1.169 GB, free: 0.5938 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.9198, allocations: 0 / 1.169 GB, free: 0.5938 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 4.345e-05/0.9199, allocations: 11.92 kB / 1.169 GB, free: 0.582 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000139/0.92, allocations: 0 / 1.169 GB, free: 0.582 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002597/0.9203, allocations: 84.8 kB / 1.17 GB, free: 488 kB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002528/0.9206, allocations: 0.6729 MB / 1.17 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.446e-05/0.9206, allocations: 4.125 kB / 1.17 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.669e-05/0.9206, allocations: 11.42 kB / 1.17 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of SimCode: time 4.81e-07/0.9206, allocations: 0 / 1.17 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of Templates: time 0.002296/0.9229, allocations: 228.1 kB / 1.17 GB, free: 15.54 MB / 0.9044 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