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.005153/0.005153, allocations: 96.7 kB / 15.73 MB, free: 6.043 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.001263/0.001263, allocations: 196.7 kB / 16.67 MB, free: 5.969 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.424/1.424, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002521/0.002521, allocations: 286.6 kB / 290.8 MB, free: 1.891 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.135/1.135, allocations: 178.6 MB / 0.5074 GB, free: 4.477 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002711/0.002712, allocations: 104.4 kB / 0.6943 GB, free: 3.629 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5667/0.5694, allocations: 89.13 MB / 0.7813 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.003783/0.5733, allocations: 1.655 MB / 0.7829 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001182/0.5745, allocations: 0.535 MB / 0.7835 GB, free: 12.31 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.68e-05/0.5746, allocations: 2.438 kB / 0.7835 GB, free: 12.31 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.000222/0.5748, allocations: 27.84 kB / 0.7835 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0003096/0.5752, allocations: 65.22 kB / 0.7835 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002067/0.5754, allocations: 66.34 kB / 0.7836 GB, free: 12.22 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002401/0.5756, allocations: 137.1 kB / 0.7837 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000177/0.5758, allocations: 46.33 kB / 0.7838 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001525/0.576, allocations: 58.39 kB / 0.7838 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001426/0.5761, allocations: 59.2 kB / 0.7839 GB, free: 12.08 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.581e-05/0.5762, allocations: 8.594 kB / 0.7839 GB, free: 12.08 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 8.055e-05/0.5763, allocations: 25.44 kB / 0.7839 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001077/0.5764, allocations: 43.23 kB / 0.784 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 7.981e-05/0.5765, allocations: 57.02 kB / 0.784 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002935/0.5768, allocations: 144.9 kB / 0.7842 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.5768, allocations: 0 / 0.7842 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.773e-06/0.5768, allocations: 4 kB / 0.7842 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.731e-06/0.5768, allocations: 1.031 kB / 0.7842 GB, free: 11.95 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.0007785/0.5776, allocations: 478.4 kB / 0.7846 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.5776, allocations: 10.59 kB / 0.7846 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.988e-05/0.5777, allocations: 38.33 kB / 0.7847 GB, free: 11.47 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.325e-05/0.5777, allocations: 18 kB / 0.7847 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004071/0.5782, allocations: 242.1 kB / 0.7849 GB, free: 11.22 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.934e-05/0.5782, allocations: 11.61 kB / 0.7849 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.98e-05/0.5782, allocations: 8.375 kB / 0.7849 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003321/0.5786, allocations: 106.9 kB / 0.785 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.5786, allocations: 0 / 0.785 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.739e-05/0.5786, allocations: 5.156 kB / 0.785 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.5786, allocations: 1.344 kB / 0.785 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002615/0.5789, allocations: 64.2 kB / 0.7851 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007407/0.5796, allocations: 380.5 kB / 0.7855 GB, free: 10.83 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000171/0.5798, allocations: 36.61 kB / 0.7855 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001329/0.58, allocations: 36.53 kB / 0.7855 GB, free: 10.79 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.082e-05/0.58, allocations: 5.188 kB / 0.7855 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003012/0.5803, allocations: 101.6 kB / 0.7856 GB, free: 10.7 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.703e-06/0.5803, allocations: 0 / 0.7856 GB, free: 10.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0005289/0.5808, allocations: 130.1 kB / 0.7858 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.607e-05/0.5809, allocations: 77.95 kB / 0.7858 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003587/0.5813, allocations: 255 kB / 0.7861 GB, free: 10.41 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.172e-05/0.5813, allocations: 31.52 kB / 0.7861 GB, free: 10.37 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001487/0.5815, allocations: 127 kB / 0.7862 GB, free: 10.26 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.695e-05/0.5815, allocations: 9.969 kB / 0.7862 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.22e-05/0.5816, allocations: 17.94 kB / 0.7863 GB, free: 10.23 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001923/0.5818, allocations: 333.2 kB / 0.7866 GB, free: 9.906 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000124/0.5819, allocations: 28.52 kB / 0.7866 GB, free: 9.898 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001402/0.5821, allocations: 46.8 kB / 0.7866 GB, free: 9.863 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002438/0.5823, allocations: 69.62 kB / 0.7867 GB, free: 9.828 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.5823, allocations: 0 / 0.7867 GB, free: 9.828 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003113/0.5826, allocations: 102.4 kB / 0.7868 GB, free: 9.777 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.5827, allocations: 8.969 kB / 0.7868 GB, free: 9.773 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.5827, allocations: 5.062 kB / 0.7868 GB, free: 9.77 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2e-05/0.5827, allocations: 5.625 kB / 0.7868 GB, free: 9.766 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001235/0.5828, allocations: 15.41 kB / 0.7868 GB, free: 9.762 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.5829, allocations: 1.953 kB / 0.7868 GB, free: 9.762 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001003/0.583, allocations: 17.83 kB / 0.7869 GB, free: 9.754 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.097e-05/0.583, allocations: 2.375 kB / 0.7869 GB, free: 9.754 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.0001375/0.5831, allocations: 128 kB / 0.787 GB, free: 9.633 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.332e-05/0.5832, allocations: 20.14 kB / 0.787 GB, free: 9.621 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.607e-05/0.5832, allocations: 22.77 kB / 0.787 GB, free: 9.605 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.5832, allocations: 0 / 0.787 GB, free: 9.605 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.5832, allocations: 0.6562 kB / 0.787 GB, free: 9.605 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.5832, allocations: 1.531 kB / 0.787 GB, free: 9.605 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002405/0.5835, allocations: 212.5 kB / 0.7872 GB, free: 9.398 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.5835, allocations: 0.6562 kB / 0.7872 GB, free: 9.398 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.215e-05/0.5836, allocations: 11.48 kB / 0.7872 GB, free: 9.398 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.5836, allocations: 0.6562 kB / 0.7872 GB, free: 9.398 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.459e-05/0.5836, allocations: 11.94 kB / 0.7873 GB, free: 9.387 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.5836, allocations: 2.359 kB / 0.7873 GB, free: 9.387 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-06/0.5836, allocations: 3.938 kB / 0.7873 GB, free: 9.383 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003327/0.584, allocations: 125.4 kB / 0.7874 GB, free: 9.297 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 7.123e-05/0.5841, allocations: 89.55 kB / 0.7875 GB, free: 9.195 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.824e-05/0.5841, allocations: 5.703 kB / 0.7875 GB, free: 9.191 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.588e-05/0.5842, allocations: 12.95 kB / 0.7875 GB, free: 9.188 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.769e-05/0.5842, allocations: 7.984 kB / 0.7875 GB, free: 9.184 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.8e-05/0.5843, allocations: 5.812 kB / 0.7875 GB, free: 9.184 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002226/0.5845, allocations: 186.9 kB / 0.7877 GB, free: 9.078 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5845, allocations: 0 / 0.7877 GB, free: 9.078 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002327/0.5848, allocations: 23.09 kB / 0.7877 GB, free: 9.074 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.0008552/0.5856, allocations: 0.6896 MB / 0.7884 GB, free: 8.445 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003179/0.586, allocations: 61.42 kB / 0.7884 GB, free: 8.43 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.586, allocations: 1.094 kB / 0.7884 GB, free: 8.43 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001267/0.5861, allocations: 31.7 kB / 0.7885 GB, free: 8.422 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003247/0.5864, allocations: 47.55 kB / 0.7885 GB, free: 8.414 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002453/0.5889, allocations: 1.756 MB / 0.7902 GB, free: 7.062 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003972/0.5893, allocations: 0.7195 MB / 0.7909 GB, free: 6.363 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001096/0.5894, allocations: 23.61 kB / 0.7909 GB, free: 6.355 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000104/0.5895, allocations: 43.33 kB / 0.791 GB, free: 6.324 MB / 0.5606 GB Notification: Performance of SimCode: time 8.31e-07/0.5895, allocations: 0 / 0.791 GB, free: 6.324 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02715/0.6167, allocations: 3.629 MB / 0.7945 GB, free: 5.488 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.942/8.559, allocations: 11.61 kB / 0.7945 GB, free: 5.484 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)