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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 175 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.493/1.493, allocations: 221.4 MB / 234.6 MB, free: 14.38 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.001018/0.001019, allocations: 93.38 kB / 285.6 MB, free: 12.97 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.4613/0.4613, allocations: 28.82 MB / 365.3 MB, free: 42.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.123e-05/4.125e-05, allocations: 4 kB / 430.8 MB, free: 4.312 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.1424, allocations: 57.47 MB / 488.2 MB, free: 10.78 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4873/0.6298, allocations: 79.12 MB / 0.554 GB, free: 25.55 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/0.6301, allocations: 58.16 kB / 0.5541 GB, free: 25.53 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01543/0.6456, allocations: 5.931 MB / 0.5599 GB, free: 22.38 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.494e-06/0.6456, allocations: 3.172 kB / 0.5599 GB, free: 22.38 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.304e-05/0.6457, allocations: 16 kB / 0.5599 GB, free: 22.36 MB / 394.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.001134/0.6468, allocations: 0.6105 MB / 0.5605 GB, free: 21.79 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.56e-05/0.6469, allocations: 8.031 kB / 0.5605 GB, free: 21.78 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002653/0.6472, allocations: 107.4 kB / 0.5606 GB, free: 21.71 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001518/0.6473, allocations: 63.03 kB / 0.5607 GB, free: 21.66 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004838/0.6478, allocations: 329.2 kB / 0.561 GB, free: 21.36 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.964e-05/0.6479, allocations: 36.75 kB / 0.561 GB, free: 21.34 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.219e-05/0.648, allocations: 54.06 kB / 0.5611 GB, free: 21.3 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007562/0.6487, allocations: 487.2 kB / 0.5615 GB, free: 20.97 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.6488, allocations: 0 / 0.5615 GB, free: 20.97 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.895e-05/0.6488, allocations: 22.7 kB / 0.5616 GB, free: 20.97 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.649e-05/0.6488, allocations: 19.95 kB / 0.5616 GB, free: 20.95 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004417/0.6493, allocations: 254.5 kB / 0.5618 GB, free: 20.79 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002059/0.6513, allocations: 1.794 MB / 0.5636 GB, free: 19.35 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000459/0.6518, allocations: 213.7 kB / 0.5638 GB, free: 19.21 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.341e-05/0.6519, allocations: 60.61 kB / 0.5638 GB, free: 19.17 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.076e-05/0.652, allocations: 5.5 kB / 0.5638 GB, free: 19.17 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.033e-05/0.652, allocations: 38.5 kB / 0.5639 GB, free: 19.12 MB / 394.7 MB Notification: Performance of pre-optimization done (n=19): time 1.784e-06/0.652, allocations: 0 / 0.5639 GB, free: 19.12 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.0003395/0.6523, allocations: 176.5 kB / 0.5641 GB, free: 18.99 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.993e-05/0.6524, allocations: 55.41 kB / 0.5641 GB, free: 18.93 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002965/0.6527, allocations: 291.4 kB / 0.5644 GB, free: 18.71 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.01e-05/0.6527, allocations: 29.58 kB / 0.5644 GB, free: 18.68 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.6528, allocations: 271.9 kB / 0.5647 GB, free: 18.49 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.05e-05/0.6529, allocations: 65.5 kB / 0.5647 GB, free: 18.44 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.979e-06/0.6529, allocations: 3.938 kB / 0.5647 GB, free: 18.44 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.516e-05/0.653, allocations: 348.7 kB / 0.5651 GB, free: 18.12 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.556e-05/0.6531, allocations: 55.31 kB / 0.5651 GB, free: 18.09 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001111/0.6532, allocations: 119.2 kB / 0.5652 GB, free: 17.97 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00011/0.6533, allocations: 76.05 kB / 0.5653 GB, free: 17.93 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.6533, allocations: 0 / 0.5653 GB, free: 17.93 MB / 394.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003526/0.6537, allocations: 248.4 kB / 0.5655 GB, free: 17.75 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.6537, allocations: 9.781 kB / 0.5656 GB, free: 17.74 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.6537, allocations: 0 / 0.5656 GB, free: 17.74 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.037e-05/0.6538, allocations: 4 kB / 0.5656 GB, free: 17.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001742/0.654, allocations: 47.27 kB / 0.5656 GB, free: 17.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.429e-05/0.654, allocations: 9.594 kB / 0.5656 GB, free: 17.69 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001183/0.6541, allocations: 31.34 kB / 0.5656 GB, free: 17.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.584e-05/0.6541, allocations: 8 kB / 0.5656 GB, free: 17.65 MB / 394.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 6.831e-05/0.6542, allocations: 120.7 kB / 0.5658 GB, free: 17.54 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.888e-05/0.6543, allocations: 39.56 kB / 0.5658 GB, free: 17.5 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.546e-05/0.6543, allocations: 47.59 kB / 0.5658 GB, free: 17.48 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.6544, allocations: 0 / 0.5658 GB, free: 17.48 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.6544, allocations: 0 / 0.5658 GB, free: 17.48 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.6544, allocations: 5.719 kB / 0.5659 GB, free: 17.47 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004261/0.6548, allocations: 402.9 kB / 0.5662 GB, free: 17.18 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.6548, allocations: 0 / 0.5662 GB, free: 17.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001709/0.655, allocations: 30.61 kB / 0.5663 GB, free: 17.15 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.655, allocations: 4 kB / 0.5663 GB, free: 17.15 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.883e-05/0.655, allocations: 5.688 kB / 0.5663 GB, free: 17.14 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/0.655, allocations: 1.25 kB / 0.5663 GB, free: 17.14 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.6551, allocations: 4 kB / 0.5663 GB, free: 17.14 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004362/0.6555, allocations: 355.1 kB / 0.5666 GB, free: 16.86 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.351e-05/0.6556, allocations: 111.2 kB / 0.5667 GB, free: 16.74 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.37e-05/0.6556, allocations: 0 / 0.5667 GB, free: 16.74 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/0.6557, allocations: 7.828 kB / 0.5667 GB, free: 16.74 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.046e-05/0.6558, allocations: 11.75 kB / 0.5667 GB, free: 16.73 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.007e-05/0.6558, allocations: 10.59 kB / 0.5668 GB, free: 16.73 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002223/0.656, allocations: 229.8 kB / 0.567 GB, free: 16.55 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.656, allocations: 0 / 0.567 GB, free: 16.55 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003189/0.6563, allocations: 87.69 kB / 0.5671 GB, free: 16.48 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.0006146/0.657, allocations: 0.8745 MB / 0.5679 GB, free: 15.66 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002792/0.6573, allocations: 166.2 kB / 0.5681 GB, free: 15.55 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.6573, allocations: 0 / 0.5681 GB, free: 15.55 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 9.053e-05/0.6574, allocations: 73.33 kB / 0.5681 GB, free: 15.5 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004049/0.6578, allocations: 42.06 kB / 0.5682 GB, free: 15.48 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001167/0.659, allocations: 0.5826 MB / 0.5687 GB, free: 14.97 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002718/0.6593, allocations: 0.8308 MB / 0.5696 GB, free: 14.17 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001072/0.6594, allocations: 27.53 kB / 0.5696 GB, free: 14.16 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001549/0.6596, allocations: 146.6 kB / 0.5697 GB, free: 14.14 MB / 394.7 MB Notification: Performance of SimCode: time 2.124e-06/0.6596, allocations: 0 / 0.5697 GB, free: 14.14 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01961/0.6792, allocations: 5.157 MB / 0.5748 GB, free: 10.47 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002347/0.6795, allocations: 151.8 kB / 0.5749 GB, free: 10.24 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.024/2.703, allocations: 1.5 kB / 0.5749 GB, free: 10.24 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)