Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.conf.json 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/IBPSA 4.0.0-master/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) 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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IBPSA_latest_IBPSA_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/Complex 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 190.8 kB / 7.808 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4768/0.4768, allocations: 90.85 MB / 99.07 MB, free: 14.93 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.531/1.531, allocations: 221.4 MB / 342.7 MB, free: 5.266 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 84.62 kB / 415.5 MB, free: 6.426 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.202/0.2034, allocations: 78.45 MB / 494 MB, free: 7.977 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.412/0.6154, allocations: 72.3 MB / 0.553 GB, free: 73.37 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1195/0.735, allocations: 102.7 MB / 0.6532 GB, free: 7.324 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000279/0.7353, allocations: 71.95 kB / 0.6533 GB, free: 7.254 MB / 474.7 MB 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.01028/0.7456, allocations: 3.458 MB / 0.6567 GB, free: 3.801 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.7457, allocations: 8.938 kB / 0.6567 GB, free: 3.793 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.535e-05/0.7458, allocations: 19.81 kB / 0.6567 GB, free: 3.773 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003244/0.7461, allocations: 231.3 kB / 0.6569 GB, free: 3.508 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.456e-05/0.7461, allocations: 8.531 kB / 0.6569 GB, free: 3.5 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.733e-05/0.7462, allocations: 8.531 kB / 0.6569 GB, free: 3.492 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001141/0.7463, allocations: 28 kB / 0.657 GB, free: 3.465 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001575/0.7464, allocations: 75.11 kB / 0.657 GB, free: 3.387 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.7465, allocations: 3.984 kB / 0.657 GB, free: 3.383 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.334e-05/0.7465, allocations: 0 / 0.657 GB, free: 3.383 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.7465, allocations: 4.719 kB / 0.657 GB, free: 3.379 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006896/0.7472, allocations: 363.2 kB / 0.6574 GB, free: 2.992 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.808e-05/0.7473, allocations: 26.56 kB / 0.6574 GB, free: 2.957 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.292e-05/0.7473, allocations: 8.922 kB / 0.6574 GB, free: 2.945 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.778e-05/0.7473, allocations: 1.281 kB / 0.6574 GB, free: 2.945 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001229/0.7475, allocations: 85.7 kB / 0.6575 GB, free: 2.844 MB / 474.7 MB Notification: Performance of pre-optimization done (n=3): time 1.263e-06/0.7475, allocations: 0 / 0.6575 GB, free: 2.844 MB / 474.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001869/0.7477, allocations: 58.14 kB / 0.6576 GB, free: 2.781 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.45e-05/0.7477, allocations: 86.41 kB / 0.6576 GB, free: 2.68 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002118/0.748, allocations: 195.9 kB / 0.6578 GB, free: 2.484 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/0.748, allocations: 25.7 kB / 0.6579 GB, free: 2.453 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.674e-05/0.748, allocations: 108.5 kB / 0.658 GB, free: 2.344 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.185e-05/0.7481, allocations: 12.3 kB / 0.658 GB, free: 2.332 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.749e-06/0.7481, allocations: 0.5312 kB / 0.658 GB, free: 2.332 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.7482, allocations: 326.4 kB / 0.6583 GB, free: 2.008 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.908e-05/0.7482, allocations: 12 kB / 0.6583 GB, free: 1.996 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.189e-05/0.7483, allocations: 28.03 kB / 0.6583 GB, free: 1.957 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.501e-05/0.7483, allocations: 22.52 kB / 0.6583 GB, free: 1.938 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.7483, allocations: 0 / 0.6583 GB, free: 1.938 MB / 474.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001273/0.7485, allocations: 66.5 kB / 0.6584 GB, free: 1.867 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.7485, allocations: 6.875 kB / 0.6584 GB, free: 1.863 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.7485, allocations: 0 / 0.6584 GB, free: 1.863 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.7485, allocations: 4 kB / 0.6584 GB, free: 1.859 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000132/0.7487, allocations: 20.11 kB / 0.6584 GB, free: 1.84 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.7487, allocations: 0 / 0.6584 GB, free: 1.84 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001093/0.7488, allocations: 25.2 kB / 0.6585 GB, free: 1.816 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.708e-06/0.7488, allocations: 0 / 0.6585 GB, free: 1.816 MB / 474.7 MB 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.39e-05/0.7489, allocations: 108.9 kB / 0.6586 GB, free: 1.703 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.582e-05/0.749, allocations: 15.81 kB / 0.6586 GB, free: 1.688 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.463e-05/0.749, allocations: 21.02 kB / 0.6586 GB, free: 1.66 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.749, allocations: 0 / 0.6586 GB, free: 1.66 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.749, allocations: 0 / 0.6586 GB, free: 1.66 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.749, allocations: 0 / 0.6586 GB, free: 1.66 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001412/0.7492, allocations: 193.1 kB / 0.6588 GB, free: 1.438 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.7492, allocations: 0 / 0.6588 GB, free: 1.438 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.642e-05/0.7493, allocations: 19.98 kB / 0.6588 GB, free: 1.418 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.7493, allocations: 5.375 kB / 0.6588 GB, free: 1.414 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.406e-06/0.7493, allocations: 4 kB / 0.6588 GB, free: 1.41 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.7493, allocations: 0 / 0.6588 GB, free: 1.41 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.7493, allocations: 5.188 kB / 0.6588 GB, free: 1.406 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001277/0.7495, allocations: 96.83 kB / 0.6589 GB, free: 1.293 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002153/0.7497, allocations: 465.5 kB / 0.6594 GB, free: 0.8164 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.655e-05/0.7498, allocations: 100.9 kB / 0.6595 GB, free: 0.6992 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.924e-05/0.7498, allocations: 4 kB / 0.6595 GB, free: 0.6953 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001048/0.7499, allocations: 15.98 kB / 0.6595 GB, free: 0.6797 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.525e-05/0.75, allocations: 7.906 kB / 0.6595 GB, free: 0.6719 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.736e-05/0.75, allocations: 8.984 kB / 0.6595 GB, free: 0.6641 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0001272/0.7501, allocations: 156.7 kB / 0.6596 GB, free: 0.5117 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0008233/0.751, allocations: 24.12 kB / 0.6597 GB, free: 500 kB / 474.7 MB 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.0003176/0.7513, allocations: 129.6 kB / 0.6598 GB, free: 368 kB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0001293/0.7514, allocations: 16 kB / 0.6598 GB, free: 352 kB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.7514, allocations: 0 / 0.6598 GB, free: 352 kB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 3.716e-05/0.7515, allocations: 15.98 kB / 0.6598 GB, free: 336 kB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/0.7518, allocations: 34.27 kB / 0.6598 GB, free: 300 kB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005009/0.7523, allocations: 201.3 kB / 0.66 GB, free: 76 kB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003739/0.7527, allocations: 0.7344 MB / 0.6608 GB, free: 15.32 MB / 490.7 MB Notification: Performance of SimCode: time 2.71e-07/0.7527, allocations: 0 / 0.6608 GB, free: 15.32 MB / 490.7 MB (rm -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter.fmu > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)