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.0007469/0.0007469, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.0009101/0.0009105, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.246/1.246, allocations: 223.2 MB / 240 MB, free: 5.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2547/0.2547, allocations: 28.84 MB / 319.9 MB, free: 6.254 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002838/0.0002839, allocations: 8 kB / 388 MB, free: 3.441 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2312/0.2315, allocations: 57.48 MB / 445.4 MB, free: 32.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.00144/0.233, allocations: 1.627 MB / 447.1 MB, free: 31.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004316/0.2334, allocations: 313.4 kB / 447.4 MB, free: 31.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001416/0.2336, allocations: 6.062 kB / 447.4 MB, free: 31.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000121/0.2337, allocations: 48.3 kB / 447.4 MB, free: 31.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.026e-05/0.2338, allocations: 23.88 kB / 447.4 MB, free: 31.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001974/0.234, allocations: 110.6 kB / 447.6 MB, free: 31.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002374/0.2342, allocations: 355 kB / 447.9 MB, free: 31.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000271/0.2345, allocations: 252.1 kB / 448.2 MB, free: 31.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.005e-05/0.2346, allocations: 85.98 kB / 448.2 MB, free: 30.97 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.334e-05/0.2347, allocations: 112.6 kB / 448.3 MB, free: 30.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.351e-05/0.2347, allocations: 8.344 kB / 448.4 MB, free: 30.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.034e-05/0.2347, allocations: 11.31 kB / 448.4 MB, free: 30.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.42e-05/0.2348, allocations: 49.47 kB / 448.4 MB, free: 30.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.357e-05/0.2348, allocations: 90.17 kB / 448.5 MB, free: 30.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001635/0.235, allocations: 272.9 kB / 448.8 MB, free: 30.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.235, allocations: 0 / 448.8 MB, free: 30.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.235, allocations: 0 / 448.8 MB, free: 30.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.235, allocations: 0 / 448.8 MB, free: 30.72 MB / 350.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.0004973/0.2355, allocations: 0.6302 MB / 449.4 MB, free: 30.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.896e-05/0.2356, allocations: 8.875 kB / 449.4 MB, free: 30.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.007e-05/0.2356, allocations: 105.5 kB / 449.5 MB, free: 30.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.571e-05/0.2357, allocations: 60.11 kB / 449.6 MB, free: 30.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002525/0.236, allocations: 335.6 kB / 449.9 MB, free: 29.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.331e-05/0.236, allocations: 41.56 kB / 449.9 MB, free: 29.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.582e-05/0.2361, allocations: 57.81 kB / 450 MB, free: 29.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005187/0.2366, allocations: 496.5 kB / 450.5 MB, free: 29.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.2366, allocations: 0 / 450.5 MB, free: 29.49 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.577e-05/0.2366, allocations: 25.78 kB / 450.5 MB, free: 29.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-06/0.2366, allocations: 18.92 kB / 450.5 MB, free: 29.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000336/0.237, allocations: 264.4 kB / 450.8 MB, free: 29.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001221/0.2382, allocations: 1.772 MB / 452.6 MB, free: 28.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003464/0.2386, allocations: 208.2 kB / 452.8 MB, free: 27.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.835e-05/0.2387, allocations: 63.84 kB / 452.8 MB, free: 27.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.549e-05/0.2387, allocations: 2.625 kB / 452.8 MB, free: 27.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.17e-05/0.2387, allocations: 41.48 kB / 452.9 MB, free: 27.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.173e-06/0.2387, allocations: 4 kB / 452.9 MB, free: 27.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.0003127/0.239, allocations: 230.3 kB / 453.1 MB, free: 27.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.762e-05/0.2391, allocations: 51.41 kB / 453.1 MB, free: 27.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002303/0.2393, allocations: 336.5 kB / 453.5 MB, free: 27.53 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.104e-05/0.2393, allocations: 29.7 kB / 453.5 MB, free: 27.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.272e-05/0.2394, allocations: 267.7 kB / 453.8 MB, free: 27.28 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.294e-05/0.2394, allocations: 73.53 kB / 453.8 MB, free: 27.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.037e-06/0.2395, allocations: 6.719 kB / 453.8 MB, free: 27.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.937e-05/0.2395, allocations: 349.7 kB / 454.2 MB, free: 26.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.437e-05/0.2396, allocations: 56.92 kB / 454.2 MB, free: 26.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.696e-05/0.2397, allocations: 125.5 kB / 454.4 MB, free: 26.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.881e-05/0.2398, allocations: 72.75 kB / 454.4 MB, free: 26.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2398, allocations: 0 / 454.4 MB, free: 26.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000268/0.2401, allocations: 256.4 kB / 454.7 MB, free: 26.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.028e-05/0.2401, allocations: 5.594 kB / 454.7 MB, free: 26.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.2401, allocations: 6.656 kB / 454.7 MB, free: 26.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.2401, allocations: 2.375 kB / 454.7 MB, free: 26.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001546/0.2403, allocations: 48.95 kB / 454.7 MB, free: 26.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.2403, allocations: 6.172 kB / 454.7 MB, free: 26.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.798e-05/0.2404, allocations: 32.12 kB / 454.8 MB, free: 26.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.205e-05/0.2404, allocations: 8.312 kB / 454.8 MB, free: 26.56 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001175/0.2405, allocations: 156 kB / 454.9 MB, free: 26.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.968e-05/0.2406, allocations: 29.84 kB / 455 MB, free: 26.4 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.612e-05/0.2406, allocations: 38.31 kB / 455 MB, free: 26.37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.806e-06/0.2407, allocations: 5.953 kB / 455 MB, free: 26.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.2407, allocations: 0 / 455 MB, free: 26.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.2407, allocations: 3.938 kB / 455 MB, free: 26.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002895/0.241, allocations: 411.1 kB / 455.4 MB, free: 26.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.241, allocations: 6.344 kB / 455.4 MB, free: 26.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001467/0.2411, allocations: 31.78 kB / 455.5 MB, free: 26.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.2411, allocations: 0 / 455.5 MB, free: 26.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.259e-05/0.2412, allocations: 2.906 kB / 455.5 MB, free: 26.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.562e-06/0.2412, allocations: 0 / 455.5 MB, free: 26.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.2412, allocations: 0 / 455.5 MB, free: 26.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002994/0.2415, allocations: 358.4 kB / 455.8 MB, free: 25.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.125e-05/0.2415, allocations: 109.3 kB / 455.9 MB, free: 25.72 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.734e-05/0.2416, allocations: 7.031 kB / 455.9 MB, free: 25.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.079e-05/0.2417, allocations: 8 kB / 455.9 MB, free: 25.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.099e-05/0.2417, allocations: 12.3 kB / 455.9 MB, free: 25.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.595e-06/0.2417, allocations: 2.906 kB / 455.9 MB, free: 25.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000156/0.2419, allocations: 240.1 kB / 456.2 MB, free: 25.58 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2419, allocations: 0 / 456.2 MB, free: 25.58 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002759/0.2421, allocations: 80.25 kB / 456.3 MB, free: 25.55 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004335/0.2426, allocations: 0.8907 MB / 457.1 MB, free: 24.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002097/0.2428, allocations: 155.2 kB / 457.3 MB, free: 24.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2428, allocations: 4.125 kB / 457.3 MB, free: 24.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.75e-05/0.2429, allocations: 74.45 kB / 457.4 MB, free: 24.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003459/0.2432, allocations: 52.59 kB / 457.4 MB, free: 24.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001837/0.2451, allocations: 1.992 MB / 459.4 MB, free: 23.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001684/0.2453, allocations: 0.8212 MB / 460.2 MB, free: 22.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.97e-05/0.2454, allocations: 25.09 kB / 460.3 MB, free: 22.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001307/0.2455, allocations: 143.5 kB / 460.4 MB, free: 22.68 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2455, allocations: 0 / 460.4 MB, free: 22.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01465/0.2602, allocations: 5.225 MB / 465.6 MB, free: 22.21 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001175/0.2603, allocations: 178 kB / 465.8 MB, free: 21.97 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.583/1.843, allocations: 0 / 465.8 MB, free: 21.97 MB / 350.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/linux/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) Environment - environmentSimulation: