Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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.IO.Files.Examples.JSONWriter,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="BuildingSystems_BuildingSystems_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.005464/0.00547, allocations: 100.8 kB / 15.73 MB, free: 6.012 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.001249/0.001249, allocations: 187.7 kB / 16.67 MB, free: 5.949 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.292/1.292, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002124/0.002124, allocations: 286 kB / 290.8 MB, free: 1.922 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9306/0.9306, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001775/0.001775, allocations: 96.41 kB / 0.6809 GB, free: 4 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1596/0.1614, allocations: 86.97 MB / 0.7659 GB, free: 8.957 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.002821/0.1643, allocations: 1.637 MB / 0.7675 GB, free: 7.309 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0008788/0.1652, allocations: 0.5461 MB / 0.768 GB, free: 6.758 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.277e-05/0.1653, allocations: 7.938 kB / 0.768 GB, free: 6.75 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001669/0.1655, allocations: 27.78 kB / 0.768 GB, free: 6.723 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0002714/0.1658, allocations: 67.67 kB / 0.7681 GB, free: 6.656 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000159/0.1659, allocations: 63.86 kB / 0.7682 GB, free: 6.594 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001903/0.1661, allocations: 135.5 kB / 0.7683 GB, free: 6.461 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001496/0.1663, allocations: 61.66 kB / 0.7684 GB, free: 6.398 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001225/0.1664, allocations: 55.77 kB / 0.7684 GB, free: 6.344 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001113/0.1666, allocations: 63.7 kB / 0.7685 GB, free: 6.281 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.668e-05/0.1666, allocations: 8 kB / 0.7685 GB, free: 6.273 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.77e-05/0.1667, allocations: 20 kB / 0.7685 GB, free: 6.254 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 9.944e-05/0.1668, allocations: 47.83 kB / 0.7685 GB, free: 6.207 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 6.242e-05/0.1668, allocations: 55.61 kB / 0.7686 GB, free: 6.152 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002029/0.1671, allocations: 147.4 kB / 0.7687 GB, free: 6.008 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.1671, allocations: 0 / 0.7687 GB, free: 6.008 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.573e-06/0.1671, allocations: 0 / 0.7687 GB, free: 6.008 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.683e-06/0.1671, allocations: 0 / 0.7687 GB, free: 6.008 MB / 0.5606 GB 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.0005921/0.1677, allocations: 462.7 kB / 0.7692 GB, free: 5.508 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.1677, allocations: 12.03 kB / 0.7692 GB, free: 5.496 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.949e-05/0.1678, allocations: 46.61 kB / 0.7692 GB, free: 5.441 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.779e-05/0.1678, allocations: 20.66 kB / 0.7693 GB, free: 5.422 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003036/0.1681, allocations: 249.4 kB / 0.7695 GB, free: 5.137 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.876e-06/0.1681, allocations: 384 / 0.7695 GB, free: 5.137 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.174e-05/0.1682, allocations: 8.375 kB / 0.7695 GB, free: 5.129 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002638/0.1684, allocations: 121.1 kB / 0.7696 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.1684, allocations: 0 / 0.7696 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.1685, allocations: 0 / 0.7696 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.652e-06/0.1685, allocations: 4 kB / 0.7696 GB, free: 5.004 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002066/0.1687, allocations: 63.88 kB / 0.7697 GB, free: 4.941 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005431/0.1692, allocations: 380.5 kB / 0.77 GB, free: 4.52 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000125/0.1694, allocations: 42.55 kB / 0.7701 GB, free: 4.469 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.526e-05/0.1695, allocations: 28.89 kB / 0.7701 GB, free: 4.438 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.324e-05/0.1695, allocations: 3.984 kB / 0.7701 GB, free: 4.434 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002106/0.1697, allocations: 101.1 kB / 0.7702 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 2.645e-06/0.1697, allocations: 3.984 kB / 0.7702 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0003873/0.1701, allocations: 117.3 kB / 0.7703 GB, free: 4.191 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.024e-05/0.1702, allocations: 89.11 kB / 0.7704 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002293/0.1704, allocations: 256.8 kB / 0.7707 GB, free: 3.824 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.874e-05/0.1704, allocations: 29.7 kB / 0.7707 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.562e-05/0.1705, allocations: 124.1 kB / 0.7708 GB, free: 3.664 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.829e-05/0.1705, allocations: 11.81 kB / 0.7708 GB, free: 3.652 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.573e-05/0.1706, allocations: 13.72 kB / 0.7708 GB, free: 3.633 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001092/0.1707, allocations: 326.8 kB / 0.7711 GB, free: 3.305 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00011/0.1708, allocations: 31.97 kB / 0.7712 GB, free: 3.273 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001088/0.1709, allocations: 43.41 kB / 0.7712 GB, free: 3.219 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000204/0.1712, allocations: 78.48 kB / 0.7713 GB, free: 3.133 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.1712, allocations: 0 / 0.7713 GB, free: 3.133 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002522/0.1714, allocations: 93.41 kB / 0.7714 GB, free: 3.035 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.1714, allocations: 7.984 kB / 0.7714 GB, free: 3.027 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.1715, allocations: 4 kB / 0.7714 GB, free: 3.023 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.1715, allocations: 3.938 kB / 0.7714 GB, free: 3.02 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.1716, allocations: 16.08 kB / 0.7714 GB, free: 3.004 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.1716, allocations: 0 / 0.7714 GB, free: 3.004 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.002e-05/0.1717, allocations: 19.92 kB / 0.7714 GB, free: 2.984 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.76e-05/0.1717, allocations: 0 / 0.7714 GB, free: 2.984 MB / 0.5606 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 8.952e-05/0.1718, allocations: 133.7 kB / 0.7716 GB, free: 2.844 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.919e-05/0.1718, allocations: 15.81 kB / 0.7716 GB, free: 2.828 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.43e-05/0.1719, allocations: 21.19 kB / 0.7716 GB, free: 2.805 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.1719, allocations: 4 kB / 0.7716 GB, free: 2.801 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.1719, allocations: 4 kB / 0.7716 GB, free: 2.797 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.1719, allocations: 3.984 kB / 0.7716 GB, free: 2.793 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001561/0.1721, allocations: 213.5 kB / 0.7718 GB, free: 2.535 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.1721, allocations: 4 kB / 0.7718 GB, free: 2.531 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.897e-05/0.1722, allocations: 11.98 kB / 0.7718 GB, free: 2.52 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.1722, allocations: 0 / 0.7718 GB, free: 2.52 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.764e-05/0.1722, allocations: 7.938 kB / 0.7718 GB, free: 2.512 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.1722, allocations: 0 / 0.7718 GB, free: 2.512 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1722, allocations: 0 / 0.7718 GB, free: 2.512 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002634/0.1725, allocations: 128.7 kB / 0.772 GB, free: 2.367 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.048e-05/0.1725, allocations: 92.91 kB / 0.772 GB, free: 2.258 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.393e-05/0.1726, allocations: 7.938 kB / 0.772 GB, free: 2.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.934e-05/0.1726, allocations: 7.984 kB / 0.7721 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.36e-05/0.1727, allocations: 4 kB / 0.7721 GB, free: 2.238 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.025e-05/0.1727, allocations: 4 kB / 0.7721 GB, free: 2.234 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001524/0.1729, allocations: 196.5 kB / 0.7723 GB, free: 2.043 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1729, allocations: 0 / 0.7723 GB, free: 2.043 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002141/0.1731, allocations: 16 kB / 0.7723 GB, free: 2.027 MB / 0.5606 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.0006075/0.1737, allocations: 0.6757 MB / 0.7729 GB, free: 1.328 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002625/0.174, allocations: 63.88 kB / 0.773 GB, free: 1.266 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.174, allocations: 0 / 0.773 GB, free: 1.266 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001032/0.1741, allocations: 27.97 kB / 0.773 GB, free: 1.238 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002747/0.1744, allocations: 41.72 kB / 0.7731 GB, free: 1.203 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2832/0.4576, allocations: 1.743 MB / 0.7748 GB, free: 13.78 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001798/0.4578, allocations: 0.7153 MB / 0.7755 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001065/0.4579, allocations: 21.81 kB / 0.7755 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.352e-05/0.458, allocations: 47.48 kB / 0.7755 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of SimCode: time 1.713e-06/0.458, allocations: 0 / 0.7755 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02028/0.4783, allocations: 3.668 MB / 0.7791 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.3/7.778, allocations: 11.19 kB / 0.7791 GB, free: 12.68 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_JSONWriter.fmu > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)