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.00562/0.00562, allocations: 98.86 kB / 15.73 MB, free: 6.039 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.001959/0.001959, allocations: 202 kB / 16.68 MB, free: 5.965 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.446/1.446, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002523/0.002523, allocations: 286.2 kB / 290.8 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.03/1.03, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002776/0.002776, allocations: 104.3 kB / 0.681 GB, free: 0 / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1952/0.198, allocations: 86.97 MB / 0.7659 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.003141/0.2012, allocations: 1.637 MB / 0.7675 GB, free: 7.301 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0009297/0.2022, allocations: 0.5422 MB / 0.768 GB, free: 6.754 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.864e-05/0.2022, allocations: 0 / 0.768 GB, free: 6.754 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0002166/0.2025, allocations: 31.72 kB / 0.7681 GB, free: 6.723 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.000256/0.2027, allocations: 59.73 kB / 0.7681 GB, free: 6.664 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000162/0.2029, allocations: 67.86 kB / 0.7682 GB, free: 6.598 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002141/0.2031, allocations: 147.4 kB / 0.7683 GB, free: 6.453 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00016/0.2033, allocations: 53.72 kB / 0.7684 GB, free: 6.398 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001175/0.2034, allocations: 51.83 kB / 0.7684 GB, free: 6.348 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001214/0.2036, allocations: 59.7 kB / 0.7685 GB, free: 6.289 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.031e-05/0.2036, allocations: 8 kB / 0.7685 GB, free: 6.281 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.246e-05/0.2037, allocations: 23.94 kB / 0.7685 GB, free: 6.258 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 9.965e-05/0.2038, allocations: 47.83 kB / 0.7685 GB, free: 6.211 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 7.397e-05/0.2039, allocations: 55.61 kB / 0.7686 GB, free: 6.156 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002367/0.2041, allocations: 147.2 kB / 0.7687 GB, free: 6.012 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.2041, allocations: 4 kB / 0.7687 GB, free: 6.008 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.743e-06/0.2041, allocations: 4 kB / 0.7688 GB, free: 6.004 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.642e-06/0.2041, allocations: 4 kB / 0.7688 GB, free: 6 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.0007287/0.2049, allocations: 466.4 kB / 0.7692 GB, free: 5.496 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.2049, allocations: 16.02 kB / 0.7692 GB, free: 5.48 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.072e-05/0.205, allocations: 34.75 kB / 0.7692 GB, free: 5.438 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.946e-05/0.205, allocations: 24.84 kB / 0.7693 GB, free: 5.414 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003521/0.2054, allocations: 245.5 kB / 0.7695 GB, free: 5.133 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.462e-05/0.2054, allocations: 8.375 kB / 0.7695 GB, free: 5.125 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.778e-05/0.2054, allocations: 12.3 kB / 0.7695 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002877/0.2057, allocations: 109.8 kB / 0.7696 GB, free: 5 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.2057, allocations: 0 / 0.7696 GB, free: 5 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.26e-05/0.2058, allocations: 0 / 0.7696 GB, free: 5 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.2058, allocations: 4 kB / 0.7696 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002309/0.206, allocations: 67.94 kB / 0.7697 GB, free: 4.93 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006578/0.2067, allocations: 380.5 kB / 0.7701 GB, free: 4.508 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001381/0.2068, allocations: 38.55 kB / 0.7701 GB, free: 4.461 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/0.2069, allocations: 28.88 kB / 0.7701 GB, free: 4.43 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.966e-05/0.207, allocations: 8 kB / 0.7701 GB, free: 4.422 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002377/0.2072, allocations: 105 kB / 0.7702 GB, free: 4.301 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.2072, allocations: 0 / 0.7702 GB, free: 4.301 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0004306/0.2077, allocations: 121.4 kB / 0.7703 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.585e-05/0.2077, allocations: 81.11 kB / 0.7704 GB, free: 4.078 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003494/0.2081, allocations: 257 kB / 0.7707 GB, free: 3.816 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.756e-05/0.2081, allocations: 25.7 kB / 0.7707 GB, free: 3.785 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 9.34e-05/0.2082, allocations: 132 kB / 0.7708 GB, free: 3.652 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.833e-05/0.2082, allocations: 7.891 kB / 0.7708 GB, free: 3.645 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.072e-05/0.2083, allocations: 17.72 kB / 0.7708 GB, free: 3.621 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001452/0.2084, allocations: 330.8 kB / 0.7712 GB, free: 3.289 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001117/0.2086, allocations: 23.97 kB / 0.7712 GB, free: 3.266 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000123/0.2087, allocations: 47.41 kB / 0.7712 GB, free: 3.207 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002167/0.2089, allocations: 74.48 kB / 0.7713 GB, free: 3.125 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.2089, allocations: 3.938 kB / 0.7713 GB, free: 3.121 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002829/0.2092, allocations: 101.5 kB / 0.7714 GB, free: 3.016 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.2092, allocations: 8 kB / 0.7714 GB, free: 3.008 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.2093, allocations: 4.094 kB / 0.7714 GB, free: 3.004 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.2093, allocations: 3.938 kB / 0.7714 GB, free: 3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.2094, allocations: 11.98 kB / 0.7714 GB, free: 2.988 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.481e-06/0.2094, allocations: 0 / 0.7714 GB, free: 2.988 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.773e-05/0.2095, allocations: 15.94 kB / 0.7714 GB, free: 2.973 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.845e-06/0.2095, allocations: 0 / 0.7714 GB, free: 2.973 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 0.0001103/0.2096, allocations: 129.8 kB / 0.7716 GB, free: 2.836 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.49e-05/0.2097, allocations: 15.91 kB / 0.7716 GB, free: 2.82 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.043e-05/0.2097, allocations: 33.11 kB / 0.7716 GB, free: 2.785 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.2097, allocations: 0 / 0.7716 GB, free: 2.785 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.2097, allocations: 0 / 0.7716 GB, free: 2.785 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.2097, allocations: 0 / 0.7716 GB, free: 2.785 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001944/0.2099, allocations: 213.6 kB / 0.7718 GB, free: 2.527 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.2099, allocations: 4 kB / 0.7718 GB, free: 2.523 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.41e-05/0.21, allocations: 7.984 kB / 0.7718 GB, free: 2.516 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.21, allocations: 4 kB / 0.7718 GB, free: 2.512 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.528e-06/0.2101, allocations: 3.938 kB / 0.7718 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.2101, allocations: 0 / 0.7718 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.2101, allocations: 11.94 kB / 0.7718 GB, free: 2.496 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003066/0.2104, allocations: 124.9 kB / 0.772 GB, free: 2.355 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.125e-05/0.2105, allocations: 89.02 kB / 0.7721 GB, free: 2.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.293e-05/0.2105, allocations: 3.938 kB / 0.7721 GB, free: 2.246 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.352e-05/0.2106, allocations: 11.98 kB / 0.7721 GB, free: 2.234 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.571e-05/0.2106, allocations: 8 kB / 0.7721 GB, free: 2.227 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.547e-05/0.2107, allocations: 7.984 kB / 0.7721 GB, free: 2.219 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001936/0.2109, allocations: 184.5 kB / 0.7723 GB, free: 2.039 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2109, allocations: 0 / 0.7723 GB, free: 2.039 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002164/0.2111, allocations: 23.94 kB / 0.7723 GB, free: 2.016 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.0007508/0.2118, allocations: 0.6892 MB / 0.773 GB, free: 1.309 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002891/0.2121, allocations: 59.89 kB / 0.773 GB, free: 1.25 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.2122, allocations: 3.984 kB / 0.773 GB, free: 1.246 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001146/0.2123, allocations: 31.91 kB / 0.773 GB, free: 1.215 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002872/0.2126, allocations: 45.81 kB / 0.7731 GB, free: 1.176 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3597/0.5722, allocations: 1.744 MB / 0.7748 GB, free: 12 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001894/0.5725, allocations: 0.7208 MB / 0.7755 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001129/0.5726, allocations: 15.66 kB / 0.7755 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.912e-05/0.5727, allocations: 44.25 kB / 0.7756 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of SimCode: time 1.232e-06/0.5727, allocations: 2.625 kB / 0.7756 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0274/0.6001, allocations: 3.627 MB / 0.7791 GB, free: 10.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.942/8.542, allocations: 5.375 kB / 0.7791 GB, free: 10.89 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_JSONWriter.fmu > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)