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.0009955/0.0009956, allocations: 96.08 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001273/0.001273, allocations: 183.3 kB / 16.92 MB, free: 6.754 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.365/1.365, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6798/0.6798, allocations: 115.5 MB / 407.6 MB, free: 2.738 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004605/0.0004605, allocations: 12 kB / 496 MB, free: 6.281 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1666/0.1671, allocations: 77.53 MB / 0.56 GB, free: 8.961 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.002005/0.1691, allocations: 1.34 MB / 0.5613 GB, free: 7.609 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009237/0.1701, allocations: 0.5417 MB / 0.5619 GB, free: 7.062 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.537e-05/0.1702, allocations: 0 / 0.5619 GB, free: 7.062 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000168/0.1704, allocations: 19.86 kB / 0.5619 GB, free: 7.043 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002171/0.1706, allocations: 59.73 kB / 0.562 GB, free: 6.984 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001549/0.1708, allocations: 59.94 kB / 0.562 GB, free: 6.926 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001736/0.171, allocations: 123.6 kB / 0.5621 GB, free: 6.805 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001365/0.1711, allocations: 45.45 kB / 0.5622 GB, free: 6.758 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001067/0.1712, allocations: 39.78 kB / 0.5622 GB, free: 6.719 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001036/0.1713, allocations: 63.62 kB / 0.5623 GB, free: 6.656 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.17e-05/0.1714, allocations: 8 kB / 0.5623 GB, free: 6.648 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.209e-05/0.1714, allocations: 12 kB / 0.5623 GB, free: 6.637 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 8.208e-05/0.1715, allocations: 35.89 kB / 0.5623 GB, free: 6.602 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 6.19e-05/0.1716, allocations: 77.25 kB / 0.5624 GB, free: 6.52 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001778/0.1718, allocations: 139.7 kB / 0.5625 GB, free: 6.383 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.1718, allocations: 0 / 0.5625 GB, free: 6.383 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1718, allocations: 0 / 0.5625 GB, free: 6.383 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.361e-06/0.1718, allocations: 4 kB / 0.5625 GB, free: 6.379 MB / 430.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.0005631/0.1724, allocations: 450.7 kB / 0.563 GB, free: 5.891 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.1724, allocations: 8.031 kB / 0.563 GB, free: 5.883 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.593e-05/0.1724, allocations: 42.75 kB / 0.563 GB, free: 5.832 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.268e-05/0.1725, allocations: 16.75 kB / 0.563 GB, free: 5.816 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002254/0.1727, allocations: 232.9 kB / 0.5633 GB, free: 5.547 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.604e-06/0.1727, allocations: 4.375 kB / 0.5633 GB, free: 5.543 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.551e-05/0.1728, allocations: 4.375 kB / 0.5633 GB, free: 5.539 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002864/0.1731, allocations: 125.7 kB / 0.5634 GB, free: 5.41 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.101e-06/0.1731, allocations: 0 / 0.5634 GB, free: 5.41 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.1731, allocations: 4 kB / 0.5634 GB, free: 5.406 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.1731, allocations: 0 / 0.5634 GB, free: 5.406 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002516/0.1734, allocations: 79.94 kB / 0.5635 GB, free: 5.328 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005664/0.1739, allocations: 392.4 kB / 0.5638 GB, free: 4.895 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001387/0.1741, allocations: 50.53 kB / 0.5639 GB, free: 4.836 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001185/0.1742, allocations: 36.91 kB / 0.5639 GB, free: 4.797 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.652e-05/0.1742, allocations: 7.984 kB / 0.5639 GB, free: 4.789 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002652/0.1745, allocations: 101 kB / 0.564 GB, free: 4.672 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.1745, allocations: 4 kB / 0.564 GB, free: 4.668 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004615/0.175, allocations: 141.4 kB / 0.5642 GB, free: 4.523 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.158e-05/0.175, allocations: 81.11 kB / 0.5642 GB, free: 4.426 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002401/0.1753, allocations: 256.9 kB / 0.5645 GB, free: 4.172 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.966e-05/0.1753, allocations: 29.7 kB / 0.5645 GB, free: 4.137 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.645e-05/0.1754, allocations: 128 kB / 0.5646 GB, free: 4.008 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.946e-05/0.1754, allocations: 11.81 kB / 0.5646 GB, free: 3.996 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.387e-05/0.1754, allocations: 13.7 kB / 0.5647 GB, free: 3.977 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.1756, allocations: 330.8 kB / 0.565 GB, free: 3.645 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001194/0.1757, allocations: 27.97 kB / 0.565 GB, free: 3.617 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001375/0.1758, allocations: 63.34 kB / 0.5651 GB, free: 3.543 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002317/0.1761, allocations: 82.56 kB / 0.5651 GB, free: 3.453 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.1761, allocations: 0 / 0.5651 GB, free: 3.453 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003046/0.1764, allocations: 121.4 kB / 0.5653 GB, free: 3.328 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.1764, allocations: 8 kB / 0.5653 GB, free: 3.32 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.1764, allocations: 0 / 0.5653 GB, free: 3.32 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/0.1764, allocations: 3.938 kB / 0.5653 GB, free: 3.316 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001055/0.1765, allocations: 19.92 kB / 0.5653 GB, free: 3.297 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.1766, allocations: 0 / 0.5653 GB, free: 3.297 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.314e-05/0.1767, allocations: 20.05 kB / 0.5653 GB, free: 3.277 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-06/0.1767, allocations: 0 / 0.5653 GB, free: 3.277 MB / 430.1 MB 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 9.388e-05/0.1768, allocations: 129.8 kB / 0.5654 GB, free: 3.141 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.231e-05/0.1768, allocations: 15.81 kB / 0.5654 GB, free: 3.125 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.552e-05/0.1768, allocations: 25.17 kB / 0.5655 GB, free: 3.102 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.1769, allocations: 0 / 0.5655 GB, free: 3.102 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.1769, allocations: 0 / 0.5655 GB, free: 3.102 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.923e-06/0.1769, allocations: 0 / 0.5655 GB, free: 3.102 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001592/0.177, allocations: 217.5 kB / 0.5657 GB, free: 2.84 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.177, allocations: 8 kB / 0.5657 GB, free: 2.832 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.386e-05/0.1771, allocations: 11.98 kB / 0.5657 GB, free: 2.82 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.1771, allocations: 0 / 0.5657 GB, free: 2.82 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.111e-05/0.1772, allocations: 11.92 kB / 0.5657 GB, free: 2.809 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.1772, allocations: 0 / 0.5657 GB, free: 2.809 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1772, allocations: 0 / 0.5657 GB, free: 2.809 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003043/0.1775, allocations: 140.7 kB / 0.5658 GB, free: 2.652 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.334e-05/0.1775, allocations: 96.91 kB / 0.5659 GB, free: 2.539 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.193e-05/0.1776, allocations: 7.938 kB / 0.5659 GB, free: 2.531 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.019e-05/0.1777, allocations: 19.98 kB / 0.566 GB, free: 2.512 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.477e-05/0.1777, allocations: 0 / 0.566 GB, free: 2.512 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.165e-05/0.1777, allocations: 7.984 kB / 0.566 GB, free: 2.504 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001635/0.1779, allocations: 188.5 kB / 0.5661 GB, free: 2.316 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1779, allocations: 0 / 0.5661 GB, free: 2.316 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002199/0.1781, allocations: 20.12 kB / 0.5662 GB, free: 2.297 MB / 430.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: 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.0006654/0.1788, allocations: 0.7079 MB / 0.5669 GB, free: 1.566 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.000287/0.1791, allocations: 71.95 kB / 0.5669 GB, free: 1.496 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.113e-06/0.1791, allocations: 3.938 kB / 0.5669 GB, free: 1.492 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000131/0.1792, allocations: 35.91 kB / 0.567 GB, free: 1.457 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002792/0.1795, allocations: 40.12 kB / 0.567 GB, free: 1.422 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002125/0.1817, allocations: 1.826 MB / 0.5688 GB, free: 15.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000314/0.182, allocations: 0.7199 MB / 0.5695 GB, free: 14.75 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.414e-05/0.1821, allocations: 16.55 kB / 0.5695 GB, free: 14.73 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.571e-05/0.1822, allocations: 39.42 kB / 0.5695 GB, free: 14.69 MB / 446.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1822, allocations: 0 / 0.5695 GB, free: 14.69 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6479/0.8301, allocations: 3.212 MB / 0.5727 GB, free: 11.63 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002263/0.8304, allocations: 191.5 kB / 0.5729 GB, free: 11.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.412/3.242, allocations: 0 / 0.5729 GB, free: 11.38 MB / 446.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter.fmu > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)