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.001295/0.001294, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001448/0.001448, allocations: 194.1 kB / 16.14 MB, free: 6.707 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.336/1.336, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3066/0.3066, allocations: 28.8 MB / 318.8 MB, free: 5.922 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.001431, allocations: 55.91 kB / 386 MB, free: 3.98 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.2765, allocations: 56.41 MB / 442.4 MB, free: 39.72 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.002655/0.2791, allocations: 2.144 MB / 444.6 MB, free: 38.49 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004904/0.2797, allocations: 318.8 kB / 444.9 MB, free: 38.39 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001666/0.2798, allocations: 5.906 kB / 444.9 MB, free: 38.39 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001831/0.28, allocations: 47.75 kB / 444.9 MB, free: 38.37 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001016/0.2801, allocations: 21.81 kB / 445 MB, free: 38.36 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002457/0.2804, allocations: 142.2 kB / 445.1 MB, free: 38.35 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000273/0.2807, allocations: 376.8 kB / 445.5 MB, free: 38.3 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003352/0.281, allocations: 325 kB / 445.8 MB, free: 38.23 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.951e-05/0.2811, allocations: 132.9 kB / 445.9 MB, free: 38.19 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000121/0.2812, allocations: 173.1 kB / 446.1 MB, free: 38.13 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.173e-05/0.2813, allocations: 25.75 kB / 446.1 MB, free: 38.13 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.702e-05/0.2813, allocations: 25.41 kB / 446.1 MB, free: 38.13 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.98e-05/0.2814, allocations: 84.58 kB / 446.2 MB, free: 38.11 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.776e-05/0.2815, allocations: 200.9 kB / 446.4 MB, free: 38.03 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002501/0.2817, allocations: 376.1 kB / 446.8 MB, free: 37.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.2818, allocations: 0.5625 kB / 446.8 MB, free: 37.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.51e-07/0.2818, allocations: 0 / 446.8 MB, free: 37.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.2818, allocations: 4 kB / 446.8 MB, free: 37.93 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.0007023/0.2825, allocations: 0.7203 MB / 447.5 MB, free: 37.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.2825, allocations: 11.91 kB / 447.5 MB, free: 37.43 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001011/0.2826, allocations: 96.67 kB / 447.6 MB, free: 37.39 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.561e-05/0.2827, allocations: 57.31 kB / 447.7 MB, free: 37.36 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002821/0.283, allocations: 343.1 kB / 448 MB, free: 37.1 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.82e-05/0.283, allocations: 41.06 kB / 448 MB, free: 37.09 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.318e-05/0.2831, allocations: 55 kB / 448.1 MB, free: 37.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005598/0.2836, allocations: 496.9 kB / 448.6 MB, free: 36.97 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.2837, allocations: 7.938 kB / 448.6 MB, free: 36.96 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.021e-05/0.2837, allocations: 23.28 kB / 448.6 MB, free: 36.96 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.2837, allocations: 13.53 kB / 448.6 MB, free: 36.96 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003633/0.2841, allocations: 266.3 kB / 448.9 MB, free: 36.92 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001393/0.2855, allocations: 1.776 MB / 450.7 MB, free: 35.6 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003818/0.2859, allocations: 208.5 kB / 450.9 MB, free: 35.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.732e-05/0.286, allocations: 65.98 kB / 450.9 MB, free: 35.47 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.835e-05/0.286, allocations: 2.812 kB / 450.9 MB, free: 35.47 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.409e-05/0.286, allocations: 38.56 kB / 451 MB, free: 35.42 MB / 366.1 MB Notification: Performance of pre-optimization done (n=19): time 2.314e-06/0.286, allocations: 0 / 451 MB, free: 35.42 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.0003622/0.2864, allocations: 243.7 kB / 451.2 MB, free: 35.29 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.725e-05/0.2864, allocations: 57.55 kB / 451.3 MB, free: 35.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002534/0.2867, allocations: 333.9 kB / 451.6 MB, free: 35.06 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.417e-05/0.2867, allocations: 32.58 kB / 451.6 MB, free: 35.02 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.2868, allocations: 271.5 kB / 451.9 MB, free: 34.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.748e-05/0.2869, allocations: 73.89 kB / 452 MB, free: 34.74 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.114e-05/0.2869, allocations: 58 kB / 452 MB, free: 34.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.566e-05/0.287, allocations: 340.8 kB / 452.4 MB, free: 34.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.946e-05/0.2871, allocations: 59.12 kB / 452.4 MB, free: 34.35 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001099/0.2872, allocations: 129.2 kB / 452.5 MB, free: 34.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000207/0.2874, allocations: 196.1 kB / 452.7 MB, free: 34.11 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2874, allocations: 4 kB / 452.7 MB, free: 34.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002973/0.2877, allocations: 259.2 kB / 453 MB, free: 33.97 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.2878, allocations: 8.375 kB / 453 MB, free: 33.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.2878, allocations: 4 kB / 453 MB, free: 33.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.2878, allocations: 9.344 kB / 453 MB, free: 33.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001703/0.288, allocations: 45.17 kB / 453.1 MB, free: 33.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.288, allocations: 2.688 kB / 453.1 MB, free: 33.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.762e-05/0.2881, allocations: 37.69 kB / 453.1 MB, free: 33.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.427e-05/0.2881, allocations: 12.59 kB / 453.1 MB, free: 33.93 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.0001267/0.2882, allocations: 155.7 kB / 453.3 MB, free: 33.78 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.525e-05/0.2883, allocations: 29.72 kB / 453.3 MB, free: 33.77 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.699e-05/0.2884, allocations: 37.75 kB / 453.3 MB, free: 33.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.249e-06/0.2884, allocations: 6.312 kB / 453.3 MB, free: 33.74 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.2884, allocations: 0 / 453.3 MB, free: 33.74 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.312e-05/0.2884, allocations: 2.844 kB / 453.3 MB, free: 33.74 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003388/0.2887, allocations: 407.1 kB / 453.7 MB, free: 33.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.2888, allocations: 4 kB / 453.7 MB, free: 33.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001646/0.2889, allocations: 30.22 kB / 453.8 MB, free: 33.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.2889, allocations: 2.844 kB / 453.8 MB, free: 33.45 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.631e-05/0.289, allocations: 4 kB / 453.8 MB, free: 33.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.289, allocations: 6.812 kB / 453.8 MB, free: 33.45 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.289, allocations: 0 / 453.8 MB, free: 33.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003598/0.2893, allocations: 343.9 kB / 454.1 MB, free: 33.22 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.014e-05/0.2894, allocations: 112.1 kB / 454.2 MB, free: 33.11 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.328e-05/0.2894, allocations: 10.44 kB / 454.2 MB, free: 33.1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/0.2895, allocations: 7.938 kB / 454.2 MB, free: 33.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.718e-05/0.2896, allocations: 11.98 kB / 454.2 MB, free: 33.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.428e-06/0.2896, allocations: 9.781 kB / 454.3 MB, free: 33.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001764/0.2898, allocations: 238.4 kB / 454.5 MB, free: 32.96 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.42e-07/0.2898, allocations: 0 / 454.5 MB, free: 32.96 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003093/0.2901, allocations: 78.5 kB / 454.6 MB, free: 32.93 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.0005089/0.2906, allocations: 0.8929 MB / 455.5 MB, free: 32.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002398/0.2909, allocations: 165.5 kB / 455.6 MB, free: 32.1 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.2909, allocations: 0 / 455.6 MB, free: 32.1 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.554e-05/0.291, allocations: 77.23 kB / 455.7 MB, free: 32.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004937/0.2915, allocations: 41.25 kB / 455.7 MB, free: 32.05 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002868/0.2943, allocations: 3.409 MB / 459.1 MB, free: 29.76 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000215/0.2946, allocations: 0.8163 MB / 460 MB, free: 29.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.375e-05/0.2947, allocations: 28.42 kB / 460 MB, free: 29.05 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000137/0.2948, allocations: 146.2 kB / 460.1 MB, free: 28.94 MB / 366.1 MB Notification: Performance of SimCode: time 4.4e-07/0.2948, allocations: 0 / 460.1 MB, free: 28.94 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01396/0.3088, allocations: 5.44 MB / 465.6 MB, free: 28.34 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001324/0.309, allocations: 195 kB / 465.8 MB, free: 28.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.76/2.069, allocations: 0 / 465.8 MB, free: 28.09 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 & /home/hudson/saved_omc/OMSimulator/install/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)