Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IDEAS_dev_IDEAS_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.002622/0.002621, allocations: 187 kB / 7.46 MB, free: 2.52 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7167/0.7167, allocations: 133.5 MB / 141.4 MB, free: 15.73 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.456/1.456, allocations: 221.3 MB / 395 MB, free: 10.22 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 98.36 kB / 477.8 MB, free: 10.9 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4595/0.4605, allocations: 88.43 MB / 0.5529 GB, free: 88.9 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1922/0.6527, allocations: 82.3 MB / 0.6333 GB, free: 14.06 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5857/1.238, allocations: 112.4 MB / 0.7431 GB, free: 10.74 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002331/1.239, allocations: 81.16 kB / 0.7432 GB, free: 10.74 MB / 0.4948 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.01045/1.249, allocations: 3.443 MB / 0.7466 GB, free: 26.2 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.27e-05/1.249, allocations: 12.27 kB / 0.7466 GB, free: 26.2 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.369e-05/1.249, allocations: 23.34 kB / 0.7466 GB, free: 26.19 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003775/1.25, allocations: 235.2 kB / 0.7468 GB, free: 25.97 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.295e-05/1.25, allocations: 0.7969 kB / 0.7468 GB, free: 25.97 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.506e-05/1.25, allocations: 7.844 kB / 0.7468 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001192/1.25, allocations: 39.55 kB / 0.7469 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001669/1.25, allocations: 75.84 kB / 0.7469 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.996e-06/1.25, allocations: 0 / 0.7469 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.469e-05/1.25, allocations: 0.6562 kB / 0.7469 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/1.25, allocations: 3.844 kB / 0.7469 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006642/1.251, allocations: 358.8 kB / 0.7473 GB, free: 25.68 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 4.762e-05/1.251, allocations: 27.38 kB / 0.7473 GB, free: 25.65 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.12e-05/1.251, allocations: 16.61 kB / 0.7473 GB, free: 25.64 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/1.251, allocations: 0.6562 kB / 0.7473 GB, free: 25.64 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001127/1.251, allocations: 77.8 kB / 0.7474 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/1.251, allocations: 0 / 0.7474 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3): time 0.0001803/1.251, allocations: 63.48 kB / 0.7475 GB, free: 25.53 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.107e-05/1.251, allocations: 80.95 kB / 0.7475 GB, free: 25.43 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002124/1.252, allocations: 202.7 kB / 0.7477 GB, free: 25.33 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.404e-05/1.252, allocations: 26.41 kB / 0.7477 GB, free: 25.3 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 5.558e-05/1.252, allocations: 112.6 kB / 0.7479 GB, free: 25.21 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 1.953e-05/1.252, allocations: 4.75 kB / 0.7479 GB, free: 25.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.588e-06/1.252, allocations: 0 / 0.7479 GB, free: 25.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001505/1.252, allocations: 330.1 kB / 0.7482 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.367e-05/1.252, allocations: 7.031 kB / 0.7482 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.539e-05/1.252, allocations: 36.36 kB / 0.7482 GB, free: 24.85 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.024e-05/1.252, allocations: 9.297 kB / 0.7482 GB, free: 24.85 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/1.252, allocations: 0.7031 kB / 0.7482 GB, free: 24.85 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001082/1.252, allocations: 73.72 kB / 0.7483 GB, free: 24.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/1.252, allocations: 3.844 kB / 0.7483 GB, free: 24.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/1.252, allocations: 0.7031 kB / 0.7483 GB, free: 24.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/1.252, allocations: 4.094 kB / 0.7483 GB, free: 24.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/1.252, allocations: 19.27 kB / 0.7483 GB, free: 24.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/1.252, allocations: 0.6562 kB / 0.7483 GB, free: 24.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.809e-05/1.252, allocations: 23.25 kB / 0.7483 GB, free: 24.79 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.032e-05/1.252, allocations: 3.984 kB / 0.7484 GB, free: 24.79 MB / 0.5105 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 8.969e-05/1.253, allocations: 113.3 kB / 0.7485 GB, free: 24.68 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.465e-05/1.253, allocations: 16.02 kB / 0.7485 GB, free: 24.67 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.699e-05/1.253, allocations: 17.75 kB / 0.7485 GB, free: 24.65 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/1.253, allocations: 0 / 0.7485 GB, free: 24.65 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/1.253, allocations: 7.781 kB / 0.7485 GB, free: 24.65 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/1.253, allocations: 0.75 kB / 0.7485 GB, free: 24.65 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001743/1.253, allocations: 190.4 kB / 0.7487 GB, free: 24.49 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/1.253, allocations: 4 kB / 0.7487 GB, free: 24.48 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.128e-05/1.253, allocations: 15.8 kB / 0.7487 GB, free: 24.48 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/1.253, allocations: 0 / 0.7487 GB, free: 24.48 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.368e-06/1.253, allocations: 0.7969 kB / 0.7487 GB, free: 24.48 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/1.253, allocations: 0 / 0.7487 GB, free: 24.48 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/1.253, allocations: 0 / 0.7487 GB, free: 24.48 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001201/1.253, allocations: 92.5 kB / 0.7488 GB, free: 24.41 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002655/1.253, allocations: 475.1 kB / 0.7492 GB, free: 23.96 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 5.982e-05/1.253, allocations: 94.55 kB / 0.7493 GB, free: 23.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.855e-05/1.253, allocations: 4.531 kB / 0.7493 GB, free: 23.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/1.254, allocations: 15.2 kB / 0.7494 GB, free: 23.86 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.079e-05/1.254, allocations: 9.75 kB / 0.7494 GB, free: 23.86 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.411e-05/1.254, allocations: 8.453 kB / 0.7494 GB, free: 23.85 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0001385/1.254, allocations: 154.7 kB / 0.7495 GB, free: 23.78 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0007652/1.255, allocations: 24.08 kB / 0.7495 GB, free: 23.77 MB / 0.5105 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.0002664/1.255, allocations: 118.5 kB / 0.7497 GB, free: 23.68 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001139/1.255, allocations: 20.64 kB / 0.7497 GB, free: 23.68 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/1.255, allocations: 7.875 kB / 0.7497 GB, free: 23.67 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 3.317e-05/1.255, allocations: 16.3 kB / 0.7497 GB, free: 23.66 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002778/1.255, allocations: 38.5 kB / 0.7497 GB, free: 23.66 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004706/1.256, allocations: 188.8 kB / 0.7499 GB, free: 23.55 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003936/1.256, allocations: 0.7374 MB / 0.7506 GB, free: 22.85 MB / 0.5105 GB Notification: Performance of SimCode: time 2.7e-07/1.256, allocations: 3.875 kB / 0.7506 GB, free: 22.85 MB / 0.5105 GB (rm -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter.fmu > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)