Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.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.Media.Examples.WaterDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.WaterDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterDerivativeCheck",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.0009125/0.0009124, allocations: 100.1 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.0009748/0.0009749, 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.335/1.335, 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.002169/0.002169, allocations: 266.8 kB / 291.2 MB, free: 2.016 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.808/0.808, allocations: 144.6 MB / 487 MB, free: 7.18 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004116/0.0004117, allocations: 18.38 kB / 0.5684 GB, free: 38.34 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1457/0.1461, allocations: 83.09 MB / 0.6495 GB, free: 3.508 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterDerivativeCheck): time 0.001087/0.1472, allocations: 0.972 MB / 0.6505 GB, free: 2.523 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002741/0.15, allocations: 2.82 MB / 0.6532 GB, free: 15.7 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.043e-05/0.15, allocations: 0 / 0.6532 GB, free: 15.7 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 1.594e-05/0.1501, allocations: 4.594 kB / 0.6532 GB, free: 15.7 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 4.148e-05/0.1501, allocations: 9.484 kB / 0.6532 GB, free: 15.69 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003399/0.1505, allocations: 91.69 kB / 0.6533 GB, free: 15.6 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 5.646e-05/0.1505, allocations: 28.61 kB / 0.6534 GB, free: 15.57 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.736e-05/0.1506, allocations: 0.75 kB / 0.6534 GB, free: 15.57 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.689e-05/0.1506, allocations: 16 kB / 0.6534 GB, free: 15.56 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.093e-05/0.1507, allocations: 16.59 kB / 0.6534 GB, free: 15.54 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.149e-05/0.1507, allocations: 4 kB / 0.6534 GB, free: 15.54 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001749/0.1509, allocations: 60.92 kB / 0.6534 GB, free: 15.48 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 1.181e-05/0.1509, allocations: 8 kB / 0.6535 GB, free: 15.47 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 2.188e-05/0.1509, allocations: 31.23 kB / 0.6535 GB, free: 15.44 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 9.701e-05/0.151, allocations: 27.95 kB / 0.6535 GB, free: 15.41 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.1511, allocations: 4 kB / 0.6535 GB, free: 15.41 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1511, allocations: 0 / 0.6535 GB, free: 15.41 MB / 462.1 MB Notification: Performance of Transformations before backend: time 3.777e-06/0.1511, allocations: 0.7188 kB / 0.6535 GB, free: 15.41 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003105/0.1514, allocations: 344.7 kB / 0.6538 GB, free: 15.02 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.1514, allocations: 15.95 kB / 0.6539 GB, free: 15.01 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.455e-05/0.1515, allocations: 34.56 kB / 0.6539 GB, free: 14.96 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.545e-05/0.1515, allocations: 8.594 kB / 0.6539 GB, free: 14.96 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.593e-05/0.1516, allocations: 163.6 kB / 0.6541 GB, free: 14.76 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.045e-05/0.1517, allocations: 4.594 kB / 0.6541 GB, free: 14.75 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.133e-05/0.1517, allocations: 8 kB / 0.6541 GB, free: 14.75 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001044/0.1518, allocations: 50.2 kB / 0.6541 GB, free: 14.69 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.871e-06/0.1518, allocations: 0.625 kB / 0.6541 GB, free: 14.69 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.1518, allocations: 4.594 kB / 0.6541 GB, free: 14.69 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.1518, allocations: 0 / 0.6541 GB, free: 14.69 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.499e-05/0.1519, allocations: 20.84 kB / 0.6541 GB, free: 14.67 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001471/0.152, allocations: 178.2 kB / 0.6543 GB, free: 14.45 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.769e-05/0.1521, allocations: 51.47 kB / 0.6544 GB, free: 14.39 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000584/0.1527, allocations: 0.5846 MB / 0.6549 GB, free: 13.7 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.1528, allocations: 35.25 kB / 0.655 GB, free: 13.65 MB / 462.1 MB Notification: Performance of pre-optimization done (n=5): time 1.042e-06/0.1528, allocations: 0 / 0.655 GB, free: 13.65 MB / 462.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004861/0.1532, allocations: 300.2 kB / 0.6553 GB, free: 13.31 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.031e-05/0.1533, allocations: 57.7 kB / 0.6553 GB, free: 13.24 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.989e-05/0.1534, allocations: 101.8 kB / 0.6554 GB, free: 13.13 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.329e-05/0.1534, allocations: 29.7 kB / 0.6554 GB, free: 13.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.31e-05/0.1534, allocations: 88.06 kB / 0.6555 GB, free: 13.01 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.143e-05/0.1534, allocations: 23.62 kB / 0.6555 GB, free: 12.98 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.599e-06/0.1535, allocations: 4 kB / 0.6555 GB, free: 12.98 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.179e-05/0.1535, allocations: 317 kB / 0.6558 GB, free: 12.66 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.49e-05/0.1536, allocations: 15.94 kB / 0.6559 GB, free: 12.65 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.561e-05/0.1536, allocations: 49.95 kB / 0.6559 GB, free: 12.58 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.518e-05/0.1537, allocations: 23 kB / 0.6559 GB, free: 12.56 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.62e-07/0.1537, allocations: 0 / 0.6559 GB, free: 12.56 MB / 462.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001401/0.1538, allocations: 89.55 kB / 0.656 GB, free: 12.47 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.1538, allocations: 5.531 kB / 0.656 GB, free: 12.46 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.1539, allocations: 4 kB / 0.656 GB, free: 12.46 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.013e-05/0.1539, allocations: 3.938 kB / 0.656 GB, free: 12.46 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.375e-05/0.1539, allocations: 24.7 kB / 0.656 GB, free: 12.43 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.154, allocations: 8.578 kB / 0.6561 GB, free: 12.43 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.5e-05/0.154, allocations: 1.719 kB / 0.6561 GB, free: 12.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.95e-06/0.154, allocations: 4 kB / 0.6561 GB, free: 12.42 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (12): * Single equations (assignments): 12 * 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.208e-05/0.1541, allocations: 121.7 kB / 0.6562 GB, free: 12.29 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.681e-05/0.1541, allocations: 13 kB / 0.6562 GB, free: 12.28 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.873e-05/0.1541, allocations: 15.94 kB / 0.6562 GB, free: 12.27 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.1542, allocations: 0 / 0.6562 GB, free: 12.27 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.1542, allocations: 8.125 kB / 0.6562 GB, free: 12.26 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.1542, allocations: 7.891 kB / 0.6562 GB, free: 12.25 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002056/0.1544, allocations: 173.7 kB / 0.6564 GB, free: 12.04 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.1544, allocations: 0 / 0.6564 GB, free: 12.04 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.83e-05/0.1545, allocations: 12 kB / 0.6564 GB, free: 12.02 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.1545, allocations: 0 / 0.6564 GB, free: 12.02 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.196e-06/0.1545, allocations: 3.984 kB / 0.6564 GB, free: 12.02 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.1545, allocations: 0 / 0.6564 GB, free: 12.02 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1545, allocations: 4 kB / 0.6564 GB, free: 12.02 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001478/0.1547, allocations: 179.3 kB / 0.6566 GB, free: 11.82 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.886e-05/0.1547, allocations: 81.14 kB / 0.6567 GB, free: 11.73 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.335e-05/0.1547, allocations: 4 kB / 0.6567 GB, free: 11.72 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.739e-05/0.1548, allocations: 4 kB / 0.6567 GB, free: 11.72 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.588e-05/0.1549, allocations: 7.984 kB / 0.6567 GB, free: 11.71 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.14e-06/0.1549, allocations: 0 / 0.6567 GB, free: 11.71 MB / 462.1 MB Notification: Performance of sorting global known variables: time 3.396e-05/0.1549, allocations: 79.28 kB / 0.6567 GB, free: 11.63 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1549, allocations: 3.938 kB / 0.6568 GB, free: 11.63 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002259/0.1551, allocations: 16 kB / 0.6568 GB, free: 11.61 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,cpSym,cvSym) * 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 (7): * Single equations (assignments): 7 * 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.0003473/0.1555, allocations: 0.7084 MB / 0.6575 GB, free: 10.88 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 9.312e-05/0.1556, allocations: 44.19 kB / 0.6575 GB, free: 10.83 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1556, allocations: 0 / 0.6575 GB, free: 10.83 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 2.286e-05/0.1556, allocations: 28.22 kB / 0.6575 GB, free: 10.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001737/0.1558, allocations: 1.25 kB / 0.6575 GB, free: 10.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00101/0.1568, allocations: 1.432 MB / 0.6589 GB, free: 9.301 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000191/0.157, allocations: 0.6848 MB / 0.6596 GB, free: 8.59 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 5.003e-05/0.1571, allocations: 11.98 kB / 0.6596 GB, free: 8.578 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.311e-05/0.1571, allocations: 15.5 kB / 0.6596 GB, free: 8.562 MB / 462.1 MB Notification: Performance of SimCode: time 1.984e-06/0.1571, allocations: 0 / 0.6596 GB, free: 8.562 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1616/0.3188, allocations: 1.405 MB / 0.661 GB, free: 7.285 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001965/0.319, allocations: 183.6 kB / 0.6612 GB, free: 7.047 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.496/1.815, allocations: 0 / 0.6612 GB, free: 7.047 MB / 462.1 MB (rm -f BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Examples_WaterDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Media_Examples_WaterDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe 2>&1) Environment - environmentSimulation: