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.001408/0.001408, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001294/0.001294, allocations: 190.3 kB / 16.25 MB, free: 6.637 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.299/1.299, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3177/0.3177, allocations: 28.81 MB / 318.9 MB, free: 5.844 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 55.91 kB / 386.2 MB, free: 3.84 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3753/0.3767, allocations: 56.41 MB / 442.6 MB, free: 39.67 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.002802/0.3795, allocations: 2.147 MB / 444.8 MB, free: 38.43 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004837/0.38, allocations: 320 kB / 445.1 MB, free: 38.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00016/0.3802, allocations: 5.5 kB / 445.1 MB, free: 38.34 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001772/0.3804, allocations: 46.45 kB / 445.1 MB, free: 38.31 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001022/0.3805, allocations: 18.25 kB / 445.1 MB, free: 38.3 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002444/0.3807, allocations: 145.7 kB / 445.3 MB, free: 38.29 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002913/0.381, allocations: 401.8 kB / 445.7 MB, free: 38.25 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00034/0.3814, allocations: 326.9 kB / 446 MB, free: 38.18 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.264e-05/0.3815, allocations: 152.9 kB / 446.1 MB, free: 38.14 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001162/0.3816, allocations: 186.6 kB / 446.3 MB, free: 38.08 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.385e-05/0.3816, allocations: 40.31 kB / 446.4 MB, free: 38.08 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.662e-05/0.3817, allocations: 42.69 kB / 446.4 MB, free: 38.08 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.445e-05/0.3817, allocations: 102.6 kB / 446.5 MB, free: 38.05 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001216/0.3819, allocations: 210.3 kB / 446.7 MB, free: 37.97 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002617/0.3821, allocations: 413 kB / 447.1 MB, free: 37.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3821, allocations: 0 / 447.1 MB, free: 37.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3821, allocations: 0 / 447.1 MB, free: 37.88 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.765e-06/0.3822, allocations: 0 / 447.1 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.0006864/0.3828, allocations: 0.7197 MB / 447.8 MB, free: 37.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.3829, allocations: 8.781 kB / 447.8 MB, free: 37.38 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.931e-05/0.383, allocations: 108.1 kB / 448 MB, free: 37.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.144e-05/0.3831, allocations: 60.34 kB / 448 MB, free: 37.3 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002764/0.3833, allocations: 332.2 kB / 448.3 MB, free: 37.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.64e-05/0.3834, allocations: 45.72 kB / 448.4 MB, free: 37.03 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.49e-05/0.3834, allocations: 53.38 kB / 448.4 MB, free: 37.03 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005512/0.384, allocations: 0.4939 MB / 448.9 MB, free: 36.85 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.384, allocations: 3.938 kB / 448.9 MB, free: 36.85 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.99e-05/0.3841, allocations: 21.97 kB / 449 MB, free: 36.83 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.3841, allocations: 13.75 kB / 449 MB, free: 36.83 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003336/0.3844, allocations: 264.2 kB / 449.2 MB, free: 36.74 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001318/0.3857, allocations: 1.78 MB / 451 MB, free: 35.42 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004518/0.3862, allocations: 207.7 kB / 451.2 MB, free: 35.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001218/0.3863, allocations: 66.86 kB / 451.3 MB, free: 35.29 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.156e-05/0.3864, allocations: 6.688 kB / 451.3 MB, free: 35.29 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.437e-05/0.3864, allocations: 34.56 kB / 451.3 MB, free: 35.24 MB / 366.1 MB Notification: Performance of pre-optimization done (n=19): time 1.543e-06/0.3864, allocations: 0 / 451.3 MB, free: 35.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.000439/0.3868, allocations: 232.1 kB / 451.5 MB, free: 35.12 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.073e-05/0.3869, allocations: 62.25 kB / 451.6 MB, free: 35.05 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002268/0.3871, allocations: 337.2 kB / 451.9 MB, free: 34.88 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.112e-05/0.3871, allocations: 28.89 kB / 452 MB, free: 34.85 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.3872, allocations: 277.9 kB / 452.2 MB, free: 34.62 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.929e-05/0.3873, allocations: 72.09 kB / 452.3 MB, free: 34.56 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.93e-05/0.3873, allocations: 50.14 kB / 452.3 MB, free: 34.53 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.249e-05/0.3874, allocations: 348.1 kB / 452.7 MB, free: 34.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.281e-05/0.3875, allocations: 56.66 kB / 452.7 MB, free: 34.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001032/0.3876, allocations: 126.5 kB / 452.9 MB, free: 34.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001953/0.3878, allocations: 197.2 kB / 453.1 MB, free: 33.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3878, allocations: 3.938 kB / 453.1 MB, free: 33.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002707/0.3881, allocations: 260 kB / 453.3 MB, free: 33.8 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.3881, allocations: 8.688 kB / 453.3 MB, free: 33.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.3881, allocations: 0 / 453.3 MB, free: 33.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.3881, allocations: 11.03 kB / 453.3 MB, free: 33.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001605/0.3883, allocations: 48.42 kB / 453.4 MB, free: 33.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.988e-06/0.3883, allocations: 3 kB / 453.4 MB, free: 33.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.023e-05/0.3884, allocations: 36.25 kB / 453.4 MB, free: 33.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.578e-05/0.3884, allocations: 15.64 kB / 453.4 MB, free: 33.75 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.0001303/0.3886, allocations: 155.2 kB / 453.6 MB, free: 33.61 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.574e-05/0.3886, allocations: 31.56 kB / 453.6 MB, free: 33.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.746e-05/0.3887, allocations: 34.94 kB / 453.7 MB, free: 33.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.3887, allocations: 6.406 kB / 453.7 MB, free: 33.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.3887, allocations: 4 kB / 453.7 MB, free: 33.56 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.3887, allocations: 3.188 kB / 453.7 MB, free: 33.56 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003149/0.389, allocations: 403.3 kB / 454.1 MB, free: 33.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.389, allocations: 0 / 454.1 MB, free: 33.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001539/0.3892, allocations: 25.03 kB / 454.1 MB, free: 33.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.3892, allocations: 6.844 kB / 454.1 MB, free: 33.28 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.3892, allocations: 4 kB / 454.1 MB, free: 33.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.3892, allocations: 7.062 kB / 454.1 MB, free: 33.27 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.3892, allocations: 0 / 454.1 MB, free: 33.27 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003303/0.3896, allocations: 356.6 kB / 454.5 MB, free: 33.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.815e-05/0.3896, allocations: 116.3 kB / 454.6 MB, free: 32.92 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.872e-05/0.3897, allocations: 3 kB / 454.6 MB, free: 32.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.3898, allocations: 7.938 kB / 454.6 MB, free: 32.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.663e-05/0.3898, allocations: 9.125 kB / 454.6 MB, free: 32.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.285e-06/0.3898, allocations: 6.875 kB / 454.6 MB, free: 32.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001547/0.39, allocations: 240.8 kB / 454.8 MB, free: 32.78 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.39, allocations: 0 / 454.8 MB, free: 32.78 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002712/0.3902, allocations: 79.91 kB / 454.9 MB, free: 32.75 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.0004711/0.3907, allocations: 0.8847 MB / 455.8 MB, free: 31.99 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002551/0.391, allocations: 176.2 kB / 456 MB, free: 31.92 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.391, allocations: 0.5 kB / 456 MB, free: 31.92 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.04e-05/0.3911, allocations: 79.02 kB / 456 MB, free: 31.89 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003849/0.3915, allocations: 53.52 kB / 456.1 MB, free: 31.86 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002622/0.3941, allocations: 3.409 MB / 459.5 MB, free: 29.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002204/0.3943, allocations: 0.8113 MB / 460.3 MB, free: 28.87 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.079e-05/0.3944, allocations: 27.97 kB / 460.3 MB, free: 28.87 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001367/0.3946, allocations: 152.1 kB / 460.5 MB, free: 28.75 MB / 366.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3946, allocations: 0 / 460.5 MB, free: 28.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4751/0.8697, allocations: 5.563 MB / 466.1 MB, free: 28.15 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001939/0.87, allocations: 193.1 kB / 466.2 MB, free: 27.9 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.851/2.721, allocations: 4 kB / 466.2 MB, free: 27.9 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)