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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00176/0.00176, allocations: 218.6 kB / 22.25 MB, free: 4.852 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.427/1.427, allocations: 230.6 MB / 256 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo): time 0.2087/0.2087, allocations: 29.23 MB / 341.7 MB, free: 5.695 MB / 270.1 MB " [Timeout remaining time 180] Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(SystemDynamics.IntroductoryExamples.Sugar_Cane,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane") translateModel(SystemDynamics.IntroductoryExamples.Sugar_Cane,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane") [Timeout 660] "Notification: SystemDynamics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002072/0.002072, allocations: 67.95 kB / 478.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3165/0.3186, allocations: 60.79 MB / 0.5269 GB, free: 8.113 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.002958/0.3215, allocations: 1.843 MB / 0.5287 GB, free: 6.906 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000644/0.3222, allocations: 327.2 kB / 0.529 GB, free: 6.664 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001708/0.3223, allocations: 14.41 kB / 0.5291 GB, free: 6.656 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002008/0.3226, allocations: 66.27 kB / 0.5291 GB, free: 6.609 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001033/0.3227, allocations: 38.88 kB / 0.5292 GB, free: 6.574 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002767/0.3229, allocations: 159.9 kB / 0.5293 GB, free: 6.484 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003732/0.3233, allocations: 402.1 kB / 0.5297 GB, free: 6.289 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003467/0.3237, allocations: 233.2 kB / 0.5299 GB, free: 6.156 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001113/0.3238, allocations: 165.4 kB / 0.5301 GB, free: 6.059 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001365/0.3239, allocations: 156.1 kB / 0.5302 GB, free: 5.969 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.593e-05/0.324, allocations: 41.28 kB / 0.5303 GB, free: 5.969 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.891e-05/0.324, allocations: 42.5 kB / 0.5303 GB, free: 5.969 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.408e-05/0.3241, allocations: 101.5 kB / 0.5304 GB, free: 5.898 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001037/0.3242, allocations: 165.1 kB / 0.5306 GB, free: 5.789 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004074/0.3246, allocations: 436.5 kB / 0.531 GB, free: 5.566 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3246, allocations: 0 / 0.531 GB, free: 5.566 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3246, allocations: 0 / 0.531 GB, free: 5.566 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.815e-06/0.3246, allocations: 0 / 0.531 GB, free: 5.566 MB / 382.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.000737/0.3253, allocations: 0.6468 MB / 0.5316 GB, free: 5.078 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.3254, allocations: 9.875 kB / 0.5316 GB, free: 5.078 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.494e-05/0.3254, allocations: 60.38 kB / 0.5317 GB, free: 5.047 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003783/0.3258, allocations: 293.4 kB / 0.532 GB, free: 4.809 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.791e-05/0.3258, allocations: 39.59 kB / 0.532 GB, free: 4.793 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.385e-05/0.3259, allocations: 50.56 kB / 0.532 GB, free: 4.777 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006036/0.3265, allocations: 489.5 kB / 0.5325 GB, free: 4.512 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/0.3265, allocations: 192 / 0.5325 GB, free: 4.512 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.99e-05/0.3266, allocations: 25.03 kB / 0.5325 GB, free: 4.492 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.329e-05/0.3266, allocations: 12.97 kB / 0.5325 GB, free: 4.492 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003872/0.327, allocations: 256.6 kB / 0.5328 GB, free: 4.398 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001383/0.3283, allocations: 1.497 MB / 0.5342 GB, free: 3.215 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004197/0.3288, allocations: 197.4 kB / 0.5344 GB, free: 3.125 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.818e-05/0.3289, allocations: 72.36 kB / 0.5345 GB, free: 3.082 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.345e-05/0.3289, allocations: 2.281 kB / 0.5345 GB, free: 3.082 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.512e-05/0.3289, allocations: 37.27 kB / 0.5345 GB, free: 3.039 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.292e-06/0.3289, allocations: 0 / 0.5345 GB, free: 3.039 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.0003851/0.3293, allocations: 218.8 kB / 0.5347 GB, free: 2.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.201e-05/0.3293, allocations: 53.94 kB / 0.5348 GB, free: 2.867 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001918/0.3295, allocations: 235.4 kB / 0.535 GB, free: 2.719 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.416e-05/0.3295, allocations: 30.64 kB / 0.5351 GB, free: 2.684 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001239/0.3296, allocations: 271.6 kB / 0.5353 GB, free: 2.465 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.123e-05/0.3297, allocations: 73.64 kB / 0.5354 GB, free: 2.406 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.593e-05/0.3297, allocations: 47.66 kB / 0.5354 GB, free: 2.375 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.108e-05/0.3298, allocations: 347.8 kB / 0.5358 GB, free: 2.039 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001001/0.3299, allocations: 57.06 kB / 0.5358 GB, free: 2.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001216/0.33, allocations: 121.3 kB / 0.5359 GB, free: 1.922 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002115/0.3302, allocations: 189.7 kB / 0.5361 GB, free: 1.785 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.3302, allocations: 5.938 kB / 0.5361 GB, free: 1.781 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003123/0.3305, allocations: 249.4 kB / 0.5364 GB, free: 1.656 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.3306, allocations: 5.953 kB / 0.5364 GB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.3306, allocations: 2.938 kB / 0.5364 GB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.3306, allocations: 2.906 kB / 0.5364 GB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001743/0.3308, allocations: 44.95 kB / 0.5364 GB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.3308, allocations: 3.75 kB / 0.5364 GB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.611e-05/0.3308, allocations: 25.86 kB / 0.5364 GB, free: 1.633 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.32e-05/0.3309, allocations: 12.94 kB / 0.5365 GB, free: 1.629 MB / 382.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.0001155/0.331, allocations: 155.7 kB / 0.5366 GB, free: 1.484 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.88e-05/0.331, allocations: 22.28 kB / 0.5366 GB, free: 1.473 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.258e-05/0.3311, allocations: 30.2 kB / 0.5366 GB, free: 1.457 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.3311, allocations: 6.75 kB / 0.5367 GB, free: 1.453 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.3311, allocations: 4.594 kB / 0.5367 GB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.3311, allocations: 1.984 kB / 0.5367 GB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000297/0.3314, allocations: 281.7 kB / 0.5369 GB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3314, allocations: 0 / 0.5369 GB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001654/0.3315, allocations: 35.88 kB / 0.537 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.3316, allocations: 1.891 kB / 0.537 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.643e-05/0.3316, allocations: 5.375 kB / 0.537 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.918e-06/0.3316, allocations: 2.266 kB / 0.537 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3316, allocations: 3.984 kB / 0.537 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003687/0.3319, allocations: 348.9 kB / 0.5373 GB, free: 1.012 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.925e-05/0.332, allocations: 23.47 kB / 0.5373 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.657e-05/0.332, allocations: 5.984 kB / 0.5373 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.986e-05/0.3321, allocations: 1.375 kB / 0.5373 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.525e-05/0.3321, allocations: 14.22 kB / 0.5374 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.436e-06/0.3321, allocations: 4.125 kB / 0.5374 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001134/0.3322, allocations: 170.8 kB / 0.5375 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3322, allocations: 0 / 0.5375 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000291/0.3325, allocations: 90.27 kB / 0.5376 GB, free: 0.8359 MB / 382.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 6.729e-05/0.3326, allocations: 92.28 kB / 0.5377 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000254/0.3329, allocations: 148.8 kB / 0.5378 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3329, allocations: 1 kB / 0.5378 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.112e-05/0.3329, allocations: 68.89 kB / 0.5379 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003397/0.3333, allocations: 49.88 kB / 0.538 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008056/0.3341, allocations: 0.6679 MB / 0.5386 GB, free: 220 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001503/0.3342, allocations: 206.1 kB / 0.5388 GB, free: 76 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.652e-05/0.3343, allocations: 22.59 kB / 0.5388 GB, free: 56 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.402e-05/0.3344, allocations: 21.91 kB / 0.5388 GB, free: 44 kB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3344, allocations: 0 / 0.5388 GB, free: 44 kB / 382.1 MB Notification: Performance of Templates: time 0.005136/0.3395, allocations: 1.755 MB / 0.5406 GB, free: 15.13 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.makefile [Timeout 660] (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 & ./SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.685451220721006] Failed to read output from testmodel.py, exit status != 0: 0.34749981574714184 0.361096919 0.033587097 Calling exit ...