Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.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.Functions.Examples.RegNonZeroPower,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_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.000822/0.0008219, 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.0008543/0.0008544, 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.17/1.17, allocations: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001603/0.001603, allocations: 274.7 kB / 291.2 MB, free: 2.004 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.7186/0.7186, allocations: 144.6 MB / 487 MB, free: 7.16 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000375/0.000375, allocations: 19.88 kB / 0.5684 GB, free: 38.32 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1477/0.148, allocations: 83.08 MB / 0.6495 GB, free: 3.477 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.0009047/0.149, allocations: 307.7 kB / 0.6498 GB, free: 3.176 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009072/0.1499, allocations: 305.1 kB / 0.6501 GB, free: 2.879 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.453e-05/0.15, allocations: 0 / 0.6501 GB, free: 2.879 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.536e-05/0.15, allocations: 1.25 kB / 0.6501 GB, free: 2.879 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 7.274e-06/0.15, allocations: 0 / 0.6501 GB, free: 2.879 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004735/0.1505, allocations: 61.17 kB / 0.6502 GB, free: 2.82 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.991e-05/0.1506, allocations: 4 kB / 0.6502 GB, free: 2.816 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.827e-05/0.1506, allocations: 1.375 kB / 0.6502 GB, free: 2.816 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.009e-05/0.1507, allocations: 3.984 kB / 0.6502 GB, free: 2.812 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.896e-05/0.1507, allocations: 0 / 0.6502 GB, free: 2.812 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.245e-05/0.1507, allocations: 0 / 0.6502 GB, free: 2.812 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005897/0.1513, allocations: 262.7 kB / 0.6504 GB, free: 2.559 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.086e-05/0.1513, allocations: 7.938 kB / 0.6505 GB, free: 2.551 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.78e-05/0.1514, allocations: 25.7 kB / 0.6505 GB, free: 2.52 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001176/0.1515, allocations: 51.91 kB / 0.6505 GB, free: 2.469 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.1515, allocations: 3.938 kB / 0.6505 GB, free: 2.465 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1515, allocations: 0 / 0.6505 GB, free: 2.465 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.1515, allocations: 0 / 0.6505 GB, free: 2.465 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004286/0.152, allocations: 331.9 kB / 0.6509 GB, free: 2.094 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.709e-05/0.152, allocations: 8.031 kB / 0.6509 GB, free: 2.086 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.562e-05/0.1521, allocations: 31.12 kB / 0.6509 GB, free: 2.047 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.323e-05/0.1522, allocations: 4.531 kB / 0.6509 GB, free: 2.043 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001759/0.1524, allocations: 167 kB / 0.6511 GB, free: 1.84 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.742e-05/0.1524, allocations: 4.578 kB / 0.6511 GB, free: 1.836 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.21e-05/0.1524, allocations: 0.6875 kB / 0.6511 GB, free: 1.836 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001402/0.1526, allocations: 27.67 kB / 0.6511 GB, free: 1.805 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.1526, allocations: 3.984 kB / 0.6511 GB, free: 1.801 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.027e-05/0.1526, allocations: 4 kB / 0.6511 GB, free: 1.797 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.1526, allocations: 0 / 0.6511 GB, free: 1.797 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.857e-05/0.1527, allocations: 0 / 0.6511 GB, free: 1.797 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001974/0.1529, allocations: 142.4 kB / 0.6512 GB, free: 1.609 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.127e-05/0.1529, allocations: 32.38 kB / 0.6513 GB, free: 1.57 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006953/0.1536, allocations: 422.3 kB / 0.6517 GB, free: 1.066 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.367e-05/0.1537, allocations: 35.81 kB / 0.6517 GB, free: 1.023 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 1.453e-06/0.1537, allocations: 0 / 0.6517 GB, free: 1.023 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001964/0.1539, allocations: 34.72 kB / 0.6517 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.413e-05/0.154, allocations: 52.81 kB / 0.6518 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.111e-05/0.154, allocations: 89.86 kB / 0.6519 GB, free: 0.8242 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.242e-05/0.1541, allocations: 29.7 kB / 0.6519 GB, free: 0.7891 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.019e-05/0.1541, allocations: 80.86 kB / 0.652 GB, free: 0.707 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.946e-05/0.1542, allocations: 7.844 kB / 0.652 GB, free: 0.6992 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.559e-06/0.1542, allocations: 1.25 kB / 0.652 GB, free: 0.6992 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.1543, allocations: 314.8 kB / 0.6523 GB, free: 392 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.085e-05/0.1544, allocations: 0 / 0.6523 GB, free: 392 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.158e-05/0.1544, allocations: 8.656 kB / 0.6523 GB, free: 384 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.13e-05/0.1544, allocations: 0.5938 kB / 0.6523 GB, free: 384 kB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.1544, allocations: 0.5625 kB / 0.6523 GB, free: 384 kB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.591e-05/0.1545, allocations: 34.56 kB / 0.6523 GB, free: 344 kB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.688e-05/0.1546, allocations: 13.36 kB / 0.6523 GB, free: 332 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.1546, allocations: 2.406 kB / 0.6523 GB, free: 332 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.1546, allocations: 0 / 0.6523 GB, free: 332 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.868e-05/0.1547, allocations: 0 / 0.6523 GB, free: 332 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.1547, allocations: 0 / 0.6523 GB, free: 332 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.38e-05/0.1547, allocations: 4 kB / 0.6523 GB, free: 328 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.981e-06/0.1547, allocations: 0 / 0.6523 GB, free: 328 kB / 446.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 (1): * Single equations (assignments): 1 * 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 9.009e-05/0.1548, allocations: 106.9 kB / 0.6524 GB, free: 212 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.897e-05/0.1548, allocations: 0 / 0.6524 GB, free: 212 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001206/0.155, allocations: 57.98 kB / 0.6525 GB, free: 152 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.155, allocations: 0 / 0.6525 GB, free: 152 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.155, allocations: 1.969 kB / 0.6525 GB, free: 152 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.155, allocations: 0 / 0.6525 GB, free: 152 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001446/0.1552, allocations: 145.7 kB / 0.6526 GB, free: 15.96 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.1552, allocations: 4 kB / 0.6526 GB, free: 15.95 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.941e-05/0.1552, allocations: 4 kB / 0.6526 GB, free: 15.95 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.1552, allocations: 0.5312 kB / 0.6526 GB, free: 15.95 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.344e-06/0.1552, allocations: 0.5312 kB / 0.6526 GB, free: 15.95 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.1553, allocations: 3.953 kB / 0.6526 GB, free: 15.95 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.1553, allocations: 1.219 kB / 0.6527 GB, free: 15.95 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001156/0.1554, allocations: 62.17 kB / 0.6527 GB, free: 15.87 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.671e-05/0.1555, allocations: 81.09 kB / 0.6528 GB, free: 15.77 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.118e-05/0.1555, allocations: 0.6562 kB / 0.6528 GB, free: 15.77 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.028e-05/0.1555, allocations: 6.203 kB / 0.6528 GB, free: 15.77 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.787e-05/0.1555, allocations: 3.953 kB / 0.6528 GB, free: 15.76 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.557e-06/0.1555, allocations: 4 kB / 0.6528 GB, free: 15.76 MB / 462.1 MB Notification: Performance of sorting global known variables: time 3.317e-05/0.1556, allocations: 75.28 kB / 0.6529 GB, free: 15.68 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.813e-06/0.1556, allocations: 0 / 0.6529 GB, free: 15.68 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0001846/0.1558, allocations: 11.94 kB / 0.6529 GB, free: 15.67 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 (1): * Single equations (assignments): 1 * 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.0005434/0.1563, allocations: 0.5999 MB / 0.6535 GB, free: 15.04 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 8.816e-05/0.1564, allocations: 9.656 kB / 0.6535 GB, free: 15.04 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1564, allocations: 0 / 0.6535 GB, free: 15.04 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 1.082e-05/0.1564, allocations: 8 kB / 0.6535 GB, free: 15.03 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001068/0.1565, allocations: 9.812 kB / 0.6535 GB, free: 15.02 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002971/0.1568, allocations: 105.5 kB / 0.6536 GB, free: 14.88 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002855/0.1571, allocations: 0.6812 MB / 0.6543 GB, free: 14.17 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 1.711e-05/0.1572, allocations: 0 / 0.6543 GB, free: 14.17 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.579e-05/0.1572, allocations: 7.438 kB / 0.6543 GB, free: 14.16 MB / 462.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1572, allocations: 0 / 0.6543 GB, free: 14.16 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01638/0.1736, allocations: 0.9916 MB / 0.6552 GB, free: 13.34 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002013/0.1738, allocations: 200.7 kB / 0.6554 GB, free: 13.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.069/2.243, allocations: 1.25 kB / 0.6554 GB, free: 13.1 MB / 462.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegNonZeroPower_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegNonZeroPower.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe 2>&1) Environment - environmentSimulation: