Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.GasSolubility_blood.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.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) 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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo) Running command: "" <> buildModelFMU(Chemical.Examples.GasSolubility_blood,fileNamePrefix="Chemical_Chemical_Examples_GasSolubility_blood",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.GasSolubility_blood,fileNamePrefix="Chemical_Chemical_Examples_GasSolubility_blood",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/Chemical 1.4.0-master/package.mo): time 0.09306/0.09306, allocations: 15.26 MB / 22.55 MB, free: 1.105 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001106/0.001106, allocations: 191.4 kB / 27.32 MB, free: 6.188 MB / 24.77 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 / 253.3 MB, free: 10.7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008795/0.0008795, allocations: 88.67 kB / 308.4 MB, free: 10.7 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2126/0.2135, allocations: 60.73 MB / 369.1 MB, free: 53.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08192/0.2954, allocations: 54.62 MB / 423.8 MB, free: 14.36 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.28/0.5755, allocations: 102.2 MB / 0.5136 GB, free: 8.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000181/0.5757, allocations: 69.11 kB / 0.5136 GB, free: 8.316 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 314 * Number of variables: 314 Notification: Performance of Generate backend data structure: time 0.1432/0.7189, allocations: 59.85 MB / 0.5721 GB, free: 14.72 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.7189, allocations: 8 kB / 0.5721 GB, free: 14.71 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001737/0.7206, allocations: 441.3 kB / 0.5725 GB, free: 14.28 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001593/0.7223, allocations: 0.8278 MB / 0.5733 GB, free: 13.42 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.498e-05/0.7223, allocations: 44 kB / 0.5734 GB, free: 13.38 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002358/0.7226, allocations: 72 kB / 0.5734 GB, free: 13.31 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004434/0.727, allocations: 3.531 MB / 0.5769 GB, free: 9.773 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002499/0.7295, allocations: 1.716 MB / 0.5786 GB, free: 8.02 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.82e-05/0.7296, allocations: 4 kB / 0.5786 GB, free: 8.016 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.586e-05/0.7297, allocations: 0 / 0.5786 GB, free: 8.016 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.532e-05/0.7297, allocations: 28 kB / 0.5786 GB, free: 7.988 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009996/0.7397, allocations: 6.421 MB / 0.5849 GB, free: 1.453 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002138/0.7419, allocations: 1.942 MB / 0.5868 GB, free: 15.51 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001027/0.7429, allocations: 0.9054 MB / 0.5876 GB, free: 14.6 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004481/0.7434, allocations: 338.2 kB / 0.588 GB, free: 14.28 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.675e-05/0.7434, allocations: 43.88 kB / 0.588 GB, free: 14.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=128): time 3.667e-06/0.7434, allocations: 0 / 0.588 GB, free: 14.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=174): time 0.03004/0.7734, allocations: 8.483 MB / 0.5963 GB, free: 5.742 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/0.7735, allocations: 72.72 kB / 0.5964 GB, free: 5.66 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001292/0.7748, allocations: 1.089 MB / 0.5974 GB, free: 4.562 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001918/0.775, allocations: 25.7 kB / 0.5974 GB, free: 4.531 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002503/0.7753, allocations: 447.9 kB / 0.5979 GB, free: 4.082 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004693/0.7758, allocations: 0.5579 MB / 0.5984 GB, free: 3.516 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.706e-05/0.7759, allocations: 0 / 0.5984 GB, free: 3.516 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.776, allocations: 422.7 kB / 0.5988 GB, free: 3.094 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001553/0.7776, allocations: 1.265 MB / 0.6001 GB, free: 1.828 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001613/0.7792, allocations: 1.498 MB / 0.6015 GB, free: 268 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003879/0.7831, allocations: 1.785 MB / 0.6033 GB, free: 14.48 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.472e-06/0.7831, allocations: 0 / 0.6033 GB, free: 14.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.008541/0.7917, allocations: 3.811 MB / 0.607 GB, free: 10.64 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.7917, allocations: 7.281 kB / 0.607 GB, free: 10.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.783e-05/0.7917, allocations: 7.984 kB / 0.607 GB, free: 10.63 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002798/0.7945, allocations: 406.2 kB / 0.6074 GB, free: 10.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001741/0.7963, allocations: 395.4 kB / 0.6078 GB, free: 9.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005888/0.8022, allocations: 4.175 MB / 0.6118 GB, free: 5.406 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00192/0.8041, allocations: 104 kB / 0.6119 GB, free: 5.305 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002013/0.8044, allocations: 87.92 kB / 0.612 GB, free: 5.219 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: CO2_unbound_plasma.solution.n:DUMMY_STATE(flow=false min = 0.0 max = 0.0 unit = "mol" ) "Amount of the solution" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: CO2_unbound_plasma.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (206): * Single equations (assignments): 201 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 2 {1 8,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003588/0.8047, allocations: 144.5 kB / 0.6122 GB, free: 5.07 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002224/0.8049, allocations: 110.6 kB / 0.6123 GB, free: 4.961 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01081/0.8158, allocations: 3.734 MB / 0.6159 GB, free: 1.207 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009747/0.8255, allocations: 3.364 MB / 0.6192 GB, free: 13.83 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.839e-06/0.8256, allocations: 3.938 kB / 0.6192 GB, free: 13.83 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.947e-05/0.8256, allocations: 11.95 kB / 0.6192 GB, free: 13.82 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01463/0.8402, allocations: 8.072 MB / 0.6271 GB, free: 5.594 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-05/0.8403, allocations: 12 kB / 0.6271 GB, free: 5.582 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001172/0.8414, allocations: 308.2 kB / 0.6274 GB, free: 5.281 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0054/0.8469, allocations: 0.8876 MB / 0.6283 GB, free: 4.387 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001167/0.847, allocations: 43.95 kB / 0.6283 GB, free: 4.344 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009684/0.8567, allocations: 6.293 MB / 0.6345 GB, free: 13.79 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005855/0.8625, allocations: 2.322 MB / 0.6367 GB, free: 11.34 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0113/0.8739, allocations: 5.689 MB / 0.6423 GB, free: 5.227 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01255/0.8864, allocations: 7.599 MB / 0.6497 GB, free: 13.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004327/0.8869, allocations: 223.6 kB / 0.6499 GB, free: 12.96 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001932/0.8871, allocations: 24.05 kB / 0.6499 GB, free: 12.94 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001091/0.8882, allocations: 71.83 kB / 0.65 GB, free: 12.87 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00019/0.8884, allocations: 136.9 kB / 0.6501 GB, free: 12.73 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001142/0.8885, allocations: 71.95 kB / 0.6502 GB, free: 12.66 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0009341/0.8895, allocations: 0.8506 MB / 0.651 GB, free: 11.81 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003648/0.8931, allocations: 1.222 MB / 0.6522 GB, free: 10.59 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 5 ($STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (167): * Single equations (assignments): 164 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 2 {1 8,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.001858/0.895, allocations: 1.133 MB / 0.6533 GB, free: 9.504 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004383/0.8994, allocations: 2.966 MB / 0.6562 GB, free: 6.527 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/0.8994, allocations: 448 / 0.6562 GB, free: 6.527 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002409/0.9018, allocations: 1.63 MB / 0.6578 GB, free: 4.883 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0013/0.9031, allocations: 218.6 kB / 0.658 GB, free: 4.664 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004284/0.9074, allocations: 2.707 MB / 0.6607 GB, free: 1.793 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001247/0.9087, allocations: 1.388 MB / 0.662 GB, free: 380 kB / 474.7 MB Notification: Performance of SimCode: time 6.11e-07/0.9087, allocations: 3.938 kB / 0.662 GB, free: 376 kB / 474.7 MB (rm -f Chemical_Chemical.Examples.GasSolubility_blood.pipe ; mkfifo Chemical_Chemical.Examples.GasSolubility_blood.pipe ; head -c 1048576 < Chemical_Chemical.Examples.GasSolubility_blood.pipe >> ../files/Chemical_Chemical.Examples.GasSolubility_blood.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_GasSolubility_blood_fmu --startTime=0 --stopTime=1e-05 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_GasSolubility_blood.fmu > Chemical_Chemical.Examples.GasSolubility_blood.pipe 2>&1)