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/ModelicaServices 4.0.0+maint.om/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/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 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002175/0.002175, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002695/0.002695, allocations: 193.8 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.184/3.184, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.6802/0.6802, allocations: 28.82 MB / 319.2 MB, free: 5.691 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002651/0.002651, allocations: 59.91 kB / 386.7 MB, free: 3.523 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6607/0.6634, allocations: 56.41 MB / 443.1 MB, free: 39.62 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.006108/0.6696, allocations: 2.104 MB / 445.2 MB, free: 38.39 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001151/0.6708, allocations: 322.1 kB / 445.6 MB, free: 38.31 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003378/0.6712, allocations: 12.38 kB / 445.6 MB, free: 38.3 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000312/0.6715, allocations: 67.44 kB / 445.6 MB, free: 38.26 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002247/0.6719, allocations: 38 kB / 445.7 MB, free: 38.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005115/0.6724, allocations: 165.3 kB / 445.8 MB, free: 38.22 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005734/0.673, allocations: 399.9 kB / 446.2 MB, free: 38.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007671/0.6738, allocations: 334.6 kB / 446.5 MB, free: 38.1 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001977/0.674, allocations: 151.4 kB / 446.7 MB, free: 38.06 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002209/0.6742, allocations: 190.4 kB / 446.9 MB, free: 37.99 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.271e-05/0.6743, allocations: 46.38 kB / 446.9 MB, free: 37.99 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.699e-05/0.6744, allocations: 42.75 kB / 447 MB, free: 37.99 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00012/0.6745, allocations: 104.2 kB / 447.1 MB, free: 37.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002029/0.6748, allocations: 212.9 kB / 447.3 MB, free: 37.89 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005411/0.6753, allocations: 407 kB / 447.7 MB, free: 37.79 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.6753, allocations: 0 / 447.7 MB, free: 37.79 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.6754, allocations: 0 / 447.7 MB, free: 37.79 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.824e-05/0.6754, allocations: 0 / 447.7 MB, free: 37.79 MB / 366.1 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.001191/0.6766, allocations: 0.7143 MB / 448.4 MB, free: 37.29 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.861e-05/0.6767, allocations: 15.59 kB / 448.4 MB, free: 37.29 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001708/0.6768, allocations: 105.9 kB / 448.5 MB, free: 37.25 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001231/0.677, allocations: 56.59 kB / 448.6 MB, free: 37.22 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00489/0.6819, allocations: 329.4 kB / 448.9 MB, free: 36.96 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.686e-05/0.682, allocations: 45.11 kB / 448.9 MB, free: 36.96 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/0.6821, allocations: 55 kB / 449 MB, free: 36.96 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001117/0.6833, allocations: 0.4916 MB / 449.5 MB, free: 36.7 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.68e-05/0.6833, allocations: 7.875 kB / 449.5 MB, free: 36.7 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.444e-05/0.6834, allocations: 21.47 kB / 449.5 MB, free: 36.68 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.208e-05/0.6834, allocations: 14.62 kB / 449.5 MB, free: 36.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006715/0.6841, allocations: 265.3 kB / 449.8 MB, free: 36.59 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002566/0.6867, allocations: 1.777 MB / 451.6 MB, free: 35.27 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005836/0.6873, allocations: 218 kB / 451.8 MB, free: 35.16 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001345/0.6875, allocations: 67.89 kB / 451.8 MB, free: 35.13 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.149e-05/0.6875, allocations: 0 / 451.8 MB, free: 35.13 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.056e-05/0.6875, allocations: 41.41 kB / 451.9 MB, free: 35.08 MB / 366.1 MB Notification: Performance of pre-optimization done (n=19): time 2.635e-06/0.6876, allocations: 0 / 451.9 MB, free: 35.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.000637/0.6882, allocations: 235 kB / 452.1 MB, free: 34.96 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.011e-05/0.6883, allocations: 58.03 kB / 452.2 MB, free: 34.9 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000457/0.6888, allocations: 336.9 kB / 452.5 MB, free: 34.72 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.647e-05/0.6888, allocations: 25.7 kB / 452.5 MB, free: 34.69 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000201/0.689, allocations: 275.7 kB / 452.8 MB, free: 34.47 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.996e-05/0.6891, allocations: 64.03 kB / 452.8 MB, free: 34.41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001382/0.6893, allocations: 56.81 kB / 452.9 MB, free: 34.38 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.6894, allocations: 342.9 kB / 453.2 MB, free: 34.05 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001735/0.6896, allocations: 59.06 kB / 453.3 MB, free: 34.03 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002185/0.6899, allocations: 136.8 kB / 453.4 MB, free: 33.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004039/0.6903, allocations: 196.3 kB / 453.6 MB, free: 33.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.6903, allocations: 0 / 453.6 MB, free: 33.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005874/0.6909, allocations: 263.9 kB / 453.9 MB, free: 33.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.2e-05/0.691, allocations: 7.875 kB / 453.9 MB, free: 33.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.691, allocations: 2.781 kB / 453.9 MB, free: 33.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.107e-05/0.691, allocations: 6.75 kB / 453.9 MB, free: 33.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003299/0.6914, allocations: 47.48 kB / 453.9 MB, free: 33.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.334e-05/0.6914, allocations: 6.875 kB / 453.9 MB, free: 33.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002007/0.6916, allocations: 32.19 kB / 454 MB, free: 33.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.551e-05/0.6917, allocations: 12.62 kB / 454 MB, free: 33.6 MB / 366.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002464/0.6919, allocations: 159.7 kB / 454.1 MB, free: 33.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.796e-05/0.692, allocations: 30.5 kB / 454.2 MB, free: 33.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.574e-05/0.6921, allocations: 38.8 kB / 454.2 MB, free: 33.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.6922, allocations: 6.906 kB / 454.2 MB, free: 33.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.6922, allocations: 0 / 454.2 MB, free: 33.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.6922, allocations: 0 / 454.2 MB, free: 33.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006057/0.6928, allocations: 403.8 kB / 454.6 MB, free: 33.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-06/0.6928, allocations: 0 / 454.6 MB, free: 33.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004443/0.6973, allocations: 32.16 kB / 454.6 MB, free: 33.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.819e-05/0.6974, allocations: 3.938 kB / 454.7 MB, free: 33.12 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.213e-05/0.6975, allocations: 10.62 kB / 454.7 MB, free: 33.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.947e-06/0.6975, allocations: 3.938 kB / 454.7 MB, free: 33.11 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.6975, allocations: 0 / 454.7 MB, free: 33.11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008233/0.6983, allocations: 351.1 kB / 455 MB, free: 32.89 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001202/0.6985, allocations: 112.4 kB / 455.1 MB, free: 32.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.47e-05/0.6985, allocations: 2.438 kB / 455.1 MB, free: 32.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002026/0.6987, allocations: 11.88 kB / 455.1 MB, free: 32.76 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.963e-05/0.6988, allocations: 8.844 kB / 455.1 MB, free: 32.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.21e-05/0.6988, allocations: 10.53 kB / 455.2 MB, free: 32.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003738/0.6992, allocations: 240.6 kB / 455.4 MB, free: 32.63 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.6992, allocations: 0 / 455.4 MB, free: 32.63 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000673/0.6999, allocations: 79.12 kB / 455.5 MB, free: 32.6 MB / 366.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009573/0.7009, allocations: 0.8853 MB / 456.3 MB, free: 31.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005773/0.7015, allocations: 176.8 kB / 456.5 MB, free: 31.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/0.7015, allocations: 0 / 456.5 MB, free: 31.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001564/0.7017, allocations: 72 kB / 456.6 MB, free: 31.74 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000842/0.7026, allocations: 52.23 kB / 456.6 MB, free: 31.72 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006078/0.7086, allocations: 3.247 MB / 459.9 MB, free: 29.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006796/0.7094, allocations: 0.8153 MB / 460.7 MB, free: 28.89 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002123/0.7097, allocations: 30.94 kB / 460.7 MB, free: 28.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000303/0.71, allocations: 149.7 kB / 460.9 MB, free: 28.77 MB / 366.1 MB Notification: Performance of SimCode: time 1.954e-06/0.71, allocations: 0 / 460.9 MB, free: 28.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1151/0.8251, allocations: 5.631 MB / 466.5 MB, free: 28.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.85/15.68, allocations: 13.38 kB / 466.5 MB, free: 28.05 MB / 366.1 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 & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.008 SystemDynamics_SystemDynamics_IntroductoryExamples_Sugar_Cane.fmu > SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe 2>&1)