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.00136/0.00136, allocations: 108 kB / 15.61 MB, free: 152 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.001596/0.001596, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.355/1.355, allocations: 222.9 MB / 240.2 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2956/0.2956, allocations: 28.81 MB / 319.2 MB, free: 5.754 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 55.91 kB / 386.7 MB, free: 3.562 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2771/0.2786, allocations: 56.42 MB / 443.1 MB, free: 39.68 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.002645/0.2813, allocations: 2.108 MB / 445.2 MB, free: 38.45 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005641/0.2819, allocations: 323.7 kB / 445.6 MB, free: 38.36 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001614/0.282, allocations: 9.5 kB / 445.6 MB, free: 38.36 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001752/0.2822, allocations: 74.59 kB / 445.6 MB, free: 38.31 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001108/0.2823, allocations: 45.78 kB / 445.7 MB, free: 38.27 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002531/0.2826, allocations: 163.1 kB / 445.8 MB, free: 38.27 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002799/0.2829, allocations: 395.3 kB / 446.2 MB, free: 38.23 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003562/0.2833, allocations: 337.6 kB / 446.6 MB, free: 38.14 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.263e-05/0.2833, allocations: 146.9 kB / 446.7 MB, free: 38.11 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001127/0.2835, allocations: 191.4 kB / 446.9 MB, free: 38.04 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.711e-05/0.2835, allocations: 42.28 kB / 446.9 MB, free: 38.04 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.823e-05/0.2836, allocations: 42.5 kB / 447 MB, free: 38.04 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.805e-05/0.2836, allocations: 100.5 kB / 447.1 MB, free: 38.02 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001151/0.2838, allocations: 211.5 kB / 447.3 MB, free: 37.94 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002591/0.284, allocations: 409.8 kB / 447.7 MB, free: 37.85 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.284, allocations: 0 / 447.7 MB, free: 37.85 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.284, allocations: 0 / 447.7 MB, free: 37.85 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.284, allocations: 0 / 447.7 MB, free: 37.85 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.0007175/0.2848, allocations: 0.719 MB / 448.4 MB, free: 37.35 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.2848, allocations: 11.66 kB / 448.4 MB, free: 37.35 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001046/0.2849, allocations: 102.8 kB / 448.5 MB, free: 37.3 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.644e-05/0.285, allocations: 56.28 kB / 448.6 MB, free: 37.28 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002801/0.2853, allocations: 333.2 kB / 448.9 MB, free: 37.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.414e-05/0.2853, allocations: 38.25 kB / 448.9 MB, free: 37.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.577e-05/0.2854, allocations: 59.86 kB / 449 MB, free: 37.02 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005362/0.2859, allocations: 497.7 kB / 449.5 MB, free: 36.77 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.2859, allocations: 11.81 kB / 449.5 MB, free: 36.76 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.003e-05/0.286, allocations: 21.69 kB / 449.5 MB, free: 36.74 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.286, allocations: 18 kB / 449.5 MB, free: 36.74 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003598/0.2864, allocations: 273 kB / 449.8 MB, free: 36.64 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001349/0.2877, allocations: 1.767 MB / 451.6 MB, free: 35.33 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003766/0.2881, allocations: 220.8 kB / 451.8 MB, free: 35.22 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.432e-05/0.2882, allocations: 69.33 kB / 451.8 MB, free: 35.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.681e-05/0.2882, allocations: 2.875 kB / 451.8 MB, free: 35.18 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.371e-05/0.2882, allocations: 33.53 kB / 451.9 MB, free: 35.14 MB / 366.1 MB Notification: Performance of pre-optimization done (n=19): time 1.283e-06/0.2883, allocations: 0 / 451.9 MB, free: 35.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.0003476/0.2886, allocations: 235 kB / 452.1 MB, free: 35.03 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.019e-05/0.2886, allocations: 55.41 kB / 452.2 MB, free: 34.96 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002489/0.2889, allocations: 337.8 kB / 452.5 MB, free: 34.79 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.28e-05/0.2889, allocations: 36.42 kB / 452.5 MB, free: 34.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.876e-05/0.289, allocations: 267.5 kB / 452.8 MB, free: 34.53 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.67e-05/0.2891, allocations: 70.05 kB / 452.9 MB, free: 34.47 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.247e-05/0.2891, allocations: 50.22 kB / 452.9 MB, free: 34.44 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.41e-05/0.2892, allocations: 344.6 kB / 453.2 MB, free: 34.11 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.807e-05/0.2893, allocations: 63.62 kB / 453.3 MB, free: 34.08 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001048/0.2894, allocations: 126.1 kB / 453.4 MB, free: 33.98 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001994/0.2896, allocations: 196.8 kB / 453.6 MB, free: 33.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.2896, allocations: 0 / 453.6 MB, free: 33.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003266/0.2899, allocations: 261.5 kB / 453.9 MB, free: 33.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.29, allocations: 7.969 kB / 453.9 MB, free: 33.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.29, allocations: 2.844 kB / 453.9 MB, free: 33.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.29, allocations: 6.75 kB / 453.9 MB, free: 33.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001656/0.2902, allocations: 49.58 kB / 453.9 MB, free: 33.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.2902, allocations: 9.969 kB / 453.9 MB, free: 33.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001005/0.2903, allocations: 32.5 kB / 454 MB, free: 33.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.223e-05/0.2903, allocations: 6.188 kB / 454 MB, free: 33.66 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.0001117/0.2904, allocations: 164.3 kB / 454.1 MB, free: 33.51 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.603e-05/0.2905, allocations: 30.12 kB / 454.2 MB, free: 33.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.571e-05/0.2905, allocations: 38.73 kB / 454.2 MB, free: 33.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.2905, allocations: 6.75 kB / 454.2 MB, free: 33.47 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.2906, allocations: 0 / 454.2 MB, free: 33.47 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.2906, allocations: 3.938 kB / 454.2 MB, free: 33.47 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003058/0.2909, allocations: 399.5 kB / 454.6 MB, free: 33.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.2909, allocations: 0 / 454.6 MB, free: 33.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001624/0.291, allocations: 35.17 kB / 454.6 MB, free: 33.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.2911, allocations: 0 / 454.6 MB, free: 33.19 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.65e-05/0.2911, allocations: 10.56 kB / 454.7 MB, free: 33.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.716e-06/0.2911, allocations: 3.938 kB / 454.7 MB, free: 33.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.2911, allocations: 2.719 kB / 454.7 MB, free: 33.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003748/0.2915, allocations: 353 kB / 455 MB, free: 32.95 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.81e-05/0.2915, allocations: 107.8 kB / 455.1 MB, free: 32.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.198e-05/0.2916, allocations: 6.625 kB / 455.1 MB, free: 32.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.2917, allocations: 7.938 kB / 455.1 MB, free: 32.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.882e-05/0.2917, allocations: 8.844 kB / 455.1 MB, free: 32.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.277e-06/0.2917, allocations: 9.688 kB / 455.1 MB, free: 32.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001739/0.2919, allocations: 241.1 kB / 455.4 MB, free: 32.69 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2919, allocations: 0 / 455.4 MB, free: 32.69 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003051/0.2922, allocations: 74.5 kB / 455.5 MB, free: 32.66 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.000462/0.2927, allocations: 0.8941 MB / 456.3 MB, free: 31.9 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000266/0.293, allocations: 178.4 kB / 456.5 MB, free: 31.83 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.293, allocations: 0 / 456.5 MB, free: 31.83 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.329e-05/0.2931, allocations: 72.69 kB / 456.6 MB, free: 31.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004328/0.2935, allocations: 48.73 kB / 456.6 MB, free: 31.78 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002775/0.2963, allocations: 3.248 MB / 459.9 MB, free: 29.65 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001928/0.2965, allocations: 0.816 MB / 460.7 MB, free: 28.95 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.111e-05/0.2966, allocations: 29.52 kB / 460.7 MB, free: 28.95 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001303/0.2967, allocations: 142.1 kB / 460.9 MB, free: 28.84 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2967, allocations: 0 / 460.9 MB, free: 28.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02277/0.3195, allocations: 5.631 MB / 466.5 MB, free: 28.13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.611/7.93, allocations: 23.39 kB / 466.5 MB, free: 28.12 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)