Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Examples.PowerLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|powerLinearized.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized") translateModel(Buildings.Utilities.Math.Examples.PowerLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|powerLinearized.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005183/0.005183, allocations: 109.2 kB / 15.71 MB, free: 6.48 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.001075/0.001075, allocations: 198.8 kB / 16.65 MB, free: 6.391 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.229/1.229, allocations: 222.9 MB / 240.3 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.172/2.172, allocations: 390.3 MB / 0.6648 GB, free: 184 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001119/0.001119, allocations: 66.42 kB / 0.9509 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2753/0.2764, allocations: 140.4 MB / 1.088 GB, free: 1.449 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.PowerLinearized): time 0.002253/0.2787, allocations: 1.434 MB / 1.089 GB, free: 4 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.000299/0.279, allocations: 92.7 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.036e-05/0.279, allocations: 0 / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.058e-05/0.2791, allocations: 4 kB / 1.089 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.919e-05/0.2791, allocations: 3.938 kB / 1.089 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002315/0.2794, allocations: 15.98 kB / 1.089 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.369e-05/0.2795, allocations: 27.75 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001227/0.2796, allocations: 7.984 kB / 1.09 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.368e-05/0.2797, allocations: 8 kB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.49e-05/0.2797, allocations: 19.91 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.662e-05/0.2797, allocations: 0 / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.963e-05/0.2798, allocations: 15.98 kB / 1.09 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.905e-05/0.2798, allocations: 8 kB / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.738e-05/0.2799, allocations: 11.88 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001182/0.28, allocations: 31.89 kB / 1.09 GB, free: 15.76 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.28, allocations: 4 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.633e-06/0.28, allocations: 0 / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.48e-06/0.28, allocations: 0 / 1.09 GB, free: 15.75 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004617/0.2805, allocations: 343.4 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.2805, allocations: 15.97 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000167/0.2807, allocations: 16.92 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001097/0.2808, allocations: 168.3 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.233e-05/0.2809, allocations: 384 / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.217e-05/0.2809, allocations: 8.375 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001807/0.2811, allocations: 54.22 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.2811, allocations: 8.188 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.217e-05/0.2811, allocations: 3.938 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.137e-06/0.2811, allocations: 0 / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002007/0.2813, allocations: 55.88 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003672/0.2817, allocations: 261 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001639/0.2819, allocations: 50.48 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/0.282, allocations: 36.83 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.63e-05/0.282, allocations: 4 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.536e-05/0.282, allocations: 34.56 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.152e-06/0.282, allocations: 0 / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0003873/0.2824, allocations: 101.6 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.848e-05/0.2825, allocations: 55.53 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.278e-05/0.2826, allocations: 105.8 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.445e-05/0.2826, allocations: 29.7 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.084e-05/0.2826, allocations: 80.14 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.105e-05/0.2826, allocations: 7.844 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.305e-05/0.2827, allocations: 21.7 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.749e-05/0.2828, allocations: 310.8 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.2829, allocations: 27.97 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.684e-05/0.283, allocations: 23.98 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001865/0.2832, allocations: 52.75 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2832, allocations: 0 / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002179/0.2834, allocations: 85.64 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.12e-05/0.2834, allocations: 4 kB / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.2834, allocations: 3.984 kB / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.2835, allocations: 4 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.909e-05/0.2836, allocations: 7.984 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.2836, allocations: 0 / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.955e-05/0.2836, allocations: 15.98 kB / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.751e-06/0.2836, allocations: 4.031 kB / 1.092 GB, free: 13.57 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 (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.94e-05/0.2837, allocations: 113.7 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.363e-05/0.2838, allocations: 7.906 kB / 1.092 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.782e-05/0.2838, allocations: 3.531 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.2838, allocations: 0 / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.2838, allocations: 0 / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.2838, allocations: 3.984 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001456/0.284, allocations: 169.6 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.284, allocations: 0 / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.499e-05/0.284, allocations: 19.92 kB / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.522e-06/0.284, allocations: 0 / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.302e-06/0.2841, allocations: 0 / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.2841, allocations: 256 / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2841, allocations: 0 / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002526/0.2843, allocations: 179.5 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.913e-05/0.2844, allocations: 89.12 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.173e-05/0.2844, allocations: 0 / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.392e-05/0.2845, allocations: 7.984 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.051e-05/0.2845, allocations: 0 / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-06/0.2845, allocations: 7.938 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.238e-05/0.2846, allocations: 83.28 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2846, allocations: 0 / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002044/0.2848, allocations: 7.906 kB / 1.092 GB, free: 12.79 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 (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.0001024/0.2849, allocations: 103.8 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002375/0.2851, allocations: 51.89 kB / 1.092 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2851, allocations: 4 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.869e-05/0.2852, allocations: 23.97 kB / 1.092 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000254/0.2855, allocations: 9.031 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003324/0.2858, allocations: 121.7 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002432/0.2861, allocations: 0.6768 MB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.942e-05/0.2861, allocations: 0 / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.108e-05/0.2862, allocations: 7.438 kB / 1.093 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of SimCode: time 1.382e-06/0.2862, allocations: 0 / 1.093 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of Templates: time 0.00238/0.2886, allocations: 0.5901 MB / 1.094 GB, free: 11.15 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_PowerLinearized.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches