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: translateModel(SystemDynamics.IntroductoryExamples.Sugar_Cane,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane") translateModel(SystemDynamics.IntroductoryExamples.Sugar_Cane,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001508/0.001508, allocations: 106.8 kB / 15.99 MB, free: 5.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001772/0.001772, allocations: 196.7 kB / 16.91 MB, free: 5.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.49/1.49, allocations: 222.9 MB / 240.6 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3089/0.3089, allocations: 28.8 MB / 319.5 MB, free: 5.789 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 63.91 kB / 386.8 MB, free: 3.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3088/0.3102, allocations: 56.42 MB / 443.2 MB, free: 39.61 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.002865/0.3131, allocations: 2.147 MB / 445.3 MB, free: 38.37 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005715/0.3137, allocations: 316.1 kB / 445.6 MB, free: 38.28 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001773/0.3139, allocations: 12.03 kB / 445.6 MB, free: 38.27 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001921/0.3141, allocations: 46.44 kB / 445.7 MB, free: 38.25 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000108/0.3142, allocations: 14.38 kB / 445.7 MB, free: 38.24 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002493/0.3145, allocations: 139.9 kB / 445.8 MB, free: 38.24 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003095/0.3148, allocations: 397.7 kB / 446.2 MB, free: 38.2 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003748/0.3152, allocations: 334.1 kB / 446.5 MB, free: 38.12 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.538e-05/0.3153, allocations: 153.2 kB / 446.7 MB, free: 38.08 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001211/0.3154, allocations: 190.3 kB / 446.9 MB, free: 38.02 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.825e-05/0.3155, allocations: 42.88 kB / 446.9 MB, free: 38.02 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.031e-05/0.3155, allocations: 43.31 kB / 447 MB, free: 38.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.607e-05/0.3156, allocations: 96.67 kB / 447.1 MB, free: 38 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001213/0.3157, allocations: 208.1 kB / 447.3 MB, free: 37.92 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000249/0.316, allocations: 299.7 kB / 447.6 MB, free: 37.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.316, allocations: 0 / 447.6 MB, free: 37.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.316, allocations: 0 / 447.6 MB, free: 37.88 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.316, allocations: 4 kB / 447.6 MB, free: 37.88 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.0007795/0.3168, allocations: 0.7161 MB / 448.3 MB, free: 37.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.3168, allocations: 11.72 kB / 448.3 MB, free: 37.38 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.317e-05/0.3169, allocations: 62.31 kB / 448.4 MB, free: 37.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002822/0.3172, allocations: 327 kB / 448.7 MB, free: 37.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.8e-05/0.3172, allocations: 45.12 kB / 448.7 MB, free: 37.09 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.46e-05/0.3173, allocations: 51.19 kB / 448.8 MB, free: 37.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005602/0.3179, allocations: 478.4 kB / 449.2 MB, free: 36.96 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.3179, allocations: 4.125 kB / 449.2 MB, free: 36.96 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.583e-05/0.3179, allocations: 38.11 kB / 449.3 MB, free: 36.95 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.3179, allocations: 14.75 kB / 449.3 MB, free: 36.95 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003403/0.3183, allocations: 256.9 kB / 449.5 MB, free: 36.86 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001383/0.3197, allocations: 1.748 MB / 451.3 MB, free: 35.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003894/0.3201, allocations: 211.3 kB / 451.5 MB, free: 35.45 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.731e-05/0.3202, allocations: 62.69 kB / 451.6 MB, free: 35.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.89e-05/0.3202, allocations: 2.656 kB / 451.6 MB, free: 35.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.385e-05/0.3202, allocations: 37.12 kB / 451.6 MB, free: 35.37 MB / 366.1 MB Notification: Performance of pre-optimization done (n=19): time 1.273e-06/0.3202, allocations: 0 / 451.6 MB, free: 35.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.0003536/0.3206, allocations: 233.4 kB / 451.8 MB, free: 35.25 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.161e-05/0.3206, allocations: 54.25 kB / 451.9 MB, free: 35.19 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002503/0.3209, allocations: 347.5 kB / 452.2 MB, free: 35 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.377e-05/0.3209, allocations: 25.7 kB / 452.2 MB, free: 34.97 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.321, allocations: 262.6 kB / 452.5 MB, free: 34.76 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.862e-05/0.3211, allocations: 66.59 kB / 452.6 MB, free: 34.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.589e-05/0.3211, allocations: 55.75 kB / 452.6 MB, free: 34.67 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.027e-05/0.3212, allocations: 344.5 kB / 453 MB, free: 34.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.729e-05/0.3213, allocations: 64.77 kB / 453 MB, free: 34.31 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001074/0.3214, allocations: 122.4 kB / 453.1 MB, free: 34.21 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002019/0.3216, allocations: 200 kB / 453.3 MB, free: 34.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3216, allocations: 0 / 453.3 MB, free: 34.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002872/0.3219, allocations: 259.3 kB / 453.6 MB, free: 33.93 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.322, allocations: 5.938 kB / 453.6 MB, free: 33.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.322, allocations: 2.688 kB / 453.6 MB, free: 33.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.322, allocations: 6.203 kB / 453.6 MB, free: 33.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001672/0.3222, allocations: 46.14 kB / 453.6 MB, free: 33.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.3222, allocations: 13.55 kB / 453.7 MB, free: 33.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.643e-05/0.3223, allocations: 32.47 kB / 453.7 MB, free: 33.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.362e-05/0.3223, allocations: 5.594 kB / 453.7 MB, free: 33.89 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.0001163/0.3224, allocations: 170.7 kB / 453.9 MB, free: 33.74 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.313e-05/0.3225, allocations: 33.14 kB / 453.9 MB, free: 33.72 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.822e-05/0.3225, allocations: 35.16 kB / 453.9 MB, free: 33.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.3225, allocations: 0 / 453.9 MB, free: 33.7 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.3226, allocations: 2.906 kB / 453.9 MB, free: 33.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.3226, allocations: 0 / 453.9 MB, free: 33.7 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003203/0.3229, allocations: 404.1 kB / 454.3 MB, free: 33.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3229, allocations: 0 / 454.3 MB, free: 33.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001625/0.3231, allocations: 28.05 kB / 454.4 MB, free: 33.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.3231, allocations: 7.938 kB / 454.4 MB, free: 33.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.619e-05/0.3231, allocations: 10.84 kB / 454.4 MB, free: 33.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.3231, allocations: 0 / 454.4 MB, free: 33.41 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3231, allocations: 3.938 kB / 454.4 MB, free: 33.4 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003372/0.3235, allocations: 349.7 kB / 454.7 MB, free: 33.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.101e-05/0.3235, allocations: 118.7 kB / 454.8 MB, free: 33.05 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.958e-05/0.3235, allocations: 4 kB / 454.8 MB, free: 33.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.936e-05/0.3237, allocations: 2.875 kB / 454.8 MB, free: 33.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.472e-05/0.3237, allocations: 17.62 kB / 454.9 MB, free: 33.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.3237, allocations: 5.844 kB / 454.9 MB, free: 33.04 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001635/0.3239, allocations: 236.9 kB / 455.1 MB, free: 32.92 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3239, allocations: 0 / 455.1 MB, free: 32.92 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002983/0.3242, allocations: 73.62 kB / 455.2 MB, free: 32.89 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 7.687e-05/0.3243, allocations: 97.78 kB / 455.3 MB, free: 32.8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002638/0.3245, allocations: 168.8 kB / 455.4 MB, free: 32.74 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3245, allocations: 4.062 kB / 455.4 MB, free: 32.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 7.889e-05/0.3246, allocations: 78.2 kB / 455.5 MB, free: 32.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004745/0.3251, allocations: 45.67 kB / 455.5 MB, free: 32.69 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009357/0.326, allocations: 0.8727 MB / 456.4 MB, free: 32.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002199/0.3263, allocations: 0.8141 MB / 457.2 MB, free: 31.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.522e-05/0.3264, allocations: 27.41 kB / 457.3 MB, free: 31.35 MB / 366.1 MB Notification: Performance of SimCode: time 2e-07/0.3264, allocations: 0 / 457.3 MB, free: 31.35 MB / 366.1 MB Notification: Performance of Templates: time 0.004623/0.331, allocations: 3.685 MB / 460.9 MB, free: 30.92 MB / 366.1 MB make -j1 -f SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.makefile (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 & ./SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe 2>&1)