Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower") translateModel(Buildings.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001132/0.001133, allocations: 103.8 kB / 16.35 MB, free: 5.879 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.001134/0.001134, allocations: 197.6 kB / 17.3 MB, free: 5.52 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.183/1.183, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.219/2.219, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 70.72 kB / 0.8773 GB, free: 11.01 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2672/0.2684, allocations: 153 MB / 1.027 GB, free: 2.086 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.002262/0.2707, allocations: 1.458 MB / 1.028 GB, free: 0.6211 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0005912/0.2713, allocations: 375.5 kB / 1.028 GB, free: 256 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.792e-05/0.2713, allocations: 4 kB / 1.028 GB, free: 252 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.496e-05/0.2714, allocations: 3.984 kB / 1.029 GB, free: 248 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 3.959e-05/0.2714, allocations: 7.922 kB / 1.029 GB, free: 240 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003585/0.2718, allocations: 115.5 kB / 1.029 GB, free: 124 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 5.42e-05/0.2718, allocations: 27.86 kB / 1.029 GB, free: 96 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 7.533e-05/0.2719, allocations: 8 kB / 1.029 GB, free: 88 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 3.119e-05/0.2719, allocations: 4 kB / 1.029 GB, free: 84 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 3.369e-05/0.272, allocations: 15.92 kB / 1.029 GB, free: 68 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.063e-05/0.272, allocations: 4 kB / 1.029 GB, free: 64 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003297/0.2723, allocations: 279.6 kB / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.748e-06/0.2723, allocations: 0 / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.226e-05/0.2724, allocations: 11.94 kB / 1.029 GB, free: 15.78 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000162/0.2725, allocations: 115.7 kB / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2726, allocations: 0 / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.202e-06/0.2726, allocations: 0 / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.797e-06/0.2726, allocations: 0 / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003846/0.273, allocations: 372.6 kB / 1.029 GB, free: 15.25 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.709e-05/0.273, allocations: 8.031 kB / 1.029 GB, free: 15.24 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.894e-05/0.273, allocations: 4.938 kB / 1.029 GB, free: 15.24 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.7e-05/0.2731, allocations: 160.4 kB / 1.03 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.857e-06/0.2732, allocations: 384 / 1.03 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.097e-06/0.2732, allocations: 8.375 kB / 1.03 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001399/0.2733, allocations: 58.16 kB / 1.03 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.861e-06/0.2733, allocations: 192 / 1.03 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.836e-06/0.2733, allocations: 3.938 kB / 1.03 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.2734, allocations: 0 / 1.03 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001404/0.2735, allocations: 39.89 kB / 1.03 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000267/0.2738, allocations: 252.9 kB / 1.03 GB, free: 14.63 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001065/0.2739, allocations: 42.48 kB / 1.03 GB, free: 14.58 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.175e-05/0.274, allocations: 20.91 kB / 1.03 GB, free: 14.56 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005883/0.2746, allocations: 465.5 kB / 1.03 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.063e-05/0.2746, allocations: 30.56 kB / 1.03 GB, free: 13.97 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.2746, allocations: 0 / 1.03 GB, free: 13.97 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0003178/0.2749, allocations: 89.67 kB / 1.031 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.676e-05/0.275, allocations: 51.41 kB / 1.031 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.745e-05/0.275, allocations: 101.9 kB / 1.031 GB, free: 13.71 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.533e-05/0.275, allocations: 25.7 kB / 1.031 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.757e-05/0.2751, allocations: 96.06 kB / 1.031 GB, free: 13.58 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.451e-05/0.2751, allocations: 7.844 kB / 1.031 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.643e-05/0.2751, allocations: 9.719 kB / 1.031 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.484e-05/0.2752, allocations: 318.8 kB / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.314e-05/0.2753, allocations: 20 kB / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.931e-05/0.2754, allocations: 15.98 kB / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001224/0.2755, allocations: 36.83 kB / 1.031 GB, free: 13.16 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.2755, allocations: 3.938 kB / 1.031 GB, free: 13.16 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001747/0.2757, allocations: 73.66 kB / 1.031 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.2757, allocations: 8 kB / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.547e-06/0.2757, allocations: 0 / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.548e-06/0.2757, allocations: 0 / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.938e-05/0.2758, allocations: 7.984 kB / 1.031 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.942e-06/0.2758, allocations: 7.984 kB / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.834e-05/0.2759, allocations: 4 kB / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.241e-06/0.2759, allocations: 3.984 kB / 1.031 GB, free: 13.05 MB / 0.8106 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 (2): * Single equations (assignments): 2 * 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.366e-05/0.2759, allocations: 121.8 kB / 1.031 GB, free: 12.92 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.7e-05/0.276, allocations: 7.906 kB / 1.031 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001922/0.2762, allocations: 73.12 kB / 1.032 GB, free: 12.83 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.2762, allocations: 7.938 kB / 1.032 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.2762, allocations: 0 / 1.032 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.2762, allocations: 0 / 1.032 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001345/0.2763, allocations: 165.8 kB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.2763, allocations: 8.031 kB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.114e-05/0.2764, allocations: 11.98 kB / 1.032 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.2764, allocations: 0 / 1.032 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.761e-06/0.2764, allocations: 0 / 1.032 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.2764, allocations: 0 / 1.032 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.2764, allocations: 0 / 1.032 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002089/0.2766, allocations: 171.4 kB / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.752e-05/0.2767, allocations: 81.11 kB / 1.032 GB, free: 12.31 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.939e-06/0.2767, allocations: 0 / 1.032 GB, free: 12.31 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.063e-05/0.2768, allocations: 7.984 kB / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.641e-05/0.2768, allocations: 0 / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.086e-06/0.2768, allocations: 0 / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.77e-05/0.2768, allocations: 87.28 kB / 1.032 GB, free: 12.22 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2769, allocations: 0 / 1.032 GB, free: 12.22 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000214/0.2771, allocations: 19.89 kB / 1.032 GB, free: 12.2 MB / 0.8106 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 (2): * Single equations (assignments): 2 * 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.0001416/0.2772, allocations: 111.3 kB / 1.032 GB, free: 12.08 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001843/0.2774, allocations: 39.95 kB / 1.032 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.2774, allocations: 0 / 1.032 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 6.844e-05/0.2775, allocations: 15.98 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002244/0.2777, allocations: 15.81 kB / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002207/0.278, allocations: 105.8 kB / 1.032 GB, free: 11.88 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001939/0.2782, allocations: 0.6768 MB / 1.033 GB, free: 11.17 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.001e-05/0.2782, allocations: 4 kB / 1.033 GB, free: 11.17 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.596e-05/0.2782, allocations: 7.438 kB / 1.033 GB, free: 11.16 MB / 0.8106 GB Notification: Performance of SimCode: time 2.6e-07/0.2782, allocations: 0 / 1.033 GB, free: 11.16 MB / 0.8106 GB Notification: Performance of Templates: time 0.002486/0.2807, allocations: 0.7222 MB / 1.034 GB, free: 10.44 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches