Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.GasSolubility.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,fileNamePrefix="Chemical_Chemical_Examples_GasSolubility",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.GasSolubility,fileNamePrefix="Chemical_Chemical_Examples_GasSolubility",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.07235/0.07235, allocations: 15.26 MB / 22.54 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.0009588/0.0009588, allocations: 183.4 kB / 27.31 MB, free: 0 / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.188/1.188, allocations: 221.4 MB / 253.3 MB, free: 10.34 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.0009448/0.0009448, allocations: 92.42 kB / 308.4 MB, free: 10.62 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2582/0.2592, allocations: 60.73 MB / 369.1 MB, free: 53.67 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07676/0.336, allocations: 54.64 MB / 423.8 MB, free: 14.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2582/0.5942, allocations: 102.4 MB / 0.5138 GB, free: 8.207 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001553/0.5944, allocations: 70.69 kB / 0.5139 GB, free: 8.207 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: 539 * Number of variables: 539 Notification: Performance of Generate backend data structure: time 0.2263/0.8207, allocations: 93.11 MB / 0.6048 GB, free: 14.06 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.8207, allocations: 8 kB / 0.6048 GB, free: 14.05 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003138/0.8239, allocations: 0.6697 MB / 0.6055 GB, free: 13.38 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002945/0.8268, allocations: 1.296 MB / 0.6067 GB, free: 12.06 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.666e-05/0.8269, allocations: 68 kB / 0.6068 GB, free: 11.99 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003272/0.8272, allocations: 131.9 kB / 0.6069 GB, free: 11.86 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007835/0.8351, allocations: 5.623 MB / 0.6124 GB, free: 6.23 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004268/0.8394, allocations: 2.837 MB / 0.6152 GB, free: 3.316 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.377e-05/0.8394, allocations: 4 kB / 0.6152 GB, free: 3.312 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001531/0.8396, allocations: 4 kB / 0.6152 GB, free: 3.309 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.182e-05/0.8397, allocations: 48 kB / 0.6153 GB, free: 3.262 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01797/0.8576, allocations: 10.68 MB / 0.6257 GB, free: 8.395 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004637/0.8623, allocations: 3.49 MB / 0.6291 GB, free: 4.922 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002372/0.8647, allocations: 1.632 MB / 0.6307 GB, free: 3.289 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009167/0.8657, allocations: 0.5727 MB / 0.6312 GB, free: 2.73 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.968e-05/0.8657, allocations: 60.56 kB / 0.6313 GB, free: 2.664 MB / 442.7 MB Notification: Performance of pre-optimization done (n=233): time 4.789e-06/0.8657, allocations: 0 / 0.6313 GB, free: 2.664 MB / 442.7 MB Notification: Performance of matching and sorting (n=316): time 0.06277/0.9285, allocations: 15.18 MB / 0.6461 GB, free: 3.508 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.619e-05/0.9286, allocations: 85.78 kB / 0.6462 GB, free: 3.41 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001905/0.9305, allocations: 1.349 MB / 0.6475 GB, free: 2.043 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004942/0.931, allocations: 25.7 kB / 0.6476 GB, free: 2.012 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004093/0.9314, allocations: 0.6296 MB / 0.6482 GB, free: 1.371 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001139/0.9326, allocations: 1.016 MB / 0.6492 GB, free: 348 kB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001902/0.9328, allocations: 0 / 0.6492 GB, free: 348 kB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002158/0.933, allocations: 420.4 kB / 0.6496 GB, free: 15.92 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003076/0.9361, allocations: 2.118 MB / 0.6516 GB, free: 13.8 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003218/0.9393, allocations: 2.491 MB / 0.6541 GB, free: 11.2 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007209/0.9466, allocations: 2.916 MB / 0.6569 GB, free: 8.262 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-05/0.9466, allocations: 11.88 kB / 0.6569 GB, free: 8.25 MB / 474.7 MB Notification: Performance of matching and sorting (n=393) (initialization): time 0.01782/0.9644, allocations: 6.385 MB / 0.6632 GB, free: 1.812 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.556e-05/0.9645, allocations: 4 kB / 0.6632 GB, free: 1.809 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.426e-05/0.9645, allocations: 8 kB / 0.6632 GB, free: 1.801 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005803/0.9703, allocations: 0.7584 MB / 0.6639 GB, free: 1.027 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003597/0.974, allocations: 0.6669 MB / 0.6646 GB, free: 368 kB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1736/1.148, allocations: 8.194 MB / 0.6726 GB, free: 128.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003867/1.151, allocations: 186.5 kB / 0.6727 GB, free: 128.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006652/1.152, allocations: 149.2 kB / 0.6729 GB, free: 128.2 MB / 474.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: CO2_unbound_erythrocyte.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_erythrocyte.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real 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: 36 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (353): * Single equations (assignments): 343 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 4 {1 8,1 3,1 6,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0008467/1.153, allocations: 171.1 kB / 0.673 GB, free: 128.1 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005184/1.154, allocations: 178.6 kB / 0.6732 GB, free: 128.1 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01896/1.173, allocations: 6.677 MB / 0.6797 GB, free: 127.9 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01745/1.19, allocations: 6.011 MB / 0.6856 GB, free: 127.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.731e-05/1.19, allocations: 1.875 kB / 0.6856 GB, free: 127.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.625e-05/1.19, allocations: 19.31 kB / 0.6856 GB, free: 127.7 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02735/1.217, allocations: 16.21 MB / 0.7015 GB, free: 126.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.434e-05/1.218, allocations: 19.75 kB / 0.7015 GB, free: 126.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002298/1.22, allocations: 0.554 MB / 0.702 GB, free: 126.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00998/1.23, allocations: 1.599 MB / 0.7036 GB, free: 126.5 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000446/1.23, allocations: 68.52 kB / 0.7036 GB, free: 126.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01654/1.247, allocations: 11.87 MB / 0.7152 GB, free: 120.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01108/1.258, allocations: 4.577 MB / 0.7197 GB, free: 117.7 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02071/1.279, allocations: 10.06 MB / 0.7295 GB, free: 115.2 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02353/1.302, allocations: 13.17 MB / 0.7424 GB, free: 109.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008511/1.303, allocations: 317.5 kB / 0.7427 GB, free: 108.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007283/1.304, allocations: 35.8 kB / 0.7427 GB, free: 108.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002566/1.307, allocations: 113.5 kB / 0.7428 GB, free: 108.9 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005603/1.307, allocations: 236 kB / 0.7431 GB, free: 108.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004358/1.308, allocations: 131.8 kB / 0.7432 GB, free: 108.9 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.001445/1.309, allocations: 1.047 MB / 0.7442 GB, free: 108.4 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007496/1.317, allocations: 1.989 MB / 0.7462 GB, free: 108.1 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 74 * Number of states: 9 ($STATESET2.x[5],$STATESET2.x[4],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$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 (308): * Single equations (assignments): 302 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 4 {1 8,6 9,1 6,5 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.004683/1.321, allocations: 1.687 MB / 0.7478 GB, free: 107.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009258/1.331, allocations: 5.202 MB / 0.7529 GB, free: 105.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-05/1.331, allocations: 3.031 kB / 0.7529 GB, free: 105.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004673/1.335, allocations: 2.955 MB / 0.7558 GB, free: 104.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002412/1.338, allocations: 332.3 kB / 0.7561 GB, free: 104.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008448/1.346, allocations: 4.782 MB / 0.7608 GB, free: 102.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002459/1.349, allocations: 1.905 MB / 0.7626 GB, free: 101.3 MB / 474.7 MB Notification: Performance of SimCode: time 1.332e-06/1.349, allocations: 0 / 0.7626 GB, free: 101.3 MB / 474.7 MB (rm -f Chemical_Chemical.Examples.GasSolubility.pipe ; mkfifo Chemical_Chemical.Examples.GasSolubility.pipe ; head -c 1048576 < Chemical_Chemical.Examples.GasSolubility.pipe >> ../files/Chemical_Chemical.Examples.GasSolubility.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_GasSolubility_fmu --startTime=0 --stopTime=1e-05 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_GasSolubility.fmu > Chemical_Chemical.Examples.GasSolubility.pipe 2>&1)