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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001129/0.001129, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001096/0.001096, allocations: 196.1 kB / 16.14 MB, free: 6.645 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.567/1.567, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.76/2.76, allocations: 461.9 MB / 0.7342 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 69.34 kB / 0.8984 GB, free: 37.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/0.3253, allocations: 157.4 MB / 1.052 GB, free: 8.926 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.002389/0.3277, allocations: 1.491 MB / 1.054 GB, free: 7.418 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0007239/0.3285, allocations: 426.7 kB / 1.054 GB, free: 7 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.058e-05/0.3285, allocations: 0 / 1.054 GB, free: 7 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.844e-05/0.3285, allocations: 4 kB / 1.054 GB, free: 6.996 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.916e-05/0.3286, allocations: 3.938 kB / 1.054 GB, free: 6.992 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003091/0.3289, allocations: 75.22 kB / 1.054 GB, free: 6.922 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.178e-05/0.329, allocations: 27.92 kB / 1.054 GB, free: 6.895 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.2e-05/0.329, allocations: 4 kB / 1.054 GB, free: 6.891 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.359e-05/0.3291, allocations: 11.92 kB / 1.054 GB, free: 6.879 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.283e-05/0.3291, allocations: 15.91 kB / 1.054 GB, free: 6.863 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.309e-05/0.3291, allocations: 8 kB / 1.054 GB, free: 6.855 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000342/0.3295, allocations: 271.7 kB / 1.054 GB, free: 6.59 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.213e-05/0.3295, allocations: 7.938 kB / 1.054 GB, free: 6.582 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.148e-05/0.3295, allocations: 7.922 kB / 1.054 GB, free: 6.574 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001759/0.3297, allocations: 103.8 kB / 1.054 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3297, allocations: 0 / 1.054 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.31e-07/0.3297, allocations: 0 / 1.054 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.727e-06/0.3297, allocations: 4 kB / 1.054 GB, free: 6.469 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.0004115/0.3302, allocations: 367.6 kB / 1.055 GB, free: 6.059 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.119e-05/0.3302, allocations: 12.03 kB / 1.055 GB, free: 6.047 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.36e-05/0.3303, allocations: 0.9375 kB / 1.055 GB, free: 6.047 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001017/0.3304, allocations: 180.3 kB / 1.055 GB, free: 5.832 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.074e-05/0.3304, allocations: 4.375 kB / 1.055 GB, free: 5.828 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.476e-06/0.3304, allocations: 384 / 1.055 GB, free: 5.828 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000171/0.3306, allocations: 50.23 kB / 1.055 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.241e-06/0.3306, allocations: 192 / 1.055 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.828e-06/0.3306, allocations: 3.938 kB / 1.055 GB, free: 5.77 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.3306, allocations: 4 kB / 1.055 GB, free: 5.766 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001669/0.3308, allocations: 35.95 kB / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002793/0.3311, allocations: 260.8 kB / 1.055 GB, free: 5.426 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001287/0.3312, allocations: 38.5 kB / 1.055 GB, free: 5.379 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.061e-05/0.3313, allocations: 28.91 kB / 1.055 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006451/0.332, allocations: 457.5 kB / 1.056 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.441e-05/0.332, allocations: 34.56 kB / 1.056 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.332, allocations: 4 kB / 1.056 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0003878/0.3324, allocations: 85.58 kB / 1.056 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.744e-05/0.3324, allocations: 51.41 kB / 1.056 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.521e-05/0.3325, allocations: 105.8 kB / 1.056 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.861e-05/0.3325, allocations: 25.7 kB / 1.056 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.59e-05/0.3326, allocations: 84.27 kB / 1.056 GB, free: 4.379 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.692e-05/0.3326, allocations: 11.84 kB / 1.056 GB, free: 4.367 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.095e-05/0.3326, allocations: 13.72 kB / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.29e-05/0.3327, allocations: 314.8 kB / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.411e-05/0.3328, allocations: 19.98 kB / 1.057 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.848e-05/0.3329, allocations: 11.98 kB / 1.057 GB, free: 4 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001452/0.333, allocations: 44.89 kB / 1.057 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3331, allocations: 0 / 1.057 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000201/0.3333, allocations: 73.53 kB / 1.057 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.273e-05/0.3333, allocations: 4 kB / 1.057 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.3333, allocations: 0 / 1.057 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.023e-05/0.3333, allocations: 0 / 1.057 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.761e-05/0.3334, allocations: 11.98 kB / 1.057 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.528e-06/0.3334, allocations: 4.031 kB / 1.057 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.758e-05/0.3335, allocations: 7.984 kB / 1.057 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.28e-06/0.3335, allocations: 3.938 kB / 1.057 GB, free: 3.844 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.623e-05/0.3335, allocations: 117.8 kB / 1.057 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.818e-05/0.3336, allocations: 3.906 kB / 1.057 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002196/0.3338, allocations: 77.12 kB / 1.057 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.3338, allocations: 0 / 1.057 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.3338, allocations: 0 / 1.057 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.3338, allocations: 0 / 1.057 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001515/0.334, allocations: 169.6 kB / 1.057 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-06/0.334, allocations: 0 / 1.057 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.762e-05/0.3341, allocations: 11.92 kB / 1.057 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3341, allocations: 0 / 1.057 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-06/0.3341, allocations: 4.25 kB / 1.057 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.3341, allocations: 4 kB / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3341, allocations: 0 / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002324/0.3343, allocations: 167.5 kB / 1.057 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.716e-05/0.3344, allocations: 77.11 kB / 1.057 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.318e-05/0.3344, allocations: 4 kB / 1.057 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.635e-05/0.3345, allocations: 3.984 kB / 1.057 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.844e-05/0.3345, allocations: 4 kB / 1.057 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-06/0.3345, allocations: 4.031 kB / 1.057 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.032e-05/0.3346, allocations: 91.2 kB / 1.057 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3346, allocations: 0 / 1.057 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000241/0.3348, allocations: 16 kB / 1.057 GB, free: 3.004 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.0001468/0.335, allocations: 103.2 kB / 1.058 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001978/0.3352, allocations: 39.95 kB / 1.058 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.3352, allocations: 4.062 kB / 1.058 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.587e-05/0.3353, allocations: 19.98 kB / 1.058 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002813/0.3356, allocations: 15.86 kB / 1.058 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002432/0.3358, allocations: 111.2 kB / 1.058 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002017/0.336, allocations: 0.6847 MB / 1.058 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.427e-05/0.3361, allocations: 4.062 kB / 1.058 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.727e-05/0.3361, allocations: 11.44 kB / 1.058 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of SimCode: time 3.3e-07/0.3361, allocations: 0 / 1.058 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of Templates: time 0.002375/0.3385, allocations: 0.6488 MB / 1.059 GB, free: 1.309 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches