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.001484/0.001484, allocations: 103.2 kB / 16.35 MB, free: 5.828 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.001585/0.001585, allocations: 193.2 kB / 17.29 MB, free: 5.484 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.335/1.335, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.481/2.481, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002335/0.002335, allocations: 60.38 kB / 0.8773 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2987/0.3011, 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.002761/0.3039, allocations: 1.457 MB / 1.028 GB, free: 0.625 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0006872/0.3046, allocations: 379.6 kB / 1.028 GB, free: 256 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.014e-05/0.3047, allocations: 0 / 1.028 GB, free: 256 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.285e-05/0.3047, allocations: 3.938 kB / 1.028 GB, free: 252 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.321e-05/0.3048, allocations: 3.938 kB / 1.029 GB, free: 248 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004653/0.3053, allocations: 119.5 kB / 1.029 GB, free: 128 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 7.81e-05/0.3054, allocations: 31.88 kB / 1.029 GB, free: 96 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 9.079e-05/0.3055, allocations: 11.97 kB / 1.029 GB, free: 84 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 3.797e-05/0.3055, allocations: 11.94 kB / 1.029 GB, free: 72 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 3.545e-05/0.3055, allocations: 7.922 kB / 1.029 GB, free: 64 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.282e-05/0.3056, allocations: 4 kB / 1.029 GB, free: 60 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000387/0.306, allocations: 279.6 kB / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.494e-05/0.306, allocations: 4 kB / 1.029 GB, free: 15.78 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.538e-05/0.306, allocations: 11.94 kB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002093/0.3062, allocations: 107.8 kB / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.3062, allocations: 0 / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3062, allocations: 4 kB / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.288e-06/0.3063, 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.0004455/0.3067, allocations: 363.4 kB / 1.029 GB, free: 15.25 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.3067, allocations: 16.02 kB / 1.029 GB, free: 15.24 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.728e-05/0.3068, allocations: 0.9375 kB / 1.029 GB, free: 15.24 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.3069, allocations: 168.3 kB / 1.03 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.173e-05/0.3069, allocations: 384 / 1.03 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.546e-06/0.307, allocations: 4.312 kB / 1.03 GB, free: 15.03 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001714/0.3071, allocations: 54.23 kB / 1.03 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.3072, allocations: 192 / 1.03 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.778e-06/0.3072, allocations: 3.938 kB / 1.03 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.3072, allocations: 0 / 1.03 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001606/0.3073, allocations: 39.95 kB / 1.03 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003179/0.3077, allocations: 244.9 kB / 1.03 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001305/0.3078, allocations: 58.41 kB / 1.03 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.042e-05/0.3079, allocations: 20.91 kB / 1.03 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007036/0.3086, allocations: 457.5 kB / 1.03 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.431e-05/0.3086, allocations: 34.55 kB / 1.03 GB, free: 13.97 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.323e-06/0.3087, allocations: 0 / 1.03 GB, free: 13.97 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0003482/0.309, allocations: 81.59 kB / 1.031 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.095e-05/0.3091, allocations: 63.52 kB / 1.031 GB, free: 13.81 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.65e-05/0.3091, allocations: 97.86 kB / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.203e-05/0.3091, allocations: 29.7 kB / 1.031 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.127e-05/0.3092, allocations: 88.12 kB / 1.031 GB, free: 13.58 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.8e-05/0.3092, allocations: 7.844 kB / 1.031 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.014e-05/0.3092, allocations: 13.72 kB / 1.031 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.858e-05/0.3094, allocations: 314.8 kB / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.868e-05/0.3094, allocations: 11.98 kB / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.638e-05/0.3095, allocations: 27.97 kB / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001327/0.3097, allocations: 36.83 kB / 1.031 GB, free: 13.16 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3097, allocations: 256 / 1.031 GB, free: 13.16 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001961/0.3099, allocations: 77.53 kB / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.3099, allocations: 8.094 kB / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.3099, allocations: 4 kB / 1.031 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.3099, allocations: 3.938 kB / 1.031 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.752e-05/0.31, allocations: 11.98 kB / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.221e-06/0.31, allocations: 3.984 kB / 1.031 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.323e-05/0.3101, allocations: 4 kB / 1.031 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.889e-06/0.3101, allocations: 0 / 1.031 GB, free: 13.04 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.593e-05/0.3101, allocations: 117.7 kB / 1.031 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.413e-05/0.3102, allocations: 11.89 kB / 1.031 GB, free: 12.9 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002111/0.3104, allocations: 77.12 kB / 1.032 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.3104, allocations: 0 / 1.032 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3104, allocations: 0 / 1.032 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.3104, allocations: 3.938 kB / 1.032 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001477/0.3106, allocations: 165.6 kB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3106, allocations: 0 / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.316e-05/0.3107, allocations: 4 kB / 1.032 GB, free: 12.6 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.3107, allocations: 4.031 kB / 1.032 GB, free: 12.6 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.903e-06/0.3107, allocations: 0 / 1.032 GB, free: 12.6 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.274e-06/0.3107, allocations: 7.984 kB / 1.032 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.3107, allocations: 0 / 1.032 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002324/0.3109, allocations: 159.5 kB / 1.032 GB, free: 12.42 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.387e-05/0.311, allocations: 81.09 kB / 1.032 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.135e-05/0.311, allocations: 4.031 kB / 1.032 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.11e-05/0.3111, allocations: 4 kB / 1.032 GB, free: 12.31 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.382e-05/0.3111, allocations: 11.98 kB / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-06/0.3111, allocations: 0 / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.472e-05/0.3112, allocations: 79.28 kB / 1.032 GB, free: 12.22 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.3112, allocations: 0 / 1.032 GB, free: 12.22 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002377/0.3114, allocations: 15.91 kB / 1.032 GB, free: 12.21 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.0001673/0.3116, allocations: 123.2 kB / 1.032 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001958/0.3118, allocations: 39.97 kB / 1.032 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.3118, allocations: 0 / 1.032 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.199e-05/0.3119, allocations: 23.97 kB / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002769/0.3122, allocations: 5.141 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.0002695/0.3125, allocations: 97.62 kB / 1.032 GB, free: 11.88 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002092/0.3127, allocations: 0.6847 MB / 1.033 GB, free: 11.17 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.155e-05/0.3127, allocations: 3.938 kB / 1.033 GB, free: 11.17 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.861e-05/0.3127, allocations: 7.438 kB / 1.033 GB, free: 11.16 MB / 0.8106 GB Notification: Performance of SimCode: time 2.61e-07/0.3127, allocations: 0 / 1.033 GB, free: 11.16 MB / 0.8106 GB Notification: Performance of Templates: time 0.002819/0.3156, allocations: 0.7296 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 gbode -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