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.001391/0.001391, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.001614/0.001614, allocations: 213 kB / 22.99 MB, free: 4.98 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.474/1.474, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.1993/0.1993, allocations: 29.23 MB / 342.4 MB, free: 5.598 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.002181/0.002181, allocations: 63.97 kB / 479.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3441/0.3462, allocations: 60.79 MB / 0.5277 GB, free: 8.117 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.003931/0.3502, allocations: 1.842 MB / 0.5295 GB, free: 6.91 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006532/0.3508, allocations: 327.8 kB / 0.5298 GB, free: 6.668 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001857/0.351, allocations: 11.16 kB / 0.5298 GB, free: 6.664 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002313/0.3512, allocations: 74.03 kB / 0.5299 GB, free: 6.609 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001164/0.3514, allocations: 38.67 kB / 0.5299 GB, free: 6.574 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003186/0.3517, allocations: 163.5 kB / 0.53 GB, free: 6.48 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004296/0.3521, allocations: 401.5 kB / 0.5304 GB, free: 6.285 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003787/0.3525, allocations: 254.6 kB / 0.5307 GB, free: 6.133 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001335/0.3526, allocations: 156.1 kB / 0.5308 GB, free: 6.043 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000156/0.3528, allocations: 176.1 kB / 0.531 GB, free: 5.934 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.962e-05/0.3528, allocations: 42.5 kB / 0.531 GB, free: 5.934 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.974e-05/0.3529, allocations: 45.16 kB / 0.5311 GB, free: 5.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.628e-05/0.353, allocations: 101.8 kB / 0.5312 GB, free: 5.859 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001148/0.3531, allocations: 161.2 kB / 0.5313 GB, free: 5.754 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004397/0.3535, allocations: 444.5 kB / 0.5317 GB, free: 5.523 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.3535, allocations: 0 / 0.5317 GB, free: 5.523 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3535, allocations: 0 / 0.5317 GB, free: 5.523 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.066e-05/0.3535, allocations: 1.375 kB / 0.5317 GB, free: 5.523 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.0008001/0.3543, allocations: 0.6544 MB / 0.5324 GB, free: 5.027 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.3544, allocations: 8.875 kB / 0.5324 GB, free: 5.027 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.425e-05/0.3545, allocations: 60.14 kB / 0.5325 GB, free: 4.996 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004248/0.3549, allocations: 278.2 kB / 0.5327 GB, free: 4.773 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.667e-05/0.3549, allocations: 43.41 kB / 0.5328 GB, free: 4.754 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.929e-05/0.355, allocations: 54.7 kB / 0.5328 GB, free: 4.734 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006713/0.3557, allocations: 484.3 kB / 0.5333 GB, free: 4.473 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.82e-05/0.3557, allocations: 9.312 kB / 0.5333 GB, free: 4.465 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.188e-05/0.3557, allocations: 25.16 kB / 0.5333 GB, free: 4.445 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.423e-05/0.3557, allocations: 12.88 kB / 0.5333 GB, free: 4.445 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004211/0.3561, allocations: 256.3 kB / 0.5336 GB, free: 4.355 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001567/0.3577, allocations: 1.49 MB / 0.535 GB, free: 3.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004277/0.3581, allocations: 197 kB / 0.5352 GB, free: 3.086 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.684e-05/0.3582, allocations: 64.5 kB / 0.5353 GB, free: 3.051 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.083e-05/0.3583, allocations: 2.688 kB / 0.5353 GB, free: 3.051 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.044e-05/0.3583, allocations: 32.72 kB / 0.5353 GB, free: 3.012 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.363e-06/0.3583, allocations: 0 / 0.5353 GB, free: 3.012 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.0003856/0.3587, allocations: 230.3 kB / 0.5355 GB, free: 2.895 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.175e-05/0.3587, allocations: 53.81 kB / 0.5356 GB, free: 2.832 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002231/0.3589, allocations: 239.9 kB / 0.5358 GB, free: 2.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.679e-05/0.3589, allocations: 27.58 kB / 0.5358 GB, free: 2.648 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001284/0.3591, allocations: 277.9 kB / 0.5361 GB, free: 2.422 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.307e-05/0.3591, allocations: 74.08 kB / 0.5362 GB, free: 2.363 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.194e-05/0.3592, allocations: 52.52 kB / 0.5362 GB, free: 2.328 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.153e-05/0.3592, allocations: 335.1 kB / 0.5365 GB, free: 2.004 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.723e-05/0.3593, allocations: 60.53 kB / 0.5366 GB, free: 1.98 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.3595, allocations: 125.1 kB / 0.5367 GB, free: 1.879 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002111/0.3597, allocations: 193.2 kB / 0.5369 GB, free: 1.742 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.3597, allocations: 0 / 0.5369 GB, free: 1.742 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003154/0.36, allocations: 255 kB / 0.5371 GB, free: 1.613 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.36, allocations: 6.203 kB / 0.5371 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.36, allocations: 6.734 kB / 0.5372 GB, free: 1.609 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.36, allocations: 2.75 kB / 0.5372 GB, free: 1.609 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.3602, allocations: 48.38 kB / 0.5372 GB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.3602, allocations: 4.734 kB / 0.5372 GB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.483e-05/0.3603, allocations: 22 kB / 0.5372 GB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.479e-05/0.3603, allocations: 8.25 kB / 0.5372 GB, free: 1.586 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.0001199/0.3604, allocations: 160.2 kB / 0.5374 GB, free: 1.438 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.866e-05/0.3605, allocations: 21.61 kB / 0.5374 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.17e-05/0.3605, allocations: 35 kB / 0.5374 GB, free: 1.406 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.3605, allocations: 2.75 kB / 0.5374 GB, free: 1.406 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.353e-06/0.3605, allocations: 4 kB / 0.5374 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.3605, allocations: 1.219 kB / 0.5374 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003082/0.3608, allocations: 279 kB / 0.5377 GB, free: 1.211 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.3608, allocations: 0 / 0.5377 GB, free: 1.211 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001644/0.361, allocations: 28.08 kB / 0.5377 GB, free: 1.211 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.361, allocations: 5.312 kB / 0.5377 GB, free: 1.207 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.361, allocations: 6.031 kB / 0.5378 GB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.361, allocations: 0 / 0.5378 GB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.361, allocations: 5.375 kB / 0.5378 GB, free: 1.199 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003712/0.3614, allocations: 342.6 kB / 0.5381 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.001e-05/0.3614, allocations: 23.86 kB / 0.5381 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.85e-05/0.3615, allocations: 9.859 kB / 0.5381 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.671e-05/0.3615, allocations: 1.312 kB / 0.5381 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.174e-05/0.3616, allocations: 9.766 kB / 0.5381 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.3616, allocations: 8.156 kB / 0.5381 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001338/0.3617, allocations: 162.9 kB / 0.5383 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3617, allocations: 1.312 kB / 0.5383 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003157/0.362, allocations: 85.33 kB / 0.5384 GB, free: 0.8086 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 8.682e-05/0.3621, allocations: 106.3 kB / 0.5385 GB, free: 0.707 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002806/0.3624, allocations: 146.3 kB / 0.5386 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3624, allocations: 3.938 kB / 0.5386 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001028/0.3625, allocations: 70.62 kB / 0.5387 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003898/0.3629, allocations: 38.86 kB / 0.5387 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001012/0.3639, allocations: 0.6654 MB / 0.5394 GB, free: 192 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001942/0.3641, allocations: 211.5 kB / 0.5396 GB, free: 44 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.427e-05/0.3642, allocations: 19.58 kB / 0.5396 GB, free: 28 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.412e-05/0.3642, allocations: 17.22 kB / 0.5396 GB, free: 20 kB / 382.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3642, allocations: 0 / 0.5396 GB, free: 20 kB / 382.1 MB Notification: Performance of Templates: time 0.006023/0.3703, allocations: 1.838 MB / 0.5414 GB, free: 15.07 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 -s cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.933956044958904] Failed to read output from testmodel.py, exit status != 0: 0.37909393198788166 0.39368176699999996 0.037187295 Calling exit ...