Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.PowerLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|powerLinearized.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized") translateModel(Buildings.Utilities.Math.Examples.PowerLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|powerLinearized.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.335/2.335, allocations: 393.5 MB / 408.4 MB, free: 10.98 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 172 kB / 0.4902 GB, free: 2.27 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.66/1.66, allocations: 223.1 MB / 0.7992 GB, free: 14.76 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 91.34 kB / 0.9396 GB, free: 1.949 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003829/0.0003829, allocations: 10.22 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3083/0.3087, allocations: 143 MB / 1.229 GB, free: 105.9 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1901/0.4988, allocations: 150 MB / 1.376 GB, free: 3.637 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002937/0.4992, allocations: 75.95 kB / 1.376 GB, free: 3.562 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.002267/0.5014, allocations: 0.774 MB / 1.377 GB, free: 2.785 MB / 0.8698 GB Notification: Performance of FrontEnd: time 4.007e-06/0.5015, allocations: 0 / 1.377 GB, free: 2.785 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.101e-05/0.5015, allocations: 3.938 kB / 1.377 GB, free: 2.781 MB / 0.8698 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.0004282/0.5019, allocations: 347.2 kB / 1.377 GB, free: 2.395 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.502, allocations: 8.031 kB / 1.377 GB, free: 2.387 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001741/0.5022, allocations: 15.98 kB / 1.377 GB, free: 2.371 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001362/0.5023, allocations: 167 kB / 1.377 GB, free: 2.168 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.738e-05/0.5023, allocations: 4 kB / 1.377 GB, free: 2.164 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.428e-06/0.5023, allocations: 4 kB / 1.377 GB, free: 2.16 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002187/0.5026, allocations: 65.61 kB / 1.377 GB, free: 2.09 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.5026, allocations: 0 / 1.377 GB, free: 2.09 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.5026, allocations: 0 / 1.377 GB, free: 2.09 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.157e-06/0.5026, allocations: 4 kB / 1.377 GB, free: 2.086 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002194/0.5028, allocations: 67.94 kB / 1.377 GB, free: 2.02 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004575/0.5033, allocations: 273.9 kB / 1.377 GB, free: 1.703 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001751/0.5035, allocations: 66.55 kB / 1.378 GB, free: 1.629 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.096e-05/0.5035, allocations: 7.922 kB / 1.378 GB, free: 1.621 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.583e-05/0.5036, allocations: 30.56 kB / 1.378 GB, free: 1.582 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.5036, allocations: 0 / 1.378 GB, free: 1.582 MB / 0.8698 GB Notification: Performance of matching and sorting (n=2): time 0.0004484/0.504, allocations: 137.7 kB / 1.378 GB, free: 1.441 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.014e-05/0.5041, allocations: 51.41 kB / 1.378 GB, free: 1.379 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.316e-05/0.5041, allocations: 89 kB / 1.378 GB, free: 1.285 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.655e-05/0.5042, allocations: 33.7 kB / 1.378 GB, free: 1.246 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 4.932e-05/0.5042, allocations: 80.14 kB / 1.378 GB, free: 1.164 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 1.846e-05/0.5043, allocations: 7.891 kB / 1.378 GB, free: 1.156 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.028e-06/0.5043, allocations: 0 / 1.378 GB, free: 1.156 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001444/0.5044, allocations: 322.8 kB / 1.378 GB, free: 0.832 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000108/0.5045, allocations: 32 kB / 1.378 GB, free: 0.8008 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.986e-05/0.5047, allocations: 27.92 kB / 1.378 GB, free: 0.7734 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001038/0.5048, allocations: 39.97 kB / 1.378 GB, free: 0.7344 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.5048, allocations: 0 / 1.378 GB, free: 0.7344 MB / 0.8698 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002379/0.505, allocations: 93.66 kB / 1.378 GB, free: 0.6367 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.5051, allocations: 8 kB / 1.378 GB, free: 0.6289 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.5051, allocations: 0 / 1.378 GB, free: 0.6289 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.5051, allocations: 0 / 1.378 GB, free: 0.6289 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/0.5052, allocations: 16.23 kB / 1.378 GB, free: 0.6133 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.313e-06/0.5052, allocations: 0 / 1.378 GB, free: 0.6133 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.995e-05/0.5053, allocations: 23.95 kB / 1.378 GB, free: 0.5898 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-06/0.5053, allocations: 0 / 1.378 GB, free: 0.5898 MB / 0.8698 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.988e-05/0.5054, allocations: 118.6 kB / 1.379 GB, free: 476 kB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.225e-05/0.5054, allocations: 0 / 1.379 GB, free: 476 kB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.155e-05/0.5055, allocations: 7.516 kB / 1.379 GB, free: 472 kB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-06/0.5055, allocations: 0 / 1.379 GB, free: 472 kB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.5055, allocations: 0 / 1.379 GB, free: 472 kB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.5055, allocations: 4 kB / 1.379 GB, free: 468 kB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001677/0.5057, allocations: 169.5 kB / 1.379 GB, free: 248 kB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.5057, allocations: 4 kB / 1.379 GB, free: 244 kB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.791e-05/0.5058, allocations: 15.98 kB / 1.379 GB, free: 228 kB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.5058, allocations: 0 / 1.379 GB, free: 228 kB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.5058, allocations: 0 / 1.379 GB, free: 228 kB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.5058, allocations: 0 / 1.379 GB, free: 228 kB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.5058, allocations: 0 / 1.379 GB, free: 228 kB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002924/0.5061, allocations: 199.4 kB / 1.379 GB, free: 12 kB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.845e-05/0.5062, allocations: 77.11 kB / 1.379 GB, free: 15.92 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.296e-05/0.5062, allocations: 0 / 1.379 GB, free: 15.92 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.553e-05/0.5063, allocations: 20.02 kB / 1.379 GB, free: 15.9 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.7e-05/0.5063, allocations: 4 kB / 1.379 GB, free: 15.89 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.868e-06/0.5063, allocations: 0 / 1.379 GB, free: 15.89 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 4.862e-05/0.5064, allocations: 83.27 kB / 1.379 GB, free: 15.81 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5064, allocations: 0 / 1.379 GB, free: 15.81 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002008/0.5066, allocations: 4 kB / 1.379 GB, free: 15.81 MB / 0.8855 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001637/0.5068, allocations: 106.6 kB / 1.379 GB, free: 15.7 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002634/0.507, allocations: 63.95 kB / 1.379 GB, free: 15.63 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.507, allocations: 0 / 1.379 GB, free: 15.63 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.000122/0.5072, allocations: 36.03 kB / 1.379 GB, free: 15.6 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002126/0.5074, allocations: 11.95 kB / 1.379 GB, free: 15.59 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003733/0.5078, allocations: 132.9 kB / 1.379 GB, free: 15.43 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003352/0.5081, allocations: 0.677 MB / 1.38 GB, free: 14.73 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.298e-05/0.5082, allocations: 4 kB / 1.38 GB, free: 14.72 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.448e-05/0.5082, allocations: 19.3 kB / 1.38 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of SimCode: time 2.2e-07/0.5082, allocations: 0 / 1.38 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of Templates: time 0.002601/0.5108, allocations: 0.4907 MB / 1.381 GB, free: 14.21 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_PowerLinearized.csv","../files/Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches