Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.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: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001021/0.001022, allocations: 99.94 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.0009519/0.0009519, 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.433/1.433, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001975/0.001975, allocations: 271 kB / 291.2 MB, free: 2.008 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.7962/0.7962, allocations: 144.7 MB / 487 MB, free: 7.211 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004399/0.00044, allocations: 14.97 kB / 0.5684 GB, free: 38.3 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1748/0.1752, allocations: 83.09 MB / 0.6495 GB, free: 3.555 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower): time 0.00141/0.1767, allocations: 1.154 MB / 0.6507 GB, free: 2.391 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005592/0.1773, allocations: 355.2 kB / 0.651 GB, free: 2.043 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.181e-05/0.1773, allocations: 3.938 kB / 0.651 GB, free: 2.039 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.343e-05/0.1773, allocations: 0 / 0.651 GB, free: 2.039 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.688e-05/0.1773, allocations: 3.938 kB / 0.651 GB, free: 2.035 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002896/0.1776, allocations: 65.41 kB / 0.6511 GB, free: 1.973 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.687e-05/0.1777, allocations: 15.98 kB / 0.6511 GB, free: 1.957 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.718e-05/0.1778, allocations: 9.016 kB / 0.6511 GB, free: 1.949 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.361e-05/0.1778, allocations: 4 kB / 0.6511 GB, free: 1.945 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.82e-05/0.1779, allocations: 16.52 kB / 0.6511 GB, free: 1.93 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.096e-05/0.1779, allocations: 4.469 kB / 0.6511 GB, free: 1.926 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004672/0.1783, allocations: 255.7 kB / 0.6514 GB, free: 1.676 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.297e-06/0.1784, allocations: 6.062 kB / 0.6514 GB, free: 1.672 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.399e-05/0.1784, allocations: 29.64 kB / 0.6514 GB, free: 1.637 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000124/0.1785, allocations: 67.86 kB / 0.6515 GB, free: 1.57 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.914e-06/0.1785, allocations: 4 kB / 0.6515 GB, free: 1.566 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1785, allocations: 0 / 0.6515 GB, free: 1.566 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.587e-06/0.1786, allocations: 0.7188 kB / 0.6515 GB, free: 1.566 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.0003875/0.1789, allocations: 364.6 kB / 0.6518 GB, free: 1.164 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.179, allocations: 13.53 kB / 0.6518 GB, free: 1.152 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.113e-05/0.179, allocations: 34.55 kB / 0.6519 GB, free: 1.109 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.124e-05/0.1791, allocations: 0 / 0.6519 GB, free: 1.109 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001108/0.1792, allocations: 167 kB / 0.652 GB, free: 0.9062 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.023e-05/0.1792, allocations: 4.609 kB / 0.652 GB, free: 0.9023 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.254e-06/0.1792, allocations: 0.75 kB / 0.652 GB, free: 0.9023 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001649/0.1794, allocations: 55.48 kB / 0.6521 GB, free: 0.8438 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.1794, allocations: 3.938 kB / 0.6521 GB, free: 0.8398 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.1794, allocations: 8 kB / 0.6521 GB, free: 0.832 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.1794, allocations: 5.469 kB / 0.6521 GB, free: 0.8281 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001727/0.1796, allocations: 45.83 kB / 0.6521 GB, free: 0.7852 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002815/0.1799, allocations: 245.6 kB / 0.6524 GB, free: 0.4961 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001269/0.18, allocations: 48.14 kB / 0.6524 GB, free: 452 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006226/0.1807, allocations: 460.8 kB / 0.6529 GB, free: 15.9 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.1807, allocations: 35.38 kB / 0.6529 GB, free: 15.86 MB / 462.1 MB Notification: Performance of pre-optimization done (n=2): time 1.212e-06/0.1807, allocations: 4.688 kB / 0.6529 GB, free: 15.86 MB / 462.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003736/0.1811, allocations: 101.7 kB / 0.653 GB, free: 15.75 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.78e-05/0.1811, allocations: 51.41 kB / 0.653 GB, free: 15.69 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.299e-05/0.1812, allocations: 106.5 kB / 0.6531 GB, free: 15.58 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.203e-05/0.1812, allocations: 25.7 kB / 0.6532 GB, free: 15.55 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.127e-05/0.1813, allocations: 85.95 kB / 0.6532 GB, free: 15.46 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.434e-05/0.1813, allocations: 7.906 kB / 0.6533 GB, free: 15.45 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.855e-06/0.1813, allocations: 0 / 0.6533 GB, free: 15.45 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.602e-05/0.1814, allocations: 319.3 kB / 0.6536 GB, free: 15.13 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.816e-05/0.1815, allocations: 27.92 kB / 0.6536 GB, free: 15.11 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.107e-05/0.1816, allocations: 15.98 kB / 0.6536 GB, free: 15.09 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.701e-05/0.1817, allocations: 29.05 kB / 0.6536 GB, free: 15.07 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1817, allocations: 0 / 0.6536 GB, free: 15.07 MB / 462.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000214/0.1819, allocations: 75.59 kB / 0.6537 GB, free: 14.99 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/0.1819, allocations: 12 kB / 0.6537 GB, free: 14.98 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-06/0.1819, allocations: 0 / 0.6537 GB, free: 14.98 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.097e-06/0.182, allocations: 0 / 0.6537 GB, free: 14.98 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.168e-05/0.182, allocations: 11.98 kB / 0.6537 GB, free: 14.96 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.399e-06/0.182, allocations: 0 / 0.6537 GB, free: 14.96 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.999e-05/0.1821, allocations: 12.23 kB / 0.6537 GB, free: 14.95 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.082e-06/0.1821, allocations: 4 kB / 0.6537 GB, free: 14.95 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 (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 6.687e-05/0.1822, allocations: 117.8 kB / 0.6539 GB, free: 14.82 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.763e-05/0.1822, allocations: 7.906 kB / 0.6539 GB, free: 14.82 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002351/0.1825, allocations: 85.12 kB / 0.6539 GB, free: 14.73 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-06/0.1825, allocations: 0 / 0.6539 GB, free: 14.73 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1825, allocations: 4.031 kB / 0.6539 GB, free: 14.72 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.1825, allocations: 3.984 kB / 0.6539 GB, free: 14.72 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001441/0.1827, allocations: 165.6 kB / 0.6541 GB, free: 14.51 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1827, allocations: 3.938 kB / 0.6541 GB, free: 14.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.104e-05/0.1827, allocations: 11.98 kB / 0.6541 GB, free: 14.49 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.1827, allocations: 0 / 0.6541 GB, free: 14.49 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.64e-06/0.1828, allocations: 0 / 0.6541 GB, free: 14.49 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.1828, allocations: 0 / 0.6541 GB, free: 14.49 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.1828, allocations: 4 kB / 0.6541 GB, free: 14.49 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000246/0.183, allocations: 175.5 kB / 0.6543 GB, free: 14.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.261e-05/0.1831, allocations: 88.91 kB / 0.6544 GB, free: 14.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.3e-05/0.1831, allocations: 4 kB / 0.6544 GB, free: 14.19 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.221e-05/0.1832, allocations: 12.02 kB / 0.6544 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.205e-05/0.1832, allocations: 0 / 0.6544 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.226e-06/0.1832, allocations: 4 kB / 0.6544 GB, free: 14.18 MB / 462.1 MB Notification: Performance of sorting global known variables: time 3.312e-05/0.1833, allocations: 83.28 kB / 0.6545 GB, free: 14.09 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1833, allocations: 0 / 0.6545 GB, free: 14.09 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002329/0.1835, allocations: 19.92 kB / 0.6545 GB, free: 14.07 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 (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.0005168/0.184, allocations: 0.7124 MB / 0.6552 GB, free: 13.34 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0002046/0.1843, allocations: 55.92 kB / 0.6552 GB, free: 13.28 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.1843, allocations: 0 / 0.6552 GB, free: 13.28 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 8.752e-05/0.1844, allocations: 23.98 kB / 0.6553 GB, free: 13.26 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001731/0.1845, allocations: 4.109 kB / 0.6553 GB, free: 13.25 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003671/0.1849, allocations: 146.4 kB / 0.6554 GB, free: 13.07 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000197/0.1851, allocations: 0.6809 MB / 0.6561 GB, free: 12.36 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 2.419e-05/0.1852, allocations: 3.984 kB / 0.6561 GB, free: 12.36 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.9e-05/0.1852, allocations: 15.44 kB / 0.6561 GB, free: 12.34 MB / 462.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1852, allocations: 3.938 kB / 0.6561 GB, free: 12.34 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0116/0.1968, allocations: 1.318 MB / 0.6574 GB, free: 11.16 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002037/0.197, allocations: 190 kB / 0.6576 GB, free: 10.92 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.121/2.318, allocations: 0 / 0.6576 GB, free: 10.92 MB / 462.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) Environment - environmentSimulation: