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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.8167/0.8167, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 176.2 kB / 187.3 MB, free: 11.9 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.513/1.513, allocations: 221.3 MB / 441.4 MB, free: 4.598 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000914/0.0009139, allocations: 100.8 kB / 0.5124 GB, free: 24.23 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001892/0.001893, allocations: 279.3 kB / 0.5939 GB, free: 7.961 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.579e-05/4.598e-05, allocations: 4 kB / 0.6835 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4556/0.4557, allocations: 82.77 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.124/0.5797, allocations: 110.5 MB / 0.8723 GB, free: 14.01 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002721/0.58, allocations: 79.94 kB / 0.8724 GB, free: 13.93 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.009617/0.5897, allocations: 3.325 MB / 0.8756 GB, free: 10.63 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.076e-06/0.5897, allocations: 4 kB / 0.8756 GB, free: 10.62 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.444e-05/0.5898, allocations: 4 kB / 0.8756 GB, free: 10.62 MB / 0.5417 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.0006105/0.5904, allocations: 438 kB / 0.876 GB, free: 10.15 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 7.318e-05/0.5905, allocations: 12.03 kB / 0.876 GB, free: 10.14 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.099e-05/0.5905, allocations: 38.5 kB / 0.8761 GB, free: 10.09 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.969e-05/0.5906, allocations: 23.81 kB / 0.8761 GB, free: 10.07 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003381/0.5909, allocations: 223.7 kB / 0.8763 GB, free: 9.805 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.591, allocations: 11.94 kB / 0.8763 GB, free: 9.793 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.825e-05/0.591, allocations: 4 kB / 0.8763 GB, free: 9.789 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002182/0.5912, allocations: 82.67 kB / 0.8764 GB, free: 9.703 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.5912, allocations: 0 / 0.8764 GB, free: 9.703 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.281e-05/0.5913, allocations: 4 kB / 0.8764 GB, free: 9.699 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.5913, allocations: 3.984 kB / 0.8764 GB, free: 9.695 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.628e-05/0.5914, allocations: 39.98 kB / 0.8765 GB, free: 9.656 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006613/0.592, allocations: 392.5 kB / 0.8768 GB, free: 9.223 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 5.241e-05/0.5921, allocations: 18.58 kB / 0.8769 GB, free: 9.195 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.337e-05/0.5921, allocations: 16.91 kB / 0.8769 GB, free: 9.176 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.476e-05/0.5921, allocations: 7.938 kB / 0.8769 GB, free: 9.168 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000155/0.5923, allocations: 81.11 kB / 0.877 GB, free: 9.07 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.5923, allocations: 0 / 0.877 GB, free: 9.07 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.0002028/0.5925, allocations: 61.47 kB / 0.877 GB, free: 9.004 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.158e-05/0.5926, allocations: 81.09 kB / 0.8771 GB, free: 8.906 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002689/0.5929, allocations: 221 kB / 0.8773 GB, free: 8.688 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.208e-05/0.5929, allocations: 33.7 kB / 0.8773 GB, free: 8.648 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/0.593, allocations: 128 kB / 0.8775 GB, free: 8.52 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.256e-05/0.5931, allocations: 7.812 kB / 0.8775 GB, free: 8.512 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.338e-06/0.5931, allocations: 3.938 kB / 0.8775 GB, free: 8.508 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001581/0.5932, allocations: 326.8 kB / 0.8778 GB, free: 8.18 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.931e-05/0.5933, allocations: 12 kB / 0.8778 GB, free: 8.168 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.122e-05/0.5933, allocations: 31.48 kB / 0.8778 GB, free: 8.125 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.338e-05/0.5934, allocations: 23.97 kB / 0.8778 GB, free: 8.102 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.5934, allocations: 0 / 0.8778 GB, free: 8.102 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001243/0.5935, allocations: 73.44 kB / 0.8779 GB, free: 8.023 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.5935, allocations: 5.406 kB / 0.8779 GB, free: 8.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.5935, allocations: 0 / 0.8779 GB, free: 8.02 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.368e-05/0.5936, allocations: 11.89 kB / 0.8779 GB, free: 8.008 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000124/0.5937, allocations: 16.08 kB / 0.8779 GB, free: 7.992 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.5937, allocations: 4 kB / 0.8779 GB, free: 7.988 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.188e-05/0.5938, allocations: 11.98 kB / 0.878 GB, free: 7.977 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.5938, allocations: 4 kB / 0.878 GB, free: 7.973 MB / 0.5417 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001055/0.594, allocations: 116.8 kB / 0.8781 GB, free: 7.852 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.936e-05/0.594, allocations: 15.81 kB / 0.8781 GB, free: 7.836 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.204e-05/0.594, allocations: 21.25 kB / 0.8781 GB, free: 7.812 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.594, allocations: 0 / 0.8781 GB, free: 7.812 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.5941, allocations: 3.953 kB / 0.8781 GB, free: 7.809 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.5941, allocations: 3.984 kB / 0.8781 GB, free: 7.805 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001876/0.5943, allocations: 213.6 kB / 0.8783 GB, free: 7.547 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.5943, allocations: 0 / 0.8783 GB, free: 7.547 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.265e-05/0.5944, allocations: 16.12 kB / 0.8783 GB, free: 7.531 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.5944, allocations: 0 / 0.8783 GB, free: 7.531 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.484e-05/0.5944, allocations: 7.984 kB / 0.8783 GB, free: 7.523 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.5944, allocations: 4 kB / 0.8783 GB, free: 7.52 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.5944, allocations: 0 / 0.8783 GB, free: 7.52 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001451/0.5946, allocations: 100.8 kB / 0.8784 GB, free: 7.402 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 7.635e-05/0.5946, allocations: 92.91 kB / 0.8785 GB, free: 7.293 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.527e-05/0.5947, allocations: 7.938 kB / 0.8785 GB, free: 7.285 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.158e-05/0.5948, allocations: 15.98 kB / 0.8786 GB, free: 7.27 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.979e-05/0.5948, allocations: 4 kB / 0.8786 GB, free: 7.266 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.519e-05/0.5949, allocations: 8 kB / 0.8786 GB, free: 7.258 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001801/0.5951, allocations: 185.3 kB / 0.8787 GB, free: 7.078 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5951, allocations: 0 / 0.8787 GB, free: 7.078 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002062/0.5953, allocations: 20 kB / 0.8788 GB, free: 7.059 MB / 0.5417 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006006/0.5959, allocations: 0.6523 MB / 0.8794 GB, free: 6.387 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001093/0.596, allocations: 31.92 kB / 0.8794 GB, free: 6.355 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.596, allocations: 0 / 0.8794 GB, free: 6.355 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 3.415e-05/0.596, allocations: 12.19 kB / 0.8794 GB, free: 6.344 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002572/0.5963, allocations: 44.28 kB / 0.8795 GB, free: 6.297 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005471/0.5969, allocations: 235.5 kB / 0.8797 GB, free: 6.031 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003308/0.5972, allocations: 0.7238 MB / 0.8804 GB, free: 5.281 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 6.711e-05/0.5973, allocations: 16.73 kB / 0.8804 GB, free: 5.266 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.258e-05/0.5974, allocations: 43.41 kB / 0.8805 GB, free: 5.227 MB / 0.5417 GB Notification: Performance of SimCode: time 3.31e-07/0.5974, allocations: 4 kB / 0.8805 GB, free: 5.223 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01585/0.6132, allocations: 3.232 MB / 0.8836 GB, free: 2.148 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002235/0.6135, allocations: 166.9 kB / 0.8838 GB, free: 1.922 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.767/2.38, allocations: 9.312 kB / 0.8838 GB, free: 1.918 MB / 0.5417 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/linux/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)