Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AixLib_latest_AixLib.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/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/Modelica_DeviceDrivers 2.1.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo", uses=false) Using package SDF with version 0.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo) Using package Modelica_DeviceDrivers with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1/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 AixLib with version 1.3.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/package.mo) Running command: "" <> buildModelFMU(AixLib.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="AixLib_latest_AixLib_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AixLib.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="AixLib_latest_AixLib_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). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/BoundaryConditions/InternalGains/Examples/InternalGains/Lights.mo:27:20-27:398:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/BoundaryConditions/InternalGains/Examples/InternalGains/Machines.mo:31:20-31:400:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/DataBase/CHP/CHPDataSimple/CHP_Cleanergy_C9G.mo:36:34-36:594:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/DataBase/CHP/CHPDataSimple/CHP_XRGI_9kWel.mo:25:34-25:588:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/DataBase/CHP/CHPDataSimple/CHP_XRGI_9kWel.mo:25:34-25:3852:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/DataBase/Weather/SurfaceOrientation/SurfaceOrientationData_NE_SE_SW_NW_Hor.mo:5:35-5:324:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/DataBase/Weather/SurfaceOrientation/SurfaceOrientationData_N_E_S_W_Hor.mo:5:35-5:320:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/DataBase/Weather/SurfaceOrientation/SurfaceOrientationData_N_E_S_W_RoofN_Roof_S.mo:5:35-5:362:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:6228:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:6853:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:8435:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:9369:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:11505:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:12875:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/ThermalZones/HighOrder/Components/DryAir/InfiltrationRate_DIN12831.mo:20:192-20:2066:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/ThermalZones/HighOrder/Components/DryAir/InfiltrationRate_DIN12831.mo:20:192-20:4252:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/ThermalZones/HighOrder/Components/Examples/DryAir/DryAir_test.mo:71:18-71:405:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.3.2-development/package.mo): time 1.594/1.594, allocations: 265 MB / 272.3 MB, free: 8.797 MB / 218.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001468/0.001468, allocations: 185.2 kB / 329.7 MB, free: 364 kB / 266.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 221.4 MB / 0.5941 GB, free: 14.49 MB / 458.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009795/0.0009795, allocations: 90.75 kB / 0.6993 GB, free: 2.645 MB / 0.5418 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1/package.mo): time 0.05072/0.05072, allocations: 11.89 MB / 0.816 GB, free: 65.54 MB / 0.5418 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo:9:42-9:258:writable] Notification: This is an open source dummy package of a commercial library. If you want it to be supported, you will need to add an implemention on our github repository: https://github.com/Modelica-OpenVendorSpecificLibraries. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo): time 0.0003954/0.0003953, allocations: 18.14 kB / 0.924 GB, free: 86.93 MB / 0.573 GB Notification: Performance of FrontEnd - loaded program: time 0.2374/0.2378, allocations: 117.8 MB / 1.039 GB, free: 9.133 MB / 0.5887 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2386/0.4765, allocations: 110.2 MB / 1.147 GB, free: 10.81 MB / 0.698 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.647/1.124, allocations: 135.6 MB / 1.279 GB, free: 54.35 MB / 0.7293 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002706/1.124, allocations: 81.86 kB / 1.279 GB, free: 54.3 MB / 0.7293 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.009146/1.133, allocations: 3.444 MB / 1.283 GB, free: 51.37 MB / 0.7293 GB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/1.133, allocations: 8 kB / 1.283 GB, free: 51.36 MB / 0.7293 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.941e-05/1.133, allocations: 23.7 kB / 1.283 GB, free: 51.34 MB / 0.7293 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000281/1.133, allocations: 234.2 kB / 1.283 GB, free: 51.08 MB / 0.7293 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/1.133, allocations: 0 / 1.283 GB, free: 51.08 MB / 0.7293 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.615e-05/1.133, allocations: 4 kB / 1.283 GB, free: 51.07 MB / 0.7293 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001019/1.134, allocations: 34.48 kB / 1.283 GB, free: 51.05 MB / 0.7293 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001446/1.134, allocations: 83.98 kB / 1.283 GB, free: 50.98 MB / 0.7293 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/1.134, allocations: 1.969 kB / 1.283 GB, free: 50.98 MB / 0.7293 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.331e-05/1.134, allocations: 0 / 1.283 GB, free: 50.98 MB / 0.7293 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.311e-06/1.134, allocations: 0 / 1.283 GB, free: 50.98 MB / 0.7293 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005549/1.134, allocations: 365.7 kB / 1.283 GB, free: 50.62 MB / 0.7293 GB Notification: Performance of preOpt comSubExp (simulation): time 4.777e-05/1.134, allocations: 21.64 kB / 1.283 GB, free: 50.59 MB / 0.7293 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.155e-05/1.134, allocations: 20.28 kB / 1.283 GB, free: 50.57 MB / 0.7293 GB Notification: Performance of preOpt evalFunc (simulation): time 1.751e-05/1.134, allocations: 0 / 1.283 GB, free: 50.57 MB / 0.7293 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.606e-05/1.135, allocations: 77.31 kB / 1.283 GB, free: 50.49 MB / 0.7293 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/1.135, allocations: 4 kB / 1.283 GB, free: 50.48 MB / 0.7293 GB Notification: Performance of matching and sorting (n=3): time 0.0001749/1.135, allocations: 60.69 kB / 1.283 GB, free: 50.43 MB / 0.7293 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.373e-05/1.135, allocations: 77.11 kB / 1.284 GB, free: 50.33 MB / 0.7293 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001907/1.135, allocations: 202.6 kB / 1.284 GB, free: 50.16 MB / 0.7293 GB Notification: Performance of collectPreVariables (initialization): time 1.406e-05/1.135, allocations: 25.7 kB / 1.284 GB, free: 50.12 MB / 0.7293 GB Notification: Performance of collectInitialEqns (initialization): time 3.313e-05/1.135, allocations: 107.3 kB / 1.284 GB, free: 50.02 MB / 0.7293 GB Notification: Performance of collectInitialBindings (initialization): time 1.995e-05/1.135, allocations: 10.72 kB / 1.284 GB, free: 50.02 MB / 0.7293 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.258e-06/1.135, allocations: 0 / 1.284 GB, free: 50.02 MB / 0.7293 GB Notification: Performance of setup shared object (initialization): time 7.035e-05/1.135, allocations: 329.8 kB / 1.284 GB, free: 49.69 MB / 0.7293 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.363e-05/1.135, allocations: 10.08 kB / 1.284 GB, free: 49.69 MB / 0.7293 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.199e-05/1.135, allocations: 35 kB / 1.284 GB, free: 49.64 MB / 0.7293 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.039e-05/1.135, allocations: 14.06 kB / 1.284 GB, free: 49.64 MB / 0.7293 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/1.135, allocations: 0 / 1.284 GB, free: 49.64 MB / 0.7293 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001045/1.135, allocations: 65.19 kB / 1.284 GB, free: 49.57 MB / 0.7293 GB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/1.135, allocations: 8 kB / 1.284 GB, free: 49.56 MB / 0.7293 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/1.135, allocations: 0 / 1.284 GB, free: 49.56 MB / 0.7293 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/1.135, allocations: 3.906 kB / 1.284 GB, free: 49.56 MB / 0.7293 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/1.136, allocations: 20.08 kB / 1.284 GB, free: 49.54 MB / 0.7293 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/1.136, allocations: 3.984 kB / 1.284 GB, free: 49.54 MB / 0.7293 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001013/1.136, allocations: 13.08 kB / 1.284 GB, free: 49.52 MB / 0.7293 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.008e-05/1.136, allocations: 7.984 kB / 1.284 GB, free: 49.52 MB / 0.7293 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 6.347e-05/1.136, allocations: 114.6 kB / 1.284 GB, free: 49.4 MB / 0.7293 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.822e-05/1.136, allocations: 22.72 kB / 1.284 GB, free: 49.38 MB / 0.7293 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.051e-05/1.136, allocations: 15.72 kB / 1.284 GB, free: 49.37 MB / 0.7293 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/1.136, allocations: 7.984 kB / 1.284 GB, free: 49.36 MB / 0.7293 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/1.136, allocations: 0 / 1.284 GB, free: 49.36 MB / 0.7293 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/1.136, allocations: 0 / 1.284 GB, free: 49.36 MB / 0.7293 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001253/1.136, allocations: 192.5 kB / 1.285 GB, free: 49.16 MB / 0.7293 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/1.136, allocations: 0 / 1.285 GB, free: 49.16 MB / 0.7293 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.855e-05/1.136, allocations: 23.92 kB / 1.285 GB, free: 49.13 MB / 0.7293 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/1.136, allocations: 0 / 1.285 GB, free: 49.13 MB / 0.7293 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.238e-06/1.136, allocations: 0.6562 kB / 1.285 GB, free: 49.13 MB / 0.7293 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/1.136, allocations: 3.906 kB / 1.285 GB, free: 49.13 MB / 0.7293 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/1.136, allocations: 0 / 1.285 GB, free: 49.13 MB / 0.7293 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001158/1.136, allocations: 83.56 kB / 1.285 GB, free: 49.04 MB / 0.7293 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001732/1.136, allocations: 480 kB / 1.285 GB, free: 48.55 MB / 0.7293 GB Notification: Performance of postOpt removeConstants (simulation): time 4.485e-05/1.137, allocations: 96.86 kB / 1.285 GB, free: 48.44 MB / 0.7293 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.829e-05/1.137, allocations: 0 / 1.285 GB, free: 48.44 MB / 0.7293 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.812e-05/1.137, allocations: 19.36 kB / 1.285 GB, free: 48.43 MB / 0.7293 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.397e-05/1.137, allocations: 11.92 kB / 1.285 GB, free: 48.41 MB / 0.7293 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.345e-05/1.137, allocations: 7.188 kB / 1.285 GB, free: 48.41 MB / 0.7293 GB Notification: Performance of sort global known variables: time 0.000114/1.137, allocations: 165.3 kB / 1.286 GB, free: 48.28 MB / 0.7293 GB Notification: Performance of remove unused functions: time 0.0008158/1.138, allocations: 28.03 kB / 1.286 GB, free: 48.25 MB / 0.7293 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.0003204/1.138, allocations: 123.9 kB / 1.286 GB, free: 48.13 MB / 0.7293 GB Notification: Performance of simCode: created initialization part: time 0.0001191/1.138, allocations: 18.56 kB / 1.286 GB, free: 48.12 MB / 0.7293 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/1.138, allocations: 0 / 1.286 GB, free: 48.12 MB / 0.7293 GB Notification: Performance of simCode: created simulation system equations: time 3.518e-05/1.138, allocations: 17 kB / 1.286 GB, free: 48.11 MB / 0.7293 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002915/1.139, allocations: 34.66 kB / 1.286 GB, free: 48.08 MB / 0.7293 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000524/1.139, allocations: 183.5 kB / 1.286 GB, free: 47.89 MB / 0.7293 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002837/1.139, allocations: 0.7454 MB / 1.287 GB, free: 47.12 MB / 0.7293 GB Notification: Performance of SimCode: time 3.61e-07/1.139, allocations: 0 / 1.287 GB, free: 47.12 MB / 0.7293 GB (rm -f AixLib_latest_AixLib.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo AixLib_latest_AixLib.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < AixLib_latest_AixLib.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/AixLib_latest_AixLib.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AixLib_latest_AixLib_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 AixLib_latest_AixLib_Utilities_IO_Files_Examples_JSONWriter.fmu > AixLib_latest_AixLib.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)