Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.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/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/SystemDynamics 2.1.2-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/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) Running command: "" <> buildModelFMU(SystemDynamics.IntroductoryExamples.Sugar_Cane,fileNamePrefix="SystemDynamics_SystemDynamics_IntroductoryExamples_Sugar_Cane",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.IntroductoryExamples.Sugar_Cane,fileNamePrefix="SystemDynamics_SystemDynamics_IntroductoryExamples_Sugar_Cane",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.003495/0.003496, allocations: 178.2 kB / 7.456 MB, free: 2.496 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 221.4 MB / 229.3 MB, free: 3.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009407/0.0009407, allocations: 95.19 kB / 280.1 MB, free: 1.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.176/0.176, allocations: 28.82 MB / 359.7 MB, free: 1.559 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2238/0.3998, allocations: 63.59 MB / 423.3 MB, free: 44.12 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.5204, allocations: 57.48 MB / 480.8 MB, free: 2.578 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3224/0.843, allocations: 78.39 MB / 0.5461 GB, free: 11.13 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002715/0.8433, allocations: 59.97 kB / 0.5461 GB, free: 11.07 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.01544/0.8588, allocations: 6.179 MB / 0.5522 GB, free: 4.855 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.8588, allocations: 16.73 kB / 0.5522 GB, free: 4.84 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.209e-05/0.8589, allocations: 59.25 kB / 0.5522 GB, free: 4.781 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003947/0.8593, allocations: 311.1 kB / 0.5525 GB, free: 4.434 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.185e-05/0.8594, allocations: 16 kB / 0.5525 GB, free: 4.418 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.382e-05/0.8594, allocations: 32 kB / 0.5526 GB, free: 4.387 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000399/0.8598, allocations: 214.5 kB / 0.5528 GB, free: 4.176 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006492/0.8605, allocations: 397.6 kB / 0.5532 GB, free: 3.754 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.8605, allocations: 3.938 kB / 0.5532 GB, free: 3.75 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.085e-05/0.8606, allocations: 0 / 0.5532 GB, free: 3.75 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.916e-05/0.8606, allocations: 16 kB / 0.5532 GB, free: 3.734 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001826/0.8624, allocations: 1.622 MB / 0.5548 GB, free: 2.043 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004092/0.8628, allocations: 172.3 kB / 0.5549 GB, free: 1.867 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.795e-05/0.8629, allocations: 60.8 kB / 0.555 GB, free: 1.805 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.114e-05/0.863, allocations: 4 kB / 0.555 GB, free: 1.801 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.901e-05/0.863, allocations: 30.56 kB / 0.555 GB, free: 1.762 MB / 378.7 MB Notification: Performance of pre-optimization done (n=19): time 1.603e-06/0.863, allocations: 0 / 0.555 GB, free: 1.762 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.0003224/0.8633, allocations: 153.4 kB / 0.5552 GB, free: 1.605 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.035e-05/0.8634, allocations: 55.41 kB / 0.5552 GB, free: 1.539 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000188/0.8636, allocations: 192.2 kB / 0.5554 GB, free: 1.34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.809e-05/0.8636, allocations: 29.7 kB / 0.5554 GB, free: 1.305 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.8637, allocations: 251.4 kB / 0.5557 GB, free: 1.055 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.11e-05/0.8638, allocations: 63.02 kB / 0.5557 GB, free: 0.9922 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.103e-05/0.8638, allocations: 0 / 0.5557 GB, free: 0.9922 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.8639, allocations: 340.6 kB / 0.556 GB, free: 0.6523 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.552e-05/0.864, allocations: 51.98 kB / 0.5561 GB, free: 0.6016 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000181/0.8642, allocations: 123.6 kB / 0.5562 GB, free: 464 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001219/0.8643, allocations: 65.8 kB / 0.5563 GB, free: 400 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-06/0.8644, allocations: 4 kB / 0.5563 GB, free: 396 kB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003139/0.8647, allocations: 217.8 kB / 0.5565 GB, free: 172 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.8647, allocations: 4 kB / 0.5565 GB, free: 168 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.8647, allocations: 4 kB / 0.5565 GB, free: 164 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.8647, allocations: 4 kB / 0.5565 GB, free: 160 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001871/0.8649, allocations: 47.92 kB / 0.5565 GB, free: 112 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.8649, allocations: 4.25 kB / 0.5566 GB, free: 108 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.755e-05/0.865, allocations: 15.84 kB / 0.5566 GB, free: 92 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.552e-05/0.8651, allocations: 8 kB / 0.5566 GB, free: 84 kB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 4 (Water_Inside.Integrator1.local_reset,Water_Outside.Integrator1.local_reset,Sucrose_Outside.Integrator1.local_reset,Sucrose_Inside.Integrator1.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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 9.188e-05/0.8652, allocations: 112.8 kB / 0.5567 GB, free: 15.96 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.489e-05/0.8652, allocations: 23.72 kB / 0.5567 GB, free: 15.94 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.538e-05/0.8653, allocations: 29.89 kB / 0.5567 GB, free: 15.91 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.8653, allocations: 7.938 kB / 0.5567 GB, free: 15.9 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.8653, allocations: 0 / 0.5567 GB, free: 15.9 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.8653, allocations: 3.984 kB / 0.5567 GB, free: 15.9 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003344/0.8656, allocations: 314 kB / 0.557 GB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.8657, allocations: 4 kB / 0.557 GB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001909/0.8659, allocations: 35.92 kB / 0.5571 GB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.8659, allocations: 7.938 kB / 0.5571 GB, free: 15.51 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.8659, allocations: 0 / 0.5571 GB, free: 15.51 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.8659, allocations: 0 / 0.5571 GB, free: 15.51 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.8659, allocations: 7.984 kB / 0.5571 GB, free: 15.5 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004207/0.8663, allocations: 326.5 kB / 0.5574 GB, free: 15.17 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007232/0.8671, allocations: 0.905 MB / 0.5583 GB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.852e-05/0.8671, allocations: 97.05 kB / 0.5584 GB, free: 14.13 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.094e-05/0.8672, allocations: 0 / 0.5584 GB, free: 14.13 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.909e-05/0.8673, allocations: 11.98 kB / 0.5584 GB, free: 14.12 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.932e-05/0.8673, allocations: 11.89 kB / 0.5584 GB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.138e-05/0.8673, allocations: 7.984 kB / 0.5584 GB, free: 14.1 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001252/0.8675, allocations: 152.5 kB / 0.5586 GB, free: 13.95 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009057/0.8684, allocations: 79.38 kB / 0.5586 GB, free: 13.88 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Sucrose_Inside.Integrator1.y,Sucrose_Outside.Integrator1.y,Water_Outside.Integrator1.y,Water_Inside.Integrator1.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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.0001233/0.8685, allocations: 95.25 kB / 0.5587 GB, free: 13.77 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002548/0.8688, allocations: 139.9 kB / 0.5589 GB, free: 13.64 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.8688, allocations: 0 / 0.5589 GB, free: 13.64 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 9.31e-05/0.8689, allocations: 71.92 kB / 0.5589 GB, free: 13.57 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003114/0.8692, allocations: 27.67 kB / 0.559 GB, free: 13.54 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000991/0.8702, allocations: 495.3 kB / 0.5594 GB, free: 13.03 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004799/0.8707, allocations: 0.8673 MB / 0.5603 GB, free: 12.14 MB / 394.7 MB Notification: Performance of SimCode: time 3.2e-07/0.8707, allocations: 0 / 0.5603 GB, free: 12.14 MB / 394.7 MB (rm -f SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe ; mkfifo SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe >> ../files/SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_IntroductoryExamples_Sugar_Cane_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_IntroductoryExamples_Sugar_Cane.fmu > SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe 2>&1)