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.9693/0.9693, allocations: 143.3 MB / 158.3 MB, free: 5.773 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001481/0.001481, allocations: 173.1 kB / 191.5 MB, free: 5.746 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.545/1.545, allocations: 223.2 MB / 447.7 MB, free: 4.793 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.0009302/0.0009299, allocations: 96.3 kB / 0.5187 GB, free: 1.141 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001784/0.001784, allocations: 271.1 kB / 0.6005 GB, free: 48.73 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004492/0.0004492, allocations: 14.97 kB / 0.6929 GB, free: 59.59 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2054/0.2059, allocations: 82.8 MB / 0.7738 GB, free: 13.73 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6002/0.8061, allocations: 110.6 MB / 0.8818 GB, free: 32.25 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/0.8064, allocations: 83.52 kB / 0.8818 GB, free: 32.25 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.009186/0.8156, allocations: 3.335 MB / 0.8851 GB, free: 31.8 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.896e-06/0.8157, allocations: 0.6094 kB / 0.8851 GB, free: 31.8 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.509e-05/0.8157, allocations: 3.031 kB / 0.8851 GB, free: 31.8 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.0005693/0.8163, allocations: 460.5 kB / 0.8855 GB, free: 31.4 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.8163, allocations: 9.422 kB / 0.8856 GB, free: 31.4 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.925e-05/0.8164, allocations: 37.05 kB / 0.8856 GB, free: 31.36 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.136e-05/0.8164, allocations: 24.36 kB / 0.8856 GB, free: 31.35 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002885/0.8167, allocations: 238.9 kB / 0.8858 GB, free: 31.12 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.445e-05/0.8168, allocations: 6.125 kB / 0.8858 GB, free: 31.12 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.432e-05/0.8168, allocations: 2.938 kB / 0.8859 GB, free: 31.12 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002983/0.8171, allocations: 110.4 kB / 0.886 GB, free: 31.09 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.8171, allocations: 4.438 kB / 0.886 GB, free: 31.09 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.508e-05/0.8171, allocations: 4 kB / 0.886 GB, free: 31.09 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.8171, allocations: 2.938 kB / 0.886 GB, free: 31.09 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002525/0.8174, allocations: 80.97 kB / 0.886 GB, free: 31.08 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006453/0.818, allocations: 387.4 kB / 0.8864 GB, free: 30.8 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001527/0.8182, allocations: 55.27 kB / 0.8865 GB, free: 30.77 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.983e-05/0.8182, allocations: 0.5625 kB / 0.8865 GB, free: 30.77 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002397/0.8185, allocations: 111.5 kB / 0.8866 GB, free: 30.7 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 1.393e-06/0.8185, allocations: 0 / 0.8866 GB, free: 30.7 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.0004407/0.8189, allocations: 153 kB / 0.8867 GB, free: 30.64 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.32e-05/0.819, allocations: 80.55 kB / 0.8868 GB, free: 30.55 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002246/0.8192, allocations: 220.1 kB / 0.887 GB, free: 30.45 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.579e-05/0.8193, allocations: 25.7 kB / 0.887 GB, free: 30.42 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 6.357e-05/0.8193, allocations: 127 kB / 0.8872 GB, free: 30.34 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.854e-05/0.8193, allocations: 14.62 kB / 0.8872 GB, free: 30.33 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.439e-06/0.8194, allocations: 0 / 0.8872 GB, free: 30.33 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 7.212e-05/0.8194, allocations: 329.9 kB / 0.8875 GB, free: 30.01 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001149/0.8196, allocations: 32.27 kB / 0.8875 GB, free: 30.01 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001223/0.8197, allocations: 55.84 kB / 0.8876 GB, free: 29.98 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001235/0.8198, allocations: 30.86 kB / 0.8876 GB, free: 29.98 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.8198, allocations: 2.125 kB / 0.8876 GB, free: 29.98 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002914/0.8201, allocations: 116.9 kB / 0.8877 GB, free: 29.93 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.8202, allocations: 5.906 kB / 0.8877 GB, free: 29.93 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.8202, allocations: 1.375 kB / 0.8877 GB, free: 29.93 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.8202, allocations: 7.938 kB / 0.8877 GB, free: 29.92 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/0.8203, allocations: 20.89 kB / 0.8877 GB, free: 29.92 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.8203, allocations: 0 / 0.8877 GB, free: 29.92 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.742e-05/0.8204, allocations: 19.14 kB / 0.8878 GB, free: 29.91 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.658e-06/0.8205, allocations: 7.5 kB / 0.8878 GB, free: 29.91 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.724e-05/0.8206, allocations: 130.6 kB / 0.8879 GB, free: 29.79 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.788e-05/0.8206, allocations: 16.06 kB / 0.8879 GB, free: 29.79 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.098e-05/0.8206, allocations: 21.34 kB / 0.8879 GB, free: 29.78 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.8207, allocations: 1.375 kB / 0.8879 GB, free: 29.78 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.8207, allocations: 3.953 kB / 0.8879 GB, free: 29.78 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.688e-06/0.8207, allocations: 1.984 kB / 0.8879 GB, free: 29.78 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001829/0.8209, allocations: 219.2 kB / 0.8881 GB, free: 29.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.8209, allocations: 0 / 0.8881 GB, free: 29.59 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.992e-05/0.821, allocations: 14.84 kB / 0.8882 GB, free: 29.59 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.821, allocations: 5.891 kB / 0.8882 GB, free: 29.58 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.887e-06/0.821, allocations: 0 / 0.8882 GB, free: 29.58 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.756e-06/0.821, allocations: 0.5156 kB / 0.8882 GB, free: 29.58 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.821, allocations: 1.375 kB / 0.8882 GB, free: 29.58 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002921/0.8213, allocations: 147.5 kB / 0.8883 GB, free: 29.5 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.647e-05/0.8214, allocations: 98.03 kB / 0.8884 GB, free: 29.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.562e-05/0.8214, allocations: 0.7031 kB / 0.8884 GB, free: 29.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.007e-05/0.8215, allocations: 15.95 kB / 0.8884 GB, free: 29.39 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.206e-05/0.8216, allocations: 5.922 kB / 0.8884 GB, free: 29.39 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.967e-05/0.8216, allocations: 10.89 kB / 0.8884 GB, free: 29.39 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001692/0.8218, allocations: 181.8 kB / 0.8886 GB, free: 29.31 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8218, allocations: 0 / 0.8886 GB, free: 29.31 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002225/0.822, allocations: 28.39 kB / 0.8886 GB, free: 29.3 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 () * 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 (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.0006989/0.8227, allocations: 0.7078 MB / 0.8893 GB, free: 28.68 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002991/0.823, allocations: 66.02 kB / 0.8894 GB, free: 28.68 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.823, allocations: 7.781 kB / 0.8894 GB, free: 28.68 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.000126/0.8232, allocations: 37.67 kB / 0.8894 GB, free: 28.68 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002784/0.8235, allocations: 33.45 kB / 0.8895 GB, free: 28.68 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002911/0.8264, allocations: 1.215 MB / 0.8906 GB, free: 43.91 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003167/0.8267, allocations: 0.7249 MB / 0.8914 GB, free: 43.21 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 9.158e-05/0.8268, allocations: 23.33 kB / 0.8914 GB, free: 43.21 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.284e-05/0.8269, allocations: 41.92 kB / 0.8914 GB, free: 43.2 MB / 0.5573 GB Notification: Performance of SimCode: time 7.11e-07/0.8269, allocations: 0 / 0.8914 GB, free: 43.2 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01654/0.8434, allocations: 3.265 MB / 0.8946 GB, free: 42.86 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001895/0.8437, allocations: 193.2 kB / 0.8948 GB, free: 42.62 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.804/2.648, allocations: 0 / 0.8948 GB, free: 42.62 MB / 0.5573 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)