Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.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.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter",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.001208/0.001208, allocations: 103.7 kB / 16.41 MB, free: 6.488 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.001222/0.001222, allocations: 189.2 kB / 17.34 MB, free: 5.762 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.404/1.404, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8228/0.8228, allocations: 126.7 MB / 417.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002111/0.002111, allocations: 68.69 kB / 0.5735 GB, free: 27.05 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1423/0.1444, allocations: 78.86 MB / 0.6505 GB, free: 3.617 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.003399/0.1479, allocations: 1.627 MB / 0.6521 GB, free: 1.98 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001086/0.149, allocations: 0.5455 MB / 0.6527 GB, free: 1.43 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001217/0.1491, allocations: 4 kB / 0.6527 GB, free: 1.426 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002238/0.1494, allocations: 35.72 kB / 0.6527 GB, free: 1.391 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003113/0.1497, allocations: 59.69 kB / 0.6527 GB, free: 1.332 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001883/0.1499, allocations: 67.84 kB / 0.6528 GB, free: 1.266 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002381/0.1501, allocations: 139.5 kB / 0.6529 GB, free: 1.129 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001507/0.1503, allocations: 45.47 kB / 0.653 GB, free: 1.082 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001374/0.1504, allocations: 55.83 kB / 0.653 GB, free: 1.027 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001271/0.1506, allocations: 59.7 kB / 0.6531 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.273e-05/0.1506, allocations: 8 kB / 0.6531 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.459e-05/0.1507, allocations: 27.92 kB / 0.6531 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.131e-05/0.1508, allocations: 43.84 kB / 0.6532 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.244e-05/0.1509, allocations: 63.58 kB / 0.6532 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002366/0.1511, allocations: 139.6 kB / 0.6534 GB, free: 0.6914 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1511, allocations: 4 kB / 0.6534 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1511, allocations: 0 / 0.6534 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.1511, allocations: 0 / 0.6534 GB, free: 0.6875 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006886/0.1518, allocations: 482.4 kB / 0.6538 GB, free: 172 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.1519, allocations: 8.031 kB / 0.6538 GB, free: 164 kB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.482e-05/0.1519, allocations: 42.75 kB / 0.6539 GB, free: 112 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.986e-05/0.152, allocations: 16.84 kB / 0.6539 GB, free: 96 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003525/0.1523, allocations: 241 kB / 0.6541 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.1524, allocations: 12.31 kB / 0.6541 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.789e-05/0.1524, allocations: 8.312 kB / 0.6541 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002913/0.1527, allocations: 109.8 kB / 0.6543 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.804e-06/0.1527, allocations: 0 / 0.6543 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.425e-05/0.1527, allocations: 4 kB / 0.6543 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.1527, allocations: 0 / 0.6543 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002436/0.153, allocations: 63.94 kB / 0.6543 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006253/0.1536, allocations: 392.5 kB / 0.6547 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001424/0.1538, allocations: 34.56 kB / 0.6547 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001157/0.1539, allocations: 32.89 kB / 0.6548 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.565e-05/0.1539, allocations: 0 / 0.6548 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002476/0.1542, allocations: 101 kB / 0.6549 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.1542, allocations: 4 kB / 0.6549 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004491/0.1546, allocations: 117.5 kB / 0.655 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.277e-05/0.1547, allocations: 81.09 kB / 0.655 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002714/0.155, allocations: 253 kB / 0.6553 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.135e-05/0.155, allocations: 29.7 kB / 0.6553 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.534e-05/0.1551, allocations: 132.1 kB / 0.6554 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.84e-05/0.1551, allocations: 7.891 kB / 0.6554 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.281e-05/0.1552, allocations: 21.72 kB / 0.6555 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001481/0.1553, allocations: 326.8 kB / 0.6558 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001165/0.1555, allocations: 23.92 kB / 0.6558 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001323/0.1556, allocations: 51.34 kB / 0.6559 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002417/0.1559, allocations: 74.55 kB / 0.6559 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.1559, allocations: 0 / 0.6559 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002985/0.1562, allocations: 105.5 kB / 0.656 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.1562, allocations: 4 kB / 0.656 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.1562, allocations: 3.938 kB / 0.656 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.1562, allocations: 7.938 kB / 0.656 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/0.1563, allocations: 11.98 kB / 0.6561 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.1564, allocations: 0 / 0.6561 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.528e-05/0.1565, allocations: 16.22 kB / 0.6561 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/0.1565, allocations: 0 / 0.6561 GB, free: 13.66 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 0.0001184/0.1566, allocations: 133.9 kB / 0.6562 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.248e-05/0.1566, allocations: 23.83 kB / 0.6562 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.755e-05/0.1567, allocations: 21.17 kB / 0.6562 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.1567, allocations: 0 / 0.6562 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.1567, allocations: 4 kB / 0.6562 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.003e-06/0.1567, allocations: 0 / 0.6562 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001957/0.1569, allocations: 209.6 kB / 0.6564 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.1569, allocations: 0 / 0.6564 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.246e-05/0.157, allocations: 11.98 kB / 0.6565 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.157, allocations: 0 / 0.6565 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.446e-05/0.157, allocations: 11.94 kB / 0.6565 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.105e-06/0.157, allocations: 4 kB / 0.6565 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.157, allocations: 4 kB / 0.6565 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003111/0.1574, allocations: 124.9 kB / 0.6566 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.173e-05/0.1574, allocations: 89.02 kB / 0.6567 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.633e-05/0.1575, allocations: 7.938 kB / 0.6567 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.413e-05/0.1576, allocations: 11.98 kB / 0.6567 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.089e-05/0.1576, allocations: 11.98 kB / 0.6567 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-05/0.1576, allocations: 4 kB / 0.6567 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001903/0.1578, allocations: 188.5 kB / 0.6569 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.71e-07/0.1578, allocations: 0 / 0.6569 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000226/0.1581, allocations: 23.94 kB / 0.6569 GB, free: 12.7 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0007544/0.1588, allocations: 0.6792 MB / 0.6576 GB, free: 12 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002947/0.1591, allocations: 63.88 kB / 0.6576 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.1592, allocations: 0 / 0.6576 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.1593, allocations: 27.92 kB / 0.6577 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002966/0.1596, allocations: 41.36 kB / 0.6577 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002303/0.1619, allocations: 1.752 MB / 0.6594 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000345/0.1623, allocations: 0.7275 MB / 0.6601 GB, free: 9.266 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.307e-05/0.1623, allocations: 16.61 kB / 0.6601 GB, free: 9.25 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.234e-05/0.1624, allocations: 47.41 kB / 0.6602 GB, free: 9.203 MB / 0.4981 GB Notification: Performance of SimCode: time 3.11e-07/0.1624, allocations: 0 / 0.6602 GB, free: 9.203 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02525/0.1877, allocations: 3.599 MB / 0.6637 GB, free: 5.691 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.022/8.21, allocations: 7.609 kB / 0.6637 GB, free: 5.688 MB / 0.4981 GB (rm -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter.fmu > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)