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.0008756/0.0008759, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005479/0.005479, allocations: 169.9 kB / 16.26 MB, free: 6.676 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.19/1.19, allocations: 223.2 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2592/0.2592, allocations: 28.84 MB / 320.3 MB, free: 6.211 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000279/0.0002791, allocations: 4 kB / 388.6 MB, free: 3.098 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2356/0.2359, allocations: 57.48 MB / 446 MB, free: 32.88 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.001474/0.2374, allocations: 1.749 MB / 447.8 MB, free: 31.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004199/0.2379, allocations: 310.9 kB / 448.1 MB, free: 31.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001417/0.238, allocations: 12.78 kB / 448.1 MB, free: 31.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001236/0.2382, allocations: 44.78 kB / 448.2 MB, free: 31.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.924e-05/0.2383, allocations: 18.22 kB / 448.2 MB, free: 31.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002203/0.2385, allocations: 138.9 kB / 448.3 MB, free: 31.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002529/0.2387, allocations: 377.8 kB / 448.7 MB, free: 31.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003085/0.2391, allocations: 309.6 kB / 449 MB, free: 30.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.131e-05/0.2391, allocations: 92.73 kB / 449.1 MB, free: 30.81 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.325e-05/0.2392, allocations: 123.5 kB / 449.2 MB, free: 30.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.649e-05/0.2392, allocations: 9.188 kB / 449.2 MB, free: 30.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.9e-05/0.2393, allocations: 8.844 kB / 449.2 MB, free: 30.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.302e-05/0.2393, allocations: 52.8 kB / 449.3 MB, free: 30.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.678e-05/0.2394, allocations: 182.9 kB / 449.4 MB, free: 30.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001999/0.2396, allocations: 361.4 kB / 449.8 MB, free: 30.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.2396, allocations: 2.75 kB / 449.8 MB, free: 30.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2396, allocations: 4 kB / 449.8 MB, free: 30.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.2396, allocations: 0 / 449.8 MB, free: 30.4 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.0005396/0.2402, allocations: 0.6279 MB / 450.4 MB, free: 29.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.2402, allocations: 11.91 kB / 450.4 MB, free: 29.88 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.742e-05/0.2403, allocations: 104.7 kB / 450.5 MB, free: 29.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.545e-05/0.2404, allocations: 58.03 kB / 450.6 MB, free: 29.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000258/0.2406, allocations: 333.3 kB / 450.9 MB, free: 29.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.599e-05/0.2407, allocations: 43.12 kB / 451 MB, free: 29.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.044e-05/0.2407, allocations: 65.12 kB / 451 MB, free: 29.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005177/0.2412, allocations: 0.4894 MB / 451.5 MB, free: 29.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.2413, allocations: 6.688 kB / 451.5 MB, free: 29.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.763e-05/0.2413, allocations: 25.81 kB / 451.5 MB, free: 29.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.2413, allocations: 11.94 kB / 451.6 MB, free: 29.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003243/0.2416, allocations: 262.7 kB / 451.8 MB, free: 29.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001233/0.2429, allocations: 1.775 MB / 453.6 MB, free: 27.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003562/0.2433, allocations: 212.5 kB / 453.8 MB, free: 27.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.708e-05/0.2433, allocations: 67.47 kB / 453.9 MB, free: 27.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.129e-05/0.2434, allocations: 4 kB / 453.9 MB, free: 27.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.25e-05/0.2434, allocations: 37.47 kB / 453.9 MB, free: 27.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.112e-06/0.2434, allocations: 0 / 453.9 MB, free: 27.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.0003212/0.2437, allocations: 229.2 kB / 454.1 MB, free: 27.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.933e-05/0.2437, allocations: 62.28 kB / 454.2 MB, free: 27.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002289/0.244, allocations: 334.2 kB / 454.5 MB, free: 27.19 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.218e-05/0.244, allocations: 29.7 kB / 454.5 MB, free: 27.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.2441, allocations: 268.6 kB / 454.8 MB, free: 26.94 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.469e-05/0.2441, allocations: 77.77 kB / 454.9 MB, free: 26.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.07e-05/0.2442, allocations: 28.02 kB / 454.9 MB, free: 26.85 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.13e-05/0.2442, allocations: 348.2 kB / 455.3 MB, free: 26.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.871e-05/0.2443, allocations: 54.89 kB / 455.3 MB, free: 26.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.703e-05/0.2444, allocations: 124.7 kB / 455.4 MB, free: 26.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001918/0.2446, allocations: 211.9 kB / 455.6 MB, free: 26.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2446, allocations: 2.625 kB / 455.6 MB, free: 26.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002698/0.2449, allocations: 247.5 kB / 455.9 MB, free: 26.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.18e-05/0.2449, allocations: 6.656 kB / 455.9 MB, free: 26.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.2449, allocations: 2.188 kB / 455.9 MB, free: 26.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.2449, allocations: 8.375 kB / 455.9 MB, free: 26.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000148/0.2451, allocations: 46.45 kB / 455.9 MB, free: 26.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.2451, allocations: 6.625 kB / 455.9 MB, free: 26.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.2e-05/0.2452, allocations: 34.09 kB / 456 MB, free: 26.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.196e-05/0.2452, allocations: 15.19 kB / 456 MB, free: 26.08 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001071/0.2453, allocations: 159.5 kB / 456.2 MB, free: 25.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.024e-05/0.2454, allocations: 40.58 kB / 456.2 MB, free: 25.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.49e-05/0.2454, allocations: 34.69 kB / 456.2 MB, free: 25.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.2455, allocations: 10.5 kB / 456.2 MB, free: 25.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.2455, allocations: 0 / 456.2 MB, free: 25.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.2455, allocations: 6 kB / 456.2 MB, free: 25.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002776/0.2457, allocations: 396 kB / 456.6 MB, free: 25.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2458, allocations: 0 / 456.6 MB, free: 25.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000145/0.2459, allocations: 33.48 kB / 456.7 MB, free: 25.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.2459, allocations: 0 / 456.7 MB, free: 25.6 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.272e-05/0.2459, allocations: 2.625 kB / 456.7 MB, free: 25.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.2459, allocations: 3.938 kB / 456.7 MB, free: 25.6 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2459, allocations: 0 / 456.7 MB, free: 25.6 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002999/0.2463, allocations: 353 kB / 457 MB, free: 25.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.135e-05/0.2463, allocations: 115.9 kB / 457.1 MB, free: 25.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.68e-05/0.2463, allocations: 6.625 kB / 457.1 MB, free: 25.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.391e-05/0.2464, allocations: 7.938 kB / 457.1 MB, free: 25.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.258e-05/0.2465, allocations: 11.77 kB / 457.2 MB, free: 25.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.023e-06/0.2465, allocations: 5.25 kB / 457.2 MB, free: 25.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001511/0.2466, allocations: 238.8 kB / 457.4 MB, free: 25.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2466, allocations: 0 / 457.4 MB, free: 25.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002656/0.2469, allocations: 78.78 kB / 457.5 MB, free: 25.07 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 (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.0004116/0.2473, allocations: 0.8945 MB / 458.4 MB, free: 24.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002113/0.2475, allocations: 161.7 kB / 458.5 MB, free: 24.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2476, allocations: 0 / 458.5 MB, free: 24.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.265e-05/0.2476, allocations: 76.39 kB / 458.6 MB, free: 24.22 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003808/0.248, allocations: 56.17 kB / 458.6 MB, free: 24.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002583/0.2506, allocations: 3.414 MB / 462.1 MB, free: 21.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001945/0.2508, allocations: 0.8122 MB / 462.9 MB, free: 21.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.753e-05/0.2509, allocations: 28.81 kB / 462.9 MB, free: 21.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001287/0.251, allocations: 143.9 kB / 463 MB, free: 21.07 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.251, allocations: 4 kB / 463 MB, free: 21.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01464/0.2657, allocations: 5.313 MB / 468.4 MB, free: 20.6 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001224/0.2658, allocations: 207.6 kB / 468.6 MB, free: 20.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.69/1.956, allocations: 0 / 468.6 MB, free: 20.34 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/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)