Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.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.Polynomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Polynomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Polynomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Polynomial",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.0007347/0.0007348, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.001039/0.001039, allocations: 168.7 kB / 15.95 MB, free: 204 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.266/1.266, allocations: 223.3 MB / 240 MB, free: 5.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00163/0.00163, allocations: 267 kB / 291.3 MB, free: 1.941 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.7925/0.7925, allocations: 144.7 MB / 487.2 MB, free: 7.156 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003887/0.000389, allocations: 17.89 kB / 0.5686 GB, free: 38.17 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1221, allocations: 83.09 MB / 0.6497 GB, free: 3.469 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Polynomial): time 0.001333/0.1234, allocations: 1.142 MB / 0.6508 GB, free: 2.316 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00024/0.1237, allocations: 96.31 kB / 0.6509 GB, free: 2.223 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.109e-05/0.1237, allocations: 1.938 kB / 0.6509 GB, free: 2.223 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 3.993e-05/0.1238, allocations: 0 / 0.6509 GB, free: 2.223 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.093e-05/0.1238, allocations: 11.92 kB / 0.6509 GB, free: 2.211 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001703/0.124, allocations: 8 kB / 0.6509 GB, free: 2.203 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.313e-05/0.124, allocations: 19.92 kB / 0.651 GB, free: 2.184 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.433e-05/0.1241, allocations: 8.781 kB / 0.651 GB, free: 2.176 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.421e-05/0.1241, allocations: 11.42 kB / 0.651 GB, free: 2.168 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.743e-05/0.1242, allocations: 11.92 kB / 0.651 GB, free: 2.156 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.15e-05/0.1242, allocations: 4 kB / 0.651 GB, free: 2.152 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.673e-05/0.1243, allocations: 11.98 kB / 0.651 GB, free: 2.141 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.828e-05/0.1243, allocations: 7.938 kB / 0.651 GB, free: 2.133 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.275e-05/0.1244, allocations: 25.7 kB / 0.651 GB, free: 2.102 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 8.585e-05/0.1244, allocations: 27.94 kB / 0.6511 GB, free: 2.074 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1245, allocations: 4 kB / 0.6511 GB, free: 2.07 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1245, allocations: 0 / 0.6511 GB, free: 2.07 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.1245, allocations: 0.5 kB / 0.6511 GB, free: 2.07 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.0004212/0.1249, allocations: 341.2 kB / 0.6514 GB, free: 1.691 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.125, allocations: 14.47 kB / 0.6514 GB, free: 1.68 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.194e-05/0.125, allocations: 30.56 kB / 0.6514 GB, free: 1.641 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.199e-05/0.125, allocations: 4 kB / 0.6514 GB, free: 1.637 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001278/0.1252, allocations: 170.9 kB / 0.6516 GB, free: 1.43 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.393e-05/0.1252, allocations: 7.953 kB / 0.6516 GB, free: 1.422 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.204e-06/0.1252, allocations: 0 / 0.6516 GB, free: 1.422 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001936/0.1254, allocations: 62.98 kB / 0.6517 GB, free: 1.355 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.1254, allocations: 0.75 kB / 0.6517 GB, free: 1.355 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.566e-06/0.1254, allocations: 0 / 0.6517 GB, free: 1.355 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.1254, allocations: 0.9375 kB / 0.6517 GB, free: 1.355 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001726/0.1256, allocations: 50.58 kB / 0.6517 GB, free: 1.309 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003551/0.126, allocations: 257.7 kB / 0.652 GB, free: 1.008 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001362/0.1261, allocations: 48.03 kB / 0.652 GB, free: 0.9531 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.606e-05/0.1262, allocations: 30.55 kB / 0.652 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.901e-05/0.1263, allocations: 0.875 kB / 0.652 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.784e-05/0.1263, allocations: 39.88 kB / 0.6521 GB, free: 0.875 MB / 446.1 MB Notification: Performance of pre-optimization done (n=2): time 1.242e-06/0.1263, allocations: 3.938 kB / 0.6521 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003478/0.1267, allocations: 100.8 kB / 0.6522 GB, free: 0.7695 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.321e-05/0.1267, allocations: 52.09 kB / 0.6522 GB, free: 0.707 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.213e-05/0.1268, allocations: 109.8 kB / 0.6523 GB, free: 0.5898 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.211e-05/0.1268, allocations: 26.83 kB / 0.6524 GB, free: 0.5586 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.286e-05/0.1269, allocations: 84.14 kB / 0.6524 GB, free: 484 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.578e-05/0.1269, allocations: 5.5 kB / 0.6525 GB, free: 480 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.168e-06/0.1269, allocations: 0 / 0.6525 GB, free: 480 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.127, allocations: 326.7 kB / 0.6528 GB, free: 144 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.726e-05/0.1271, allocations: 22.3 kB / 0.6528 GB, free: 124 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.154e-05/0.1272, allocations: 24.64 kB / 0.6528 GB, free: 100 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.189e-05/0.1273, allocations: 29.41 kB / 0.6528 GB, free: 72 kB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1273, allocations: 0 / 0.6528 GB, free: 72 kB / 446.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001957/0.1275, allocations: 76.94 kB / 0.6529 GB, free: 15.99 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.1275, allocations: 7.938 kB / 0.6529 GB, free: 15.98 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/0.1275, allocations: 0 / 0.6529 GB, free: 15.98 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/0.1275, allocations: 0.7812 kB / 0.6529 GB, free: 15.98 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.25e-05/0.1276, allocations: 9.062 kB / 0.6529 GB, free: 15.98 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.1276, allocations: 0 / 0.6529 GB, free: 15.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.406e-05/0.1277, allocations: 16.2 kB / 0.6529 GB, free: 15.96 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.909e-06/0.1277, allocations: 0 / 0.6529 GB, free: 15.96 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 8.769e-05/0.1278, allocations: 117.8 kB / 0.6531 GB, free: 15.84 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.317e-05/0.1278, allocations: 7.844 kB / 0.6531 GB, free: 15.83 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002147/0.128, allocations: 89.17 kB / 0.6531 GB, free: 15.73 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.1281, allocations: 0 / 0.6531 GB, free: 15.73 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.1281, allocations: 0 / 0.6531 GB, free: 15.73 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.1281, allocations: 0 / 0.6531 GB, free: 15.73 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001685/0.1282, allocations: 169.6 kB / 0.6533 GB, free: 15.52 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.1283, allocations: 0 / 0.6533 GB, free: 15.52 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.249e-05/0.1283, allocations: 8 kB / 0.6533 GB, free: 15.51 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.1283, allocations: 0 / 0.6533 GB, free: 15.51 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.602e-06/0.1283, allocations: 0 / 0.6533 GB, free: 15.51 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.1283, allocations: 8.031 kB / 0.6533 GB, free: 15.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.1284, allocations: 3.984 kB / 0.6533 GB, free: 15.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002251/0.1286, allocations: 179.5 kB / 0.6535 GB, free: 15.31 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.181e-05/0.1286, allocations: 89.16 kB / 0.6536 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.403e-05/0.1287, allocations: 3.984 kB / 0.6536 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.089e-05/0.1287, allocations: 12 kB / 0.6536 GB, free: 15.19 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.147e-05/0.1288, allocations: 3.984 kB / 0.6536 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.796e-06/0.1288, allocations: 0 / 0.6536 GB, free: 15.18 MB / 462.1 MB Notification: Performance of sorting global known variables: time 3.731e-05/0.1288, allocations: 87.28 kB / 0.6537 GB, free: 15.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1288, allocations: 0 / 0.6537 GB, free: 15.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002155/0.129, allocations: 11.88 kB / 0.6537 GB, free: 15.09 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.0005098/0.1296, allocations: 0.7202 MB / 0.6544 GB, free: 14.34 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0001863/0.1298, allocations: 51.95 kB / 0.6545 GB, free: 14.29 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1298, allocations: 0 / 0.6545 GB, free: 14.29 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 7.69e-05/0.1299, allocations: 28.05 kB / 0.6545 GB, free: 14.26 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002495/0.1301, allocations: 11.88 kB / 0.6545 GB, free: 14.25 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003781/0.1305, allocations: 138.4 kB / 0.6546 GB, free: 14.08 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002629/0.1308, allocations: 0.6809 MB / 0.6553 GB, free: 13.37 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 2.495e-05/0.1308, allocations: 4.047 kB / 0.6553 GB, free: 13.37 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.682e-05/0.1308, allocations: 19.38 kB / 0.6553 GB, free: 13.35 MB / 462.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1308, allocations: 0 / 0.6553 GB, free: 13.35 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01044/0.1413, allocations: 1.172 MB / 0.6565 GB, free: 12.3 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001958/0.1415, allocations: 189.5 kB / 0.6566 GB, free: 12.07 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.601/1.742, allocations: 0 / 0.6566 GB, free: 12.07 MB / 462.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Polynomial_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Polynomial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.pipe 2>&1) Environment - environmentSimulation: