Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001494/0.001494, allocations: 109.9 kB / 16.41 MB, free: 6.449 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.001701/0.001701, allocations: 185.6 kB / 17.34 MB, free: 5.738 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.536/1.536, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.402/2.402, allocations: 390.3 MB / 0.6655 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 59.91 kB / 0.9516 GB, free: 7.609 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9292/0.9308, allocations: 140.4 MB / 1.089 GB, free: 5.777 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001693/0.9325, allocations: 0.5742 MB / 1.089 GB, free: 5.426 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0002625/0.9328, allocations: 55.62 kB / 1.089 GB, free: 5.391 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.911e-05/0.9328, allocations: 0.9688 kB / 1.089 GB, free: 5.391 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.778e-05/0.9329, allocations: 0 / 1.089 GB, free: 5.391 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.324e-06/0.9329, allocations: 0 / 1.089 GB, free: 5.391 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002501/0.9331, allocations: 16.67 kB / 1.089 GB, free: 5.383 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 4.244e-05/0.9332, allocations: 6.734 kB / 1.089 GB, free: 5.379 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.923e-05/0.9332, allocations: 1.672 kB / 1.089 GB, free: 5.379 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 1.563e-05/0.9333, allocations: 1.062 kB / 1.089 GB, free: 5.379 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 2.473e-05/0.9333, allocations: 1.156 kB / 1.089 GB, free: 5.379 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.039e-05/0.9333, allocations: 0 / 1.089 GB, free: 5.379 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001175/0.9334, allocations: 24.19 kB / 1.089 GB, free: 5.371 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.725e-05/0.9334, allocations: 1.125 kB / 1.089 GB, free: 5.371 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 1.878e-05/0.9335, allocations: 3.938 kB / 1.089 GB, free: 5.367 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 9.01e-05/0.9336, allocations: 19.14 kB / 1.089 GB, free: 5.359 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.9336, allocations: 1.312 kB / 1.089 GB, free: 5.359 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.593e-06/0.9336, allocations: 0 / 1.089 GB, free: 5.359 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.9336, allocations: 0 / 1.089 GB, free: 5.359 MB / 0.8575 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.0002397/0.9338, allocations: 317.2 kB / 1.09 GB, free: 5.004 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.9339, allocations: 9.344 kB / 1.09 GB, free: 5.004 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002603/0.9342, allocations: 23.17 kB / 1.09 GB, free: 5 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.652e-05/0.9342, allocations: 165.8 kB / 1.09 GB, free: 4.801 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.257e-06/0.9342, allocations: 1.438 kB / 1.09 GB, free: 4.801 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.029e-05/0.9343, allocations: 384 / 1.09 GB, free: 4.801 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001333/0.9344, allocations: 38.53 kB / 1.09 GB, free: 4.766 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.9344, allocations: 1.5 kB / 1.09 GB, free: 4.766 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.378e-05/0.9344, allocations: 3.938 kB / 1.09 GB, free: 4.762 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.9344, allocations: 0 / 1.09 GB, free: 4.762 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.203e-05/0.9345, allocations: 13.86 kB / 1.09 GB, free: 4.758 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00012/0.9347, allocations: 148.2 kB / 1.09 GB, free: 4.566 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 7.192e-05/0.9347, allocations: 25.11 kB / 1.09 GB, free: 4.539 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.034e-05/0.9348, allocations: 10.06 kB / 1.09 GB, free: 4.531 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.303e-05/0.9348, allocations: 1.562 kB / 1.09 GB, free: 4.531 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.447e-05/0.9348, allocations: 35.22 kB / 1.09 GB, free: 4.488 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.9349, allocations: 1.062 kB / 1.09 GB, free: 4.488 MB / 0.8575 GB Notification: Performance of matching and sorting (n=1): time 0.000228/0.9351, allocations: 47.12 kB / 1.09 GB, free: 4.453 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.394e-05/0.9351, allocations: 55.92 kB / 1.09 GB, free: 4.387 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.622e-05/0.9351, allocations: 89.86 kB / 1.09 GB, free: 4.289 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.145e-06/0.9352, allocations: 27.39 kB / 1.09 GB, free: 4.258 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.288e-05/0.9352, allocations: 88.2 kB / 1.09 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.796e-05/0.9352, allocations: 0.8438 kB / 1.09 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.046e-05/0.9352, allocations: 13.22 kB / 1.09 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.693e-05/0.9353, allocations: 311.4 kB / 1.091 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.646e-05/0.9353, allocations: 5.203 kB / 1.091 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.803e-05/0.9354, allocations: 9.016 kB / 1.091 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.018e-05/0.9355, allocations: 23.23 kB / 1.091 GB, free: 3.82 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.9355, allocations: 0 / 1.091 GB, free: 3.82 MB / 0.8575 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001141/0.9356, allocations: 40.78 kB / 1.091 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.9356, allocations: 8.375 kB / 1.091 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.9356, allocations: 0 / 1.091 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.9357, allocations: 4.719 kB / 1.091 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.147e-05/0.9357, allocations: 7.922 kB / 1.091 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.089e-06/0.9357, allocations: 1.281 kB / 1.091 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.301e-05/0.9358, allocations: 6.547 kB / 1.091 GB, free: 3.777 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.9358, allocations: 0.5625 kB / 1.091 GB, free: 3.777 MB / 0.8575 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.671e-05/0.9359, allocations: 107.7 kB / 1.091 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.564e-06/0.9359, allocations: 0.875 kB / 1.091 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.351e-05/0.9359, allocations: 8.625 kB / 1.091 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.9359, allocations: 0.5156 kB / 1.091 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.758e-06/0.9359, allocations: 0.9062 kB / 1.091 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.9359, allocations: 0 / 1.091 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.882e-05/0.936, allocations: 157.2 kB / 1.091 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.936, allocations: 4 kB / 1.091 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.186e-05/0.9361, allocations: 5.391 kB / 1.091 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.9361, allocations: 1.094 kB / 1.091 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-06/0.9361, allocations: 4.594 kB / 1.091 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.9361, allocations: 3.938 kB / 1.091 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.9361, allocations: 1.062 kB / 1.091 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001286/0.9362, allocations: 69.19 kB / 1.091 GB, free: 3.375 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.757e-05/0.9363, allocations: 81.66 kB / 1.091 GB, free: 3.277 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.291e-05/0.9363, allocations: 5.141 kB / 1.091 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.017e-05/0.9363, allocations: 3.344 kB / 1.091 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.423e-05/0.9363, allocations: 0.6094 kB / 1.091 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.086e-06/0.9363, allocations: 1.188 kB / 1.091 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 1.341e-05/0.9363, allocations: 75.28 kB / 1.091 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of sort global known variables: time 9e-08/0.9364, allocations: 0 / 1.091 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001733/0.9365, allocations: 1.844 kB / 1.091 GB, free: 3.199 MB / 0.8575 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.0001137/0.9366, allocations: 102.2 kB / 1.091 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001408/0.9368, allocations: 11.88 kB / 1.091 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.9368, allocations: 0 / 1.091 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 4.273e-05/0.9369, allocations: 11.67 kB / 1.091 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001305/0.937, allocations: 1.25 kB / 1.091 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002362/0.9372, allocations: 124 kB / 1.092 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.152e-05/0.9373, allocations: 0.6708 MB / 1.092 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.804e-05/0.9374, allocations: 9.281 kB / 1.092 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/0.9374, allocations: 0 / 1.092 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of Templates: time 0.001701/0.9391, allocations: 389.5 kB / 1.093 GB, free: 2.25 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches