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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7093/0.7093, allocations: 141.8 MB / 149.1 MB, free: 3.93 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001067/0.001067, allocations: 183.7 kB / 181.9 MB, free: 15.65 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.237/1.237, allocations: 221.4 MB / 436 MB, free: 8.777 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009088/0.0009088, allocations: 98.06 kB / 0.507 GB, free: 24.21 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001842/0.001842, allocations: 274 kB / 0.5884 GB, free: 11.8 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1677/0.1696, allocations: 89.64 MB / 0.676 GB, free: 2.078 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.341/0.5107, allocations: 82.76 MB / 0.7568 GB, free: 112.4 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1048/0.6156, allocations: 109.8 MB / 0.864 GB, free: 2.438 MB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002809/0.6159, allocations: 84.81 kB / 0.8641 GB, free: 2.359 MB / 0.5263 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.009393/0.6253, allocations: 3.443 MB / 0.8675 GB, free: 14.9 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.6254, allocations: 8 kB / 0.8675 GB, free: 14.89 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.326e-05/0.6254, allocations: 28.58 kB / 0.8675 GB, free: 14.87 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002957/0.6257, allocations: 227.6 kB / 0.8677 GB, free: 14.6 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.133e-05/0.6258, allocations: 8 kB / 0.8677 GB, free: 14.59 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.601e-05/0.6258, allocations: 4 kB / 0.8677 GB, free: 14.59 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001116/0.6259, allocations: 31.98 kB / 0.8677 GB, free: 14.56 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001419/0.6261, allocations: 80.8 kB / 0.8678 GB, free: 14.48 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.805e-06/0.6261, allocations: 0 / 0.8678 GB, free: 14.48 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.066e-05/0.6261, allocations: 0 / 0.8678 GB, free: 14.48 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.6261, allocations: 4 kB / 0.8678 GB, free: 14.47 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000601/0.6267, allocations: 369 kB / 0.8682 GB, free: 14.07 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 5.42e-05/0.6268, allocations: 26.58 kB / 0.8682 GB, free: 14.04 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.226e-05/0.6268, allocations: 12.92 kB / 0.8682 GB, free: 14.02 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.6269, allocations: 3.984 kB / 0.8682 GB, free: 14.02 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001146/0.627, allocations: 78.56 kB / 0.8683 GB, free: 13.93 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.627, allocations: 0 / 0.8683 GB, free: 13.93 MB / 0.5419 GB Notification: Performance of matching and sorting (n=3): time 0.0001828/0.6272, allocations: 57.5 kB / 0.8684 GB, free: 13.86 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.157e-05/0.6272, allocations: 85.11 kB / 0.8684 GB, free: 13.76 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002013/0.6274, allocations: 198 kB / 0.8686 GB, free: 13.56 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 1.912e-05/0.6275, allocations: 29.69 kB / 0.8686 GB, free: 13.52 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 5.059e-05/0.6275, allocations: 108 kB / 0.8688 GB, free: 13.41 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 1.67e-05/0.6275, allocations: 3.906 kB / 0.8688 GB, free: 13.41 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.428e-06/0.6275, allocations: 0 / 0.8688 GB, free: 13.41 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001191/0.6277, allocations: 330.8 kB / 0.8691 GB, free: 13.08 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.492e-05/0.6277, allocations: 8 kB / 0.8691 GB, free: 13.07 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.825e-05/0.6277, allocations: 39.38 kB / 0.8691 GB, free: 13.02 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.811e-05/0.6278, allocations: 9.188 kB / 0.8691 GB, free: 13.01 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.6278, allocations: 0 / 0.8691 GB, free: 13.01 MB / 0.5419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001149/0.6279, allocations: 65.44 kB / 0.8692 GB, free: 12.94 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.6279, allocations: 4 kB / 0.8692 GB, free: 12.94 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.6279, allocations: 2.188 kB / 0.8692 GB, free: 12.94 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.119e-05/0.628, allocations: 11.91 kB / 0.8692 GB, free: 12.93 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001278/0.6281, allocations: 23.92 kB / 0.8692 GB, free: 12.9 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.6281, allocations: 3.984 kB / 0.8692 GB, free: 12.9 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001036/0.6282, allocations: 20 kB / 0.8692 GB, free: 12.88 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.008e-05/0.6282, allocations: 3.984 kB / 0.8693 GB, free: 12.88 MB / 0.5419 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 7.134e-05/0.6283, allocations: 108.9 kB / 0.8694 GB, free: 12.76 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.052e-05/0.6284, allocations: 19.72 kB / 0.8694 GB, free: 12.74 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.525e-05/0.6284, allocations: 13.03 kB / 0.8694 GB, free: 12.73 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.6284, allocations: 0 / 0.8694 GB, free: 12.73 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.6284, allocations: 3.984 kB / 0.8694 GB, free: 12.73 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.6284, allocations: 0 / 0.8694 GB, free: 12.73 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001391/0.6286, allocations: 190.2 kB / 0.8696 GB, free: 12.5 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.6286, allocations: 4 kB / 0.8696 GB, free: 12.5 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.45e-05/0.6287, allocations: 15.98 kB / 0.8696 GB, free: 12.48 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.6287, allocations: 0 / 0.8696 GB, free: 12.48 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/0.6287, allocations: 4 kB / 0.8696 GB, free: 12.48 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.6287, allocations: 7.844 kB / 0.8696 GB, free: 12.47 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.6287, allocations: 0 / 0.8696 GB, free: 12.47 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001254/0.6288, allocations: 89.06 kB / 0.8697 GB, free: 12.37 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002143/0.6291, allocations: 477.2 kB / 0.8701 GB, free: 11.88 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.217e-05/0.6291, allocations: 88.92 kB / 0.8702 GB, free: 11.77 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.749e-05/0.6292, allocations: 1.031 kB / 0.8702 GB, free: 11.77 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.6293, allocations: 23.98 kB / 0.8703 GB, free: 11.75 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.774e-05/0.6293, allocations: 7.984 kB / 0.8703 GB, free: 11.74 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.075e-05/0.6293, allocations: 4 kB / 0.8703 GB, free: 11.74 MB / 0.5419 GB Notification: Performance of sort global known variables: time 0.0001328/0.6295, allocations: 162.1 kB / 0.8704 GB, free: 11.58 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0007806/0.6303, allocations: 27.84 kB / 0.8704 GB, free: 11.55 MB / 0.5419 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.0002578/0.6305, allocations: 122.5 kB / 0.8706 GB, free: 11.43 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 9.895e-05/0.6306, allocations: 20 kB / 0.8706 GB, free: 11.41 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.6307, allocations: 0 / 0.8706 GB, free: 11.41 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 3.119e-05/0.6307, allocations: 12.12 kB / 0.8706 GB, free: 11.4 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002431/0.6309, allocations: 41.2 kB / 0.8706 GB, free: 11.36 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004575/0.6314, allocations: 183.4 kB / 0.8708 GB, free: 11.16 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003152/0.6317, allocations: 0.7466 MB / 0.8715 GB, free: 10.39 MB / 0.5419 GB Notification: Performance of SimCode: time 2.8e-07/0.6318, allocations: 0 / 0.8715 GB, free: 10.39 MB / 0.5419 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)