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.0009976/0.0009977, allocations: 98.64 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00125/0.001251, allocations: 182.3 kB / 16.92 MB, free: 6.918 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.397/1.397, allocations: 223.3 MB / 241 MB, free: 5.363 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.454/2.454, allocations: 390.9 MB / 0.667 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003402/0.0003402, allocations: 11.98 kB / 0.8166 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.674/0.6744, allocations: 142.4 MB / 0.9557 GB, free: 7.957 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.PowerLinearized): time 0.001317/0.6757, allocations: 1.161 MB / 0.9568 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002666/0.676, allocations: 86.28 kB / 0.9569 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.107e-05/0.6761, allocations: 0 / 0.9569 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.794e-05/0.6761, allocations: 9.219 kB / 0.9569 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.83e-05/0.6761, allocations: 3.984 kB / 0.9569 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001452/0.6763, allocations: 11.27 kB / 0.9569 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.438e-05/0.6763, allocations: 25.98 kB / 0.957 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.648e-05/0.6764, allocations: 7.344 kB / 0.957 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.871e-05/0.6765, allocations: 7.016 kB / 0.957 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.6e-05/0.6765, allocations: 11 kB / 0.957 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.23e-05/0.6765, allocations: 1.219 kB / 0.957 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.705e-05/0.6766, allocations: 15.95 kB / 0.957 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.436e-05/0.6766, allocations: 8.984 kB / 0.957 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.998e-05/0.6767, allocations: 35.95 kB / 0.9571 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.012e-05/0.6767, allocations: 18.23 kB / 0.9571 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.6767, allocations: 0 / 0.9571 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.512e-06/0.6767, allocations: 0 / 0.9571 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.396e-06/0.6768, allocations: 3.938 kB / 0.9571 GB, free: 6.848 MB / 0.7169 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.00033/0.6771, allocations: 350.9 kB / 0.9574 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.6771, allocations: 10.25 kB / 0.9574 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001569/0.6773, allocations: 23.22 kB / 0.9574 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.523e-05/0.6774, allocations: 169.2 kB / 0.9576 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.811e-05/0.6774, allocations: 1.375 kB / 0.9576 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.029e-05/0.6774, allocations: 5.469 kB / 0.9576 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001845/0.6776, allocations: 68.53 kB / 0.9577 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.6776, allocations: 1.219 kB / 0.9577 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.022e-05/0.6776, allocations: 3.938 kB / 0.9577 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.399e-06/0.6776, allocations: 1 kB / 0.9577 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002232/0.6779, allocations: 63.61 kB / 0.9577 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003032/0.6782, allocations: 264.3 kB / 0.958 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001745/0.6784, allocations: 64.36 kB / 0.9581 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.6785, allocations: 37.12 kB / 0.9581 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.513e-05/0.6785, allocations: 3.984 kB / 0.9581 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.516e-05/0.6785, allocations: 35.62 kB / 0.9581 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.6785, allocations: 1.125 kB / 0.9581 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0004278/0.679, allocations: 124.6 kB / 0.9582 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.92e-05/0.679, allocations: 51.41 kB / 0.9583 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.658e-05/0.6791, allocations: 105.3 kB / 0.9584 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.997e-06/0.6791, allocations: 29.81 kB / 0.9584 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.558e-05/0.6791, allocations: 93.52 kB / 0.9585 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.554e-05/0.6791, allocations: 1.438 kB / 0.9585 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.173e-05/0.6792, allocations: 11.16 kB / 0.9585 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.077e-05/0.6792, allocations: 314.8 kB / 0.9588 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.6793, allocations: 32.72 kB / 0.9589 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001027/0.6794, allocations: 35.31 kB / 0.9589 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002047/0.6796, allocations: 64.25 kB / 0.959 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.6797, allocations: 5.156 kB / 0.959 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002437/0.6799, allocations: 104.8 kB / 0.9591 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.6799, allocations: 5.75 kB / 0.9591 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.6799, allocations: 0 / 0.9591 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.68, allocations: 0 / 0.9591 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.6801, allocations: 15.61 kB / 0.9591 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.531e-06/0.6801, allocations: 3.984 kB / 0.9591 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.587e-05/0.6801, allocations: 16.8 kB / 0.9591 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.28e-06/0.6802, allocations: 0 / 0.9591 GB, free: 4.938 MB / 0.7169 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 5.015e-05/0.6802, allocations: 116.2 kB / 0.9592 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.499e-05/0.6802, allocations: 1.375 kB / 0.9592 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.485e-05/0.6803, allocations: 8.922 kB / 0.9592 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.6803, allocations: 0 / 0.9592 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.6803, allocations: 5.594 kB / 0.9592 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-06/0.6803, allocations: 0 / 0.9592 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001191/0.6804, allocations: 167.5 kB / 0.9594 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.6804, allocations: 4 kB / 0.9594 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.08e-05/0.6805, allocations: 15.61 kB / 0.9594 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.6805, allocations: 3.984 kB / 0.9594 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.532e-06/0.6805, allocations: 0 / 0.9594 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.6805, allocations: 1.5 kB / 0.9594 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.6805, allocations: 0 / 0.9594 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002735/0.6808, allocations: 199.8 kB / 0.9596 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.685e-05/0.6808, allocations: 78.86 kB / 0.9597 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.398e-05/0.6809, allocations: 0 / 0.9597 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.556e-05/0.681, allocations: 20.98 kB / 0.9597 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.485e-05/0.681, allocations: 0.7812 kB / 0.9597 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.599e-06/0.681, allocations: 1.625 kB / 0.9597 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.421e-05/0.681, allocations: 84.05 kB / 0.9598 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6811, allocations: 0 / 0.9598 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002175/0.6813, allocations: 4.656 kB / 0.9598 GB, free: 4.23 MB / 0.7169 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 8.924e-05/0.6814, allocations: 100.2 kB / 0.9599 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002585/0.6816, allocations: 65.7 kB / 0.9599 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.6816, allocations: 1.688 kB / 0.9599 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001157/0.6818, allocations: 37.19 kB / 0.96 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002651/0.682, allocations: 10.28 kB / 0.96 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00031/0.6824, allocations: 161.9 kB / 0.9601 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.902e-05/0.6825, allocations: 0.6785 MB / 0.9608 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.161e-05/0.6825, allocations: 9.25 kB / 0.9608 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of SimCode: time 4.11e-07/0.6825, allocations: 0 / 0.9608 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of Templates: time 0.001686/0.6842, allocations: 0.6269 MB / 0.9614 GB, free: 2.914 MB / 0.7169 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches