Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Media.Examples.WaterDerivativeCheck,fileNamePrefix="IBPSA_latest_IBPSA_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Media.Examples.WaterDerivativeCheck,fileNamePrefix="IBPSA_latest_IBPSA_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.001815/0.001815, allocations: 103.7 kB / 16.4 MB, free: 6.492 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.001932/0.001932, allocations: 193.8 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7794/0.7794, allocations: 126.1 MB / 417.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 71.94 kB / 0.5726 GB, free: 27.55 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1345/0.1358, allocations: 78.7 MB / 0.6494 GB, free: 4.633 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Media.Examples.WaterDerivativeCheck): time 0.002372/0.1382, allocations: 1.257 MB / 0.6506 GB, free: 3.367 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003815/0.1421, allocations: 3.262 MB / 0.6538 GB, free: 88 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.866e-05/0.1421, allocations: 3.938 kB / 0.6538 GB, free: 84 kB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.922e-05/0.1421, allocations: 3.984 kB / 0.6538 GB, free: 80 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.251e-05/0.1422, allocations: 3.938 kB / 0.6538 GB, free: 76 kB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005852/0.1428, allocations: 111.5 kB / 0.6539 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.183e-05/0.1429, allocations: 35.86 kB / 0.654 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.721e-05/0.143, allocations: 3.984 kB / 0.654 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.806e-05/0.143, allocations: 19.98 kB / 0.654 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.588e-05/0.1431, allocations: 15.92 kB / 0.654 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.259e-05/0.1431, allocations: 4 kB / 0.654 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002581/0.1434, allocations: 79.8 kB / 0.6541 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.777e-05/0.1434, allocations: 8 kB / 0.6541 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.688e-05/0.1435, allocations: 15.91 kB / 0.6541 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001975/0.1437, allocations: 76.02 kB / 0.6542 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1437, allocations: 0 / 0.6542 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.022e-06/0.1437, allocations: 0 / 0.6542 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.99e-06/0.1437, allocations: 0 / 0.6542 GB, free: 15.71 MB / 0.4981 GB 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.0004291/0.1441, allocations: 351.3 kB / 0.6545 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.1442, allocations: 15.97 kB / 0.6545 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.711e-05/0.1442, allocations: 34.75 kB / 0.6546 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001006/0.1443, allocations: 4.938 kB / 0.6546 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001173/0.1444, allocations: 164.4 kB / 0.6547 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.399e-05/0.1445, allocations: 4.375 kB / 0.6547 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.068e-05/0.1445, allocations: 16.31 kB / 0.6548 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001388/0.1447, allocations: 53.61 kB / 0.6548 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.1447, allocations: 3.938 kB / 0.6548 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.798e-06/0.1447, allocations: 0 / 0.6548 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.1447, allocations: 0 / 0.6548 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.759e-05/0.1448, allocations: 23.92 kB / 0.6548 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001772/0.145, allocations: 165.6 kB / 0.655 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001106/0.1451, allocations: 54.55 kB / 0.655 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.227e-05/0.1451, allocations: 16.86 kB / 0.6551 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007209/0.1458, allocations: 0.591 MB / 0.6556 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.562e-05/0.1459, allocations: 34.55 kB / 0.6557 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=5): time 1.443e-06/0.1459, allocations: 0 / 0.6557 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7): time 0.0005758/0.1465, allocations: 310.6 kB / 0.656 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.651e-05/0.1465, allocations: 55.41 kB / 0.656 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.65e-05/0.1466, allocations: 97.8 kB / 0.6561 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.1466, allocations: 29.7 kB / 0.6561 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.238e-05/0.1467, allocations: 92.08 kB / 0.6562 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.887e-05/0.1467, allocations: 23.75 kB / 0.6563 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.295e-05/0.1467, allocations: 29.7 kB / 0.6563 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001007/0.1469, allocations: 318.8 kB / 0.6566 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.319e-05/0.1469, allocations: 15.98 kB / 0.6566 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.265e-05/0.147, allocations: 49.09 kB / 0.6566 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.393e-05/0.1471, allocations: 89.19 kB / 0.6567 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.1471, allocations: 0 / 0.6567 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001623/0.1472, allocations: 89.55 kB / 0.6568 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.1473, allocations: 11.94 kB / 0.6568 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.1473, allocations: 0 / 0.6568 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.1473, allocations: 4 kB / 0.6568 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.407e-05/0.1474, allocations: 24.11 kB / 0.6569 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.1474, allocations: 0 / 0.6569 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.269e-05/0.1474, allocations: 11.94 kB / 0.6569 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.1474, allocations: 7.938 kB / 0.6569 GB, free: 12.54 MB / 0.4981 GB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.452e-05/0.1475, allocations: 121.3 kB / 0.657 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.753e-05/0.1476, allocations: 3.953 kB / 0.657 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.868e-05/0.1476, allocations: 11.97 kB / 0.657 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.1476, allocations: 0 / 0.657 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.1476, allocations: 0 / 0.657 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.1476, allocations: 11.92 kB / 0.657 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002317/0.1479, allocations: 173.7 kB / 0.6572 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1479, allocations: 0 / 0.6572 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.331e-05/0.148, allocations: 12 kB / 0.6572 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.148, allocations: 4 kB / 0.6572 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-06/0.148, allocations: 4 kB / 0.6572 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.148, allocations: 0 / 0.6572 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.148, allocations: 0 / 0.6572 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001852/0.1482, allocations: 179.4 kB / 0.6574 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.6e-05/0.1482, allocations: 85.14 kB / 0.6575 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.303e-05/0.1483, allocations: 0 / 0.6575 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.1484, allocations: 4 kB / 0.6575 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.686e-05/0.1484, allocations: 7.938 kB / 0.6575 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.993e-06/0.1484, allocations: 4 kB / 0.6575 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.643e-05/0.1485, allocations: 83.27 kB / 0.6575 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.1485, allocations: 0 / 0.6575 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002421/0.1487, allocations: 12 kB / 0.6576 GB, free: 11.75 MB / 0.4981 GB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000459/0.1492, allocations: 0.7124 MB / 0.6583 GB, free: 11 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001193/0.1493, allocations: 44.72 kB / 0.6583 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1493, allocations: 0 / 0.6583 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 3.218e-05/0.1493, allocations: 20.17 kB / 0.6583 GB, free: 10.94 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002829/0.1496, allocations: 15.92 kB / 0.6583 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001365/0.151, allocations: 1.527 MB / 0.6598 GB, free: 9.289 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002515/0.1513, allocations: 0.6846 MB / 0.6605 GB, free: 8.578 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.994e-05/0.1513, allocations: 15.84 kB / 0.6605 GB, free: 8.562 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.271e-05/0.1514, allocations: 19.38 kB / 0.6605 GB, free: 8.547 MB / 0.4981 GB Notification: Performance of SimCode: time 2.2e-07/0.1514, allocations: 0 / 0.6605 GB, free: 8.547 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01815/0.1695, allocations: 1.636 MB / 0.6621 GB, free: 6.98 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.411/7.58, allocations: 15.56 kB / 0.6621 GB, free: 6.969 MB / 0.4981 GB (rm -f IBPSA_latest_IBPSA.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo IBPSA_latest_IBPSA.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Media.Examples.WaterDerivativeCheck.pipe >> ../files/IBPSA_latest_IBPSA.Media.Examples.WaterDerivativeCheck.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Media.Examples.WaterDerivativeCheck_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Media_Examples_WaterDerivativeCheck.fmu > IBPSA_latest_IBPSA.Media.Examples.WaterDerivativeCheck.pipe 2>&1)