Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Utilities.Math.Functions.Examples.PowerLinearized,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.PowerLinearized") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.PowerLinearized,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.PowerLinearized") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009681/0.0009682, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001144/0.001144, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.212/1.212, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001796/0.001796, allocations: 274.7 kB / 291.3 MB, free: 1.996 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7881/0.7881, allocations: 144.6 MB / 487 MB, free: 7.211 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006146/0.0006147, allocations: 16.64 kB / 0.5683 GB, free: 38.25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1449/0.1455, allocations: 83.08 MB / 0.6494 GB, free: 3.648 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.PowerLinearized): time 0.0005749/0.1461, allocations: 317.1 kB / 0.6497 GB, free: 3.34 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002076/0.1463, allocations: 85.03 kB / 0.6498 GB, free: 3.258 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.049e-05/0.1463, allocations: 0 / 0.6498 GB, free: 3.258 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 8.156e-06/0.1464, allocations: 0 / 0.6498 GB, free: 3.258 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.266e-05/0.1464, allocations: 4 kB / 0.6498 GB, free: 3.254 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001252/0.1465, allocations: 13.92 kB / 0.6498 GB, free: 3.242 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 3.709e-05/0.1466, allocations: 3.938 kB / 0.6498 GB, free: 3.238 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.451e-05/0.1466, allocations: 0 / 0.6498 GB, free: 3.238 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.638e-05/0.1466, allocations: 7.984 kB / 0.6499 GB, free: 3.23 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.213e-05/0.1467, allocations: 8.578 kB / 0.6499 GB, free: 3.223 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.045e-06/0.1467, allocations: 4 kB / 0.6499 GB, free: 3.219 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.339e-05/0.1468, allocations: 8.609 kB / 0.6499 GB, free: 3.211 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.034e-06/0.1468, allocations: 0.5312 kB / 0.6499 GB, free: 3.211 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.483e-05/0.1468, allocations: 41.58 kB / 0.6499 GB, free: 3.164 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 4.382e-05/0.1469, allocations: 4.609 kB / 0.6499 GB, free: 3.16 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.704e-06/0.1469, allocations: 0 / 0.6499 GB, free: 3.16 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1469, allocations: 5.656 kB / 0.6499 GB, free: 3.156 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.115e-06/0.1469, allocations: 0 / 0.6499 GB, free: 3.156 MB / 446.1 MB 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.0002486/0.1471, allocations: 311.4 kB / 0.6502 GB, free: 2.805 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.967e-05/0.1472, allocations: 9.031 kB / 0.6502 GB, free: 2.797 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001357/0.1473, allocations: 8.641 kB / 0.6502 GB, free: 2.789 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.114e-05/0.1474, allocations: 167 kB / 0.6504 GB, free: 2.586 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.669e-05/0.1474, allocations: 4.547 kB / 0.6504 GB, free: 2.582 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.807e-06/0.1475, allocations: 5.5 kB / 0.6504 GB, free: 2.578 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001019/0.1476, allocations: 37.69 kB / 0.6504 GB, free: 2.535 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.821e-06/0.1476, allocations: 0 / 0.6504 GB, free: 2.535 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.903e-06/0.1476, allocations: 0 / 0.6504 GB, free: 2.535 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.427e-06/0.1476, allocations: 0.6562 kB / 0.6504 GB, free: 2.535 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.325e-05/0.1477, allocations: 16.73 kB / 0.6505 GB, free: 2.52 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001297/0.1478, allocations: 154.4 kB / 0.6506 GB, free: 2.32 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001384/0.148, allocations: 41.06 kB / 0.6506 GB, free: 2.273 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.497e-05/0.148, allocations: 8.016 kB / 0.6507 GB, free: 2.266 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.677e-05/0.148, allocations: 30.56 kB / 0.6507 GB, free: 2.227 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 9.11e-07/0.148, allocations: 0.7188 kB / 0.6507 GB, free: 2.227 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.000178/0.1482, allocations: 54.95 kB / 0.6507 GB, free: 2.168 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.549e-05/0.1482, allocations: 51.41 kB / 0.6508 GB, free: 2.105 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.914e-05/0.1483, allocations: 94.45 kB / 0.6509 GB, free: 2.004 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.131e-05/0.1483, allocations: 29.7 kB / 0.6509 GB, free: 1.969 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.794e-05/0.1483, allocations: 80.67 kB / 0.651 GB, free: 1.887 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.508e-05/0.1483, allocations: 8.406 kB / 0.651 GB, free: 1.879 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.647e-06/0.1484, allocations: 4.531 kB / 0.651 GB, free: 1.875 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.882e-05/0.1485, allocations: 315.5 kB / 0.6513 GB, free: 1.559 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.766e-05/0.1485, allocations: 8.875 kB / 0.6513 GB, free: 1.551 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.97e-05/0.1485, allocations: 7.984 kB / 0.6513 GB, free: 1.543 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.717e-05/0.1486, allocations: 4.969 kB / 0.6513 GB, free: 1.539 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.1486, allocations: 0 / 0.6513 GB, free: 1.539 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 9.906e-05/0.1487, allocations: 47.28 kB / 0.6514 GB, free: 1.488 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.1487, allocations: 15.88 kB / 0.6514 GB, free: 1.473 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.1487, allocations: 336 / 0.6514 GB, free: 1.473 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.706e-06/0.1487, allocations: 0 / 0.6514 GB, free: 1.473 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000352/0.1491, allocations: 42.25 kB / 0.6514 GB, free: 1.434 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001112/0.1502, allocations: 1.326 MB / 0.6527 GB, free: 15.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.013e-05/0.1503, allocations: 8.312 kB / 0.6527 GB, free: 15.98 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.208e-06/0.1503, allocations: 0 / 0.6527 GB, free: 15.98 MB / 462.1 MB 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 (3): * 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): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 5.922e-05/0.1503, allocations: 109.8 kB / 0.6528 GB, free: 15.86 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.888e-06/0.1503, allocations: 7.891 kB / 0.6528 GB, free: 15.85 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.727e-05/0.1504, allocations: 15.44 kB / 0.6528 GB, free: 15.83 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-06/0.1504, allocations: 1.5 kB / 0.6528 GB, free: 15.83 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.82e-07/0.1504, allocations: 0 / 0.6528 GB, free: 15.83 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.1504, allocations: 0 / 0.6528 GB, free: 15.83 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.379e-05/0.1505, allocations: 149.7 kB / 0.653 GB, free: 15.63 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.1505, allocations: 0.6562 kB / 0.653 GB, free: 15.63 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003391/0.1508, allocations: 46.73 kB / 0.653 GB, free: 15.59 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.1508, allocations: 0 / 0.653 GB, free: 15.59 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.095e-06/0.1508, allocations: 11.95 kB / 0.653 GB, free: 15.58 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009794/0.1518, allocations: 1.314 MB / 0.6543 GB, free: 14.14 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.1518, allocations: 3.984 kB / 0.6543 GB, free: 14.13 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001144/0.152, allocations: 69.16 kB / 0.6544 GB, free: 14.05 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.504e-05/0.152, allocations: 77.11 kB / 0.6545 GB, free: 13.95 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.486e-06/0.152, allocations: 8.188 kB / 0.6545 GB, free: 13.95 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.705e-05/0.1521, allocations: 11.97 kB / 0.6545 GB, free: 13.93 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.49e-05/0.1521, allocations: 0 / 0.6545 GB, free: 13.93 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.599e-06/0.1521, allocations: 4 kB / 0.6545 GB, free: 13.93 MB / 462.1 MB Notification: Performance of sorting global known variables: time 2.801e-05/0.1521, allocations: 75.28 kB / 0.6546 GB, free: 13.86 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1521, allocations: 0 / 0.6546 GB, free: 13.86 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0001767/0.1523, allocations: 0 / 0.6546 GB, free: 13.86 MB / 462.1 MB 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 (3): * 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): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.904e-05/0.1524, allocations: 103.2 kB / 0.6547 GB, free: 13.74 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0004069/0.1528, allocations: 63.91 kB / 0.6547 GB, free: 13.68 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1528, allocations: 0 / 0.6547 GB, free: 13.68 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002187/0.153, allocations: 43.95 kB / 0.6548 GB, free: 13.64 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.636e-05/0.1531, allocations: 0 / 0.6548 GB, free: 13.64 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002312/0.1534, allocations: 90.97 kB / 0.6549 GB, free: 13.52 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001971/0.1536, allocations: 0.677 MB / 0.6555 GB, free: 12.82 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 2.856e-05/0.1536, allocations: 0 / 0.6555 GB, free: 12.82 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.303e-05/0.1536, allocations: 19.44 kB / 0.6555 GB, free: 12.8 MB / 462.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1537, allocations: 3.938 kB / 0.6555 GB, free: 12.79 MB / 462.1 MB Notification: Performance of Templates: time 0.001918/0.1556, allocations: 383.5 kB / 0.6559 GB, free: 12.43 MB / 462.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.PowerLinearized.makefile Environment - environmentSimulation: (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.PowerLinearized.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.PowerLinearized.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.PowerLinearized.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.PowerLinearized.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.PowerLinearized -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.PowerLinearized.pipe 2>&1) Environment - environmentSimulation: