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/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.961/1.961, allocations: 387.2 MB / 394.5 MB, free: 13.7 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.001012/0.001012, allocations: 173.3 kB / 487 MB, free: 5.41 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.331/1.331, allocations: 221.3 MB / 0.7819 GB, free: 1.387 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009135/0.0009135, allocations: 92.61 kB / 0.9213 GB, free: 2.645 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 8.115e-06/8.156e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2573/0.2573, allocations: 142.3 MB / 1.205 GB, free: 26.29 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7213/0.9787, allocations: 148.4 MB / 1.35 GB, free: 15.86 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002592/0.979, allocations: 70.83 kB / 1.35 GB, free: 15.86 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.002081/0.9811, allocations: 496.3 kB / 1.351 GB, free: 15.83 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 8.136e-06/0.9811, allocations: 1.281 kB / 1.351 GB, free: 15.83 MB / 0.8073 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.0002961/0.9814, allocations: 336.2 kB / 1.351 GB, free: 15.48 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.9815, allocations: 9.594 kB / 1.351 GB, free: 15.48 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.763e-05/0.9815, allocations: 7.344 kB / 1.351 GB, free: 15.48 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001034/0.9816, allocations: 166.4 kB / 1.351 GB, free: 15.28 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.178e-05/0.9816, allocations: 1.688 kB / 1.351 GB, free: 15.28 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.014e-05/0.9817, allocations: 0 / 1.351 GB, free: 15.28 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.664e-05/0.9817, allocations: 15.75 kB / 1.351 GB, free: 15.28 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.195e-05/0.9818, allocations: 35.69 kB / 1.351 GB, free: 15.25 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.154e-06/0.9818, allocations: 0 / 1.351 GB, free: 15.25 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.898e-06/0.9818, allocations: 5.125 kB / 1.351 GB, free: 15.24 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.9818, allocations: 1.453 kB / 1.351 GB, free: 15.24 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000348/0.9822, allocations: 249.8 kB / 1.351 GB, free: 15 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 5.054e-05/0.9823, allocations: 29.67 kB / 1.352 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.577e-05/0.9823, allocations: 11.45 kB / 1.352 GB, free: 14.97 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002684/0.9826, allocations: 413.3 kB / 1.352 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.559e-05/0.9826, allocations: 37.38 kB / 1.352 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.9826, allocations: 0 / 1.352 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of matching and sorting (n=2): time 0.0001794/0.9828, allocations: 40.7 kB / 1.352 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.582e-05/0.9828, allocations: 55.34 kB / 1.352 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.07e-05/0.9829, allocations: 96.3 kB / 1.352 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 7.544e-06/0.9829, allocations: 25.7 kB / 1.352 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.122e-05/0.9829, allocations: 81.2 kB / 1.352 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.555e-05/0.9829, allocations: 10.44 kB / 1.352 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.427e-06/0.9829, allocations: 0 / 1.352 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.568e-05/0.983, allocations: 325.9 kB / 1.353 GB, free: 13.83 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.566e-05/0.983, allocations: 2.531 kB / 1.353 GB, free: 13.83 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.665e-05/0.983, allocations: 6.938 kB / 1.353 GB, free: 13.83 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.099e-05/0.9831, allocations: 6.188 kB / 1.353 GB, free: 13.83 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.9831, allocations: 0 / 1.353 GB, free: 13.83 MB / 0.8073 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.611e-05/0.9832, allocations: 42.36 kB / 1.353 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.9832, allocations: 8.312 kB / 1.353 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.9832, allocations: 0.625 kB / 1.353 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/0.9832, allocations: 4.094 kB / 1.353 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.863e-05/0.9833, allocations: 13.02 kB / 1.353 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.626e-06/0.9833, allocations: 0 / 1.353 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.583e-05/0.9834, allocations: 13.17 kB / 1.353 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.012e-06/0.9834, allocations: 5.312 kB / 1.353 GB, free: 13.79 MB / 0.8073 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 () * 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 4.217e-05/0.9834, allocations: 114.5 kB / 1.353 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.706e-05/0.9835, allocations: 3.375 kB / 1.353 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001195/0.9836, allocations: 56.27 kB / 1.353 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.9836, allocations: 0 / 1.353 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.9836, allocations: 1.312 kB / 1.353 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.746e-06/0.9836, allocations: 1.375 kB / 1.353 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.885e-05/0.9837, allocations: 136 kB / 1.353 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.9837, allocations: 0 / 1.353 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.703e-05/0.9838, allocations: 16.56 kB / 1.353 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.9838, allocations: 1.375 kB / 1.353 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-06/0.9838, allocations: 0 / 1.353 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.9838, allocations: 1.078 kB / 1.353 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.9838, allocations: 5.281 kB / 1.353 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001063/0.984, allocations: 138.7 kB / 1.353 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.009e-05/0.984, allocations: 87.48 kB / 1.353 GB, free: 13.23 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.489e-05/0.984, allocations: 0.9688 kB / 1.353 GB, free: 13.23 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.919e-05/0.9841, allocations: 15.03 kB / 1.353 GB, free: 13.23 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.408e-05/0.9842, allocations: 2.5 kB / 1.353 GB, free: 13.23 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.197e-06/0.9842, allocations: 1.031 kB / 1.353 GB, free: 13.23 MB / 0.8073 GB Notification: Performance of sort global known variables: time 2.555e-05/0.9842, allocations: 83.84 kB / 1.353 GB, free: 13.16 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002078/0.9844, allocations: 6.688 kB / 1.353 GB, free: 13.16 MB / 0.8073 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 () * 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.0001271/0.9845, allocations: 107.7 kB / 1.353 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 7.077e-05/0.9846, allocations: 12.5 kB / 1.353 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.293e-06/0.9846, allocations: 1.031 kB / 1.353 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 2.318e-05/0.9847, allocations: 11.78 kB / 1.353 GB, free: 13.06 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001652/0.9848, allocations: 6.156 kB / 1.353 GB, free: 13.06 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002079/0.985, allocations: 58.78 kB / 1.353 GB, free: 13 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000142/0.9852, allocations: 0.6927 MB / 1.354 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of SimCode: time 2.5e-07/0.9852, allocations: 0.8438 kB / 1.354 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of Templates: time 0.00247/0.9877, allocations: 0.5578 MB / 1.355 GB, free: 12.24 MB / 0.8073 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","../files/Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches