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.8329/0.8329, allocations: 141.8 MB / 149.3 MB, free: 9.23 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.001315/0.001315, allocations: 176.8 kB / 182.2 MB, free: 9.453 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.635/1.635, allocations: 221.5 MB / 436.4 MB, free: 13.31 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.001036/0.001036, allocations: 94.08 kB / 0.5074 GB, free: 10.14 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001823/0.001823, allocations: 278.2 kB / 0.5889 GB, free: 54.68 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.665e-05/1.661e-05, allocations: 0 / 0.6766 GB, free: 12.76 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4875/0.4876, allocations: 82.78 MB / 0.7575 GB, free: 31.93 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1522/0.6398, allocations: 109.8 MB / 0.8647 GB, free: 1.945 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003245/0.6402, allocations: 83.94 kB / 0.8648 GB, free: 1.863 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01055/0.6508, allocations: 3.306 MB / 0.868 GB, free: 14.56 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.134e-06/0.6508, allocations: 0 / 0.868 GB, free: 14.56 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.992e-05/0.6509, allocations: 8 kB / 0.868 GB, free: 14.55 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.0006359/0.6515, allocations: 434 kB / 0.8685 GB, free: 14.08 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.329e-05/0.6516, allocations: 12.03 kB / 0.8685 GB, free: 14.07 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.828e-05/0.6517, allocations: 15.81 kB / 0.8685 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003841/0.6521, allocations: 239.6 kB / 0.8687 GB, free: 13.78 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.413e-05/0.6521, allocations: 7.953 kB / 0.8687 GB, free: 13.77 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.508e-05/0.6521, allocations: 4 kB / 0.8687 GB, free: 13.77 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001088/0.6523, allocations: 24 kB / 0.8687 GB, free: 13.74 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001748/0.6524, allocations: 85.59 kB / 0.8688 GB, free: 13.65 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.166e-06/0.6525, allocations: 0 / 0.8688 GB, free: 13.65 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.483e-05/0.6525, allocations: 3.938 kB / 0.8688 GB, free: 13.65 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.6525, allocations: 0 / 0.8688 GB, free: 13.65 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006733/0.6532, allocations: 365 kB / 0.8692 GB, free: 13.25 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 6.473e-05/0.6533, allocations: 18.58 kB / 0.8692 GB, free: 13.23 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.3e-05/0.6533, allocations: 12.92 kB / 0.8692 GB, free: 13.21 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.741e-05/0.6533, allocations: 0 / 0.8692 GB, free: 13.21 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001491/0.6535, allocations: 81.11 kB / 0.8693 GB, free: 13.11 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 9.72e-07/0.6535, allocations: 0 / 0.8693 GB, free: 13.11 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.0002318/0.6537, allocations: 73.44 kB / 0.8694 GB, free: 13.04 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.691e-05/0.6538, allocations: 77.11 kB / 0.8694 GB, free: 12.94 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002308/0.654, allocations: 194.1 kB / 0.8696 GB, free: 12.74 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.511e-05/0.6541, allocations: 25.7 kB / 0.8696 GB, free: 12.71 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 8.594e-05/0.6542, allocations: 131.9 kB / 0.8698 GB, free: 12.58 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.34e-05/0.6542, allocations: 15.91 kB / 0.8698 GB, free: 12.56 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.08e-06/0.6542, allocations: 0 / 0.8698 GB, free: 12.56 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001375/0.6543, allocations: 322.8 kB / 0.8701 GB, free: 12.24 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.52e-05/0.6544, allocations: 11.98 kB / 0.8701 GB, free: 12.23 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.801e-05/0.6544, allocations: 31.42 kB / 0.8701 GB, free: 12.18 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.263e-05/0.6545, allocations: 13.22 kB / 0.8701 GB, free: 12.17 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.6545, allocations: 0 / 0.8701 GB, free: 12.17 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001298/0.6546, allocations: 69.44 kB / 0.8702 GB, free: 12.1 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.6546, allocations: 7.938 kB / 0.8702 GB, free: 12.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.6546, allocations: 4 kB / 0.8702 GB, free: 12.09 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.6547, allocations: 0 / 0.8702 GB, free: 12.09 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.6548, allocations: 15.98 kB / 0.8702 GB, free: 12.07 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.6548, allocations: 1.109 kB / 0.8702 GB, free: 12.07 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00011/0.6549, allocations: 27.88 kB / 0.8703 GB, free: 12.04 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.969e-06/0.6549, allocations: 0 / 0.8703 GB, free: 12.04 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 9.139e-05/0.655, allocations: 108.9 kB / 0.8704 GB, free: 11.93 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001086/0.6552, allocations: 65.5 kB / 0.8704 GB, free: 11.86 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.771e-05/0.6552, allocations: 15.81 kB / 0.8704 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.462e-05/0.6552, allocations: 17.56 kB / 0.8705 GB, free: 11.82 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.6553, allocations: 7.953 kB / 0.8705 GB, free: 11.82 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.6553, allocations: 4 kB / 0.8705 GB, free: 11.81 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.227e-06/0.6553, allocations: 0 / 0.8705 GB, free: 11.81 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001878/0.6555, allocations: 190.1 kB / 0.8707 GB, free: 11.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.6555, allocations: 0 / 0.8707 GB, free: 11.59 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.161e-05/0.6556, allocations: 15.98 kB / 0.8707 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/0.6556, allocations: 0 / 0.8707 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/0.6556, allocations: 0 / 0.8707 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.063e-06/0.6556, allocations: 0 / 0.8707 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.6556, allocations: 0 / 0.8707 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001329/0.6558, allocations: 100.8 kB / 0.8708 GB, free: 11.46 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 7.796e-05/0.6559, allocations: 100.9 kB / 0.8709 GB, free: 11.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.423e-05/0.6559, allocations: 0 / 0.8709 GB, free: 11.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.128e-05/0.656, allocations: 11.98 kB / 0.8709 GB, free: 11.33 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.499e-05/0.6561, allocations: 7.984 kB / 0.8709 GB, free: 11.32 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.883e-05/0.6561, allocations: 4 kB / 0.8709 GB, free: 11.32 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001493/0.6562, allocations: 156.7 kB / 0.871 GB, free: 11.16 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2e-07/0.6563, allocations: 4 kB / 0.871 GB, free: 11.16 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002341/0.6565, allocations: 19.95 kB / 0.8711 GB, free: 11.14 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.000604/0.6571, allocations: 0.6486 MB / 0.8717 GB, free: 10.47 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.000123/0.6572, allocations: 31.97 kB / 0.8717 GB, free: 10.44 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.6573, allocations: 0 / 0.8717 GB, free: 10.44 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 2.95e-05/0.6573, allocations: 4 kB / 0.8717 GB, free: 10.43 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002786/0.6576, allocations: 36.83 kB / 0.8718 GB, free: 10.39 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000607/0.6582, allocations: 242.2 kB / 0.872 GB, free: 10.12 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003284/0.6585, allocations: 0.7313 MB / 0.8727 GB, free: 9.367 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 7.791e-05/0.6586, allocations: 16.59 kB / 0.8727 GB, free: 9.352 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.087e-05/0.6587, allocations: 39.42 kB / 0.8728 GB, free: 9.312 MB / 0.5417 GB Notification: Performance of SimCode: time 2.81e-07/0.6587, allocations: 4 kB / 0.8728 GB, free: 9.309 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02527/0.684, allocations: 2.726 MB / 0.8754 GB, free: 6.613 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002647/0.6843, allocations: 146.6 kB / 0.8756 GB, free: 6.422 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.82/2.504, allocations: 4.031 kB / 0.8756 GB, free: 6.418 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)