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.009238/0.009238, allocations: 99.05 kB / 15.73 MB, free: 6.004 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.001864/0.001864, allocations: 199.4 kB / 16.68 MB, free: 5.934 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.514/1.514, allocations: 222.9 MB / 240.4 MB, free: 4.336 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.651/2.651, allocations: 390.2 MB / 0.6648 GB, free: 200 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 62.78 kB / 0.9508 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3714/0.3727, allocations: 140.4 MB / 1.088 GB, free: 1.531 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.PowerLinearized): time 0.003009/0.3757, allocations: 1.439 MB / 1.089 GB, free: 80 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0003812/0.3761, allocations: 104.7 kB / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.972e-05/0.3762, allocations: 0 / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.525e-05/0.3762, allocations: 3.938 kB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.891e-05/0.3763, allocations: 3.938 kB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002578/0.3766, allocations: 15.98 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001323/0.3767, allocations: 27.92 kB / 1.089 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001457/0.3769, allocations: 8 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.84e-05/0.377, allocations: 7.812 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.792e-05/0.377, allocations: 11.94 kB / 1.089 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.276e-05/0.377, allocations: 7.984 kB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.08e-05/0.3771, allocations: 15.98 kB / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.516e-05/0.3771, allocations: 7.984 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.601e-05/0.3772, allocations: 7.938 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001799/0.3774, allocations: 27.91 kB / 1.09 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.3774, allocations: 4 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of FrontEnd: time 4.087e-06/0.3774, allocations: 3.984 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.269e-05/0.3774, allocations: 0 / 1.09 GB, free: 15.82 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.0006184/0.378, allocations: 343.4 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.3781, allocations: 8.031 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002266/0.3783, allocations: 12.92 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001447/0.3785, allocations: 168.3 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.255e-05/0.3785, allocations: 4.375 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.017e-05/0.3785, allocations: 4.375 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002492/0.3788, allocations: 66.09 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.133e-05/0.3788, allocations: 192 / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.697e-05/0.3789, allocations: 3.938 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.3789, allocations: 0 / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002343/0.3791, allocations: 51.94 kB / 1.09 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006085/0.3797, allocations: 268.9 kB / 1.09 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002187/0.38, allocations: 58.42 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001199/0.3801, allocations: 28.89 kB / 1.091 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.408e-05/0.3801, allocations: 0 / 1.091 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.12e-05/0.3802, allocations: 34.56 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.3802, allocations: 7.938 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0004951/0.3807, allocations: 93.62 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.936e-05/0.3808, allocations: 55.41 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001225/0.3809, allocations: 114 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.471e-05/0.3809, allocations: 25.7 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.125e-05/0.381, allocations: 84.14 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.646e-05/0.381, allocations: 7.844 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.18e-05/0.3811, allocations: 21.66 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001567/0.3812, allocations: 314.8 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/0.3813, allocations: 19.98 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.315e-05/0.3814, allocations: 27.97 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001792/0.3816, allocations: 52.81 kB / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3816, allocations: 256 / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002223/0.3819, allocations: 81.58 kB / 1.091 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.74e-05/0.3819, allocations: 9.812 kB / 1.091 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.517e-06/0.3819, allocations: 4 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.576e-05/0.3819, allocations: 0 / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001287/0.3821, allocations: 15.98 kB / 1.091 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.3821, allocations: 3.938 kB / 1.091 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.623e-05/0.3822, allocations: 4 kB / 1.091 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.3822, allocations: 7.984 kB / 1.091 GB, free: 13.63 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 9.953e-05/0.3823, allocations: 109.8 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.576e-05/0.3823, allocations: 7.906 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.572e-05/0.3824, allocations: 11.53 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.3824, allocations: 0 / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.3824, allocations: 0 / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.3824, allocations: 0 / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002007/0.3826, allocations: 165.6 kB / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3826, allocations: 0 / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.225e-05/0.3827, allocations: 11.98 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.3827, allocations: 0 / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.031e-05/0.3827, allocations: 0 / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.31e-07/0.3827, allocations: 7.938 kB / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3827, allocations: 0 / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003379/0.3831, allocations: 183.4 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.92e-05/0.3831, allocations: 77.11 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.844e-05/0.3832, allocations: 3.938 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.314e-05/0.3833, allocations: 16.02 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.546e-05/0.3833, allocations: 0 / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.363e-06/0.3833, allocations: 3.984 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.142e-05/0.3834, allocations: 83.28 kB / 1.092 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3834, allocations: 0 / 1.092 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002188/0.3836, allocations: 11.91 kB / 1.092 GB, free: 12.86 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.0001403/0.3838, allocations: 95.78 kB / 1.092 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002462/0.384, allocations: 55.94 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.384, allocations: 0 / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.561e-05/0.3841, allocations: 23.98 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003398/0.3845, allocations: 11.88 kB / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000405/0.3849, allocations: 124.7 kB / 1.092 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002335/0.3851, allocations: 0.6729 MB / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.184e-05/0.3852, allocations: 7.984 kB / 1.093 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.4e-05/0.3852, allocations: 11.44 kB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of SimCode: time 2.31e-07/0.3852, allocations: 0 / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of Templates: time 0.002684/0.3879, allocations: 0.5764 MB / 1.094 GB, free: 11.23 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