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.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.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.009788/0.009788, allocations: 96.69 kB / 15.73 MB, free: 6.055 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.001755/0.001755, allocations: 194.8 kB / 16.67 MB, free: 5.977 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.483/1.483, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.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.519/2.519, allocations: 390.2 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 63.38 kB / 0.9508 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3218/0.3233, allocations: 140.4 MB / 1.088 GB, free: 1.5 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.PowerLinearized): time 0.002553/0.3259, allocations: 1.438 MB / 1.089 GB, free: 52 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0002957/0.3262, allocations: 92.59 kB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.601e-05/0.3263, allocations: 0 / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.667e-05/0.3263, allocations: 3.938 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.141e-05/0.3264, allocations: 3.938 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002068/0.3266, allocations: 15.98 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.358e-05/0.3267, allocations: 23.92 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.3268, allocations: 11.98 kB / 1.089 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.382e-05/0.3268, allocations: 15.92 kB / 1.089 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.004e-05/0.3269, allocations: 15.92 kB / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.388e-05/0.3269, allocations: 0 / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.52e-05/0.327, allocations: 19.98 kB / 1.09 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.256e-05/0.327, allocations: 0 / 1.09 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.54e-05/0.327, allocations: 7.938 kB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001241/0.3271, allocations: 43.81 kB / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.3272, allocations: 0 / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.793e-06/0.3272, allocations: 0 / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.027e-06/0.3272, allocations: 4 kB / 1.09 GB, free: 15.79 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.0004855/0.3277, allocations: 339.4 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.3277, allocations: 12.03 kB / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00019/0.3279, allocations: 12.92 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000138/0.3281, allocations: 164.3 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.024e-05/0.3281, allocations: 8.297 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.576e-05/0.3281, allocations: 4.375 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002194/0.3283, allocations: 66.22 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.3284, allocations: 192 / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.54e-05/0.3284, allocations: 3.938 kB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.3284, allocations: 0 / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002124/0.3286, allocations: 47.94 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004504/0.3291, allocations: 257 kB / 1.09 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001785/0.3293, allocations: 58.42 kB / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.3294, allocations: 32.89 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.725e-05/0.3294, allocations: 0 / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.007e-05/0.3294, allocations: 30.56 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 8.52e-07/0.3294, allocations: 4 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0004314/0.3299, allocations: 101.6 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.304e-05/0.3299, allocations: 59.28 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.418e-05/0.33, allocations: 105.8 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.455e-05/0.3301, allocations: 25.7 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6e-05/0.3301, allocations: 92.22 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.298e-05/0.3302, allocations: 3.953 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.672e-05/0.3302, allocations: 21.64 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.3303, allocations: 314.8 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001137/0.3305, allocations: 27.97 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.934e-05/0.3306, allocations: 19.98 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001844/0.3307, allocations: 48.88 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3308, allocations: 0 / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002296/0.331, allocations: 85.58 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.331, allocations: 7.938 kB / 1.091 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.331, allocations: 0 / 1.091 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.331, allocations: 8.031 kB / 1.091 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.3312, allocations: 7.984 kB / 1.091 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.3312, allocations: 7.984 kB / 1.091 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.195e-05/0.3312, allocations: 11.92 kB / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.561e-06/0.3313, allocations: 0 / 1.091 GB, free: 13.62 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 8.643e-05/0.3313, allocations: 113.8 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.253e-05/0.3314, allocations: 4 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.061e-05/0.3314, allocations: 3.531 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.3314, allocations: 4 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.3314, allocations: 256 / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.279e-06/0.3314, allocations: 3.984 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001642/0.3316, allocations: 173.6 kB / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.3316, allocations: 0 / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.561e-05/0.3317, allocations: 11.98 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.3317, allocations: 0 / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.3317, allocations: 0 / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.3317, allocations: 0 / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.3317, allocations: 4 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002802/0.332, allocations: 179.3 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.64e-05/0.3321, allocations: 85.09 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.315e-05/0.3321, allocations: 0 / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.259e-05/0.3322, allocations: 11.98 kB / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.178e-05/0.3322, allocations: 3.938 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-06/0.3322, allocations: 8.031 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.435e-05/0.3323, allocations: 79.28 kB / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3323, allocations: 0 / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002132/0.3325, allocations: 8 kB / 1.092 GB, free: 12.84 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.0001137/0.3326, allocations: 99.77 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000254/0.3329, allocations: 55.95 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.3329, allocations: 0 / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001121/0.333, allocations: 27.91 kB / 1.092 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002816/0.3333, allocations: 11.88 kB / 1.092 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003397/0.3337, allocations: 121.5 kB / 1.092 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000276/0.334, allocations: 0.6808 MB / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.408e-05/0.334, allocations: 4 kB / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.233e-05/0.334, allocations: 7.438 kB / 1.093 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of SimCode: time 2.41e-07/0.334, allocations: 0 / 1.093 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of Templates: time 0.0028/0.3368, allocations: 0.5762 MB / 1.094 GB, free: 11.21 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