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.001726/0.001726, allocations: 79.34 kB / 19.76 MB, free: 2.031 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.002285/0.002285, allocations: 164.8 kB / 23.02 MB, free: 4.941 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.53/1.53, allocations: 177.2 MB / 203.4 MB, free: 9.254 MB / 190.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.204/0.204, allocations: 21.8 MB / 281.6 MB, free: 10.94 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.00209/0.00209, allocations: 63.91 kB / 418.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3105/0.3126, allocations: 60.77 MB / 479.4 MB, free: 13.02 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.003837/0.3165, allocations: 1.846 MB / 481.3 MB, free: 11.64 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007041/0.3172, allocations: 333.6 kB / 481.6 MB, free: 11.36 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001834/0.3174, allocations: 13.75 kB / 481.6 MB, free: 11.35 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002264/0.3176, allocations: 68.59 kB / 481.7 MB, free: 11.29 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000133/0.3177, allocations: 35.09 kB / 481.7 MB, free: 11.25 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000334/0.3181, allocations: 160.4 kB / 481.9 MB, free: 11.12 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004673/0.3185, allocations: 399.2 kB / 482.3 MB, free: 10.87 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004271/0.3189, allocations: 238.6 kB / 482.5 MB, free: 10.7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003009/0.3193, allocations: 248.6 kB / 482.8 MB, free: 10.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001832/0.3194, allocations: 157.5 kB / 482.9 MB, free: 10.39 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.579e-05/0.3195, allocations: 41.44 kB / 483 MB, free: 10.39 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.03e-05/0.3196, allocations: 45.44 kB / 483 MB, free: 10.39 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001139/0.3197, allocations: 102.5 kB / 483.1 MB, free: 10.3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001522/0.3198, allocations: 157.2 kB / 483.3 MB, free: 10.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005281/0.3204, allocations: 446.6 kB / 483.7 MB, free: 9.836 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3204, allocations: 1.031 kB / 483.7 MB, free: 9.836 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3204, allocations: 0 / 483.7 MB, free: 9.836 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.3204, allocations: 0 / 483.7 MB, free: 9.836 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.001011/0.3214, allocations: 0.6475 MB / 484.3 MB, free: 9.293 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.3214, allocations: 8.719 kB / 484.3 MB, free: 9.293 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.623e-05/0.3215, allocations: 59.62 kB / 484.4 MB, free: 9.262 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005111/0.322, allocations: 284 kB / 484.7 MB, free: 9.004 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.047e-05/0.3221, allocations: 47.5 kB / 484.7 MB, free: 8.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.688e-05/0.3221, allocations: 50.56 kB / 484.8 MB, free: 8.965 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007567/0.3229, allocations: 485.4 kB / 485.2 MB, free: 8.637 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.3229, allocations: 1.562 kB / 485.3 MB, free: 8.637 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.319e-05/0.323, allocations: 24.34 kB / 485.3 MB, free: 8.617 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.554e-05/0.323, allocations: 13.06 kB / 485.3 MB, free: 8.617 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000473/0.3234, allocations: 256.8 kB / 485.5 MB, free: 8.496 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001888/0.3253, allocations: 1.496 MB / 487 MB, free: 7.059 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004827/0.3258, allocations: 210.6 kB / 487.2 MB, free: 6.848 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000112/0.3259, allocations: 64.8 kB / 487.3 MB, free: 6.781 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.267e-05/0.3259, allocations: 0 / 487.3 MB, free: 6.781 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.155e-05/0.326, allocations: 42.55 kB / 487.3 MB, free: 6.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.152e-06/0.326, allocations: 0 / 487.3 MB, free: 6.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.0004589/0.3264, allocations: 216.7 kB / 487.6 MB, free: 6.516 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.252e-05/0.3265, allocations: 55.41 kB / 487.6 MB, free: 6.449 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002672/0.3267, allocations: 237.8 kB / 487.8 MB, free: 6.207 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.44e-05/0.3268, allocations: 29.7 kB / 487.9 MB, free: 6.172 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002201/0.327, allocations: 272.1 kB / 488.1 MB, free: 5.898 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.999e-05/0.3271, allocations: 75.31 kB / 488.2 MB, free: 5.824 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.677e-05/0.3272, allocations: 53.7 kB / 488.3 MB, free: 5.766 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001767/0.3273, allocations: 334.8 kB / 488.6 MB, free: 5.43 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001138/0.3274, allocations: 63.98 kB / 488.7 MB, free: 5.367 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001755/0.3276, allocations: 123.7 kB / 488.8 MB, free: 5.219 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002938/0.3279, allocations: 186.7 kB / 489 MB, free: 5.012 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.3279, allocations: 4 kB / 489 MB, free: 5.008 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003933/0.3283, allocations: 250.5 kB / 489.2 MB, free: 4.758 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.3283, allocations: 8 kB / 489.2 MB, free: 4.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.3283, allocations: 3.984 kB / 489.2 MB, free: 4.746 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.3284, allocations: 4 kB / 489.2 MB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000194/0.3285, allocations: 47.92 kB / 489.3 MB, free: 4.695 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.866e-06/0.3286, allocations: 4 kB / 489.3 MB, free: 4.691 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.638e-05/0.3287, allocations: 23.84 kB / 489.3 MB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.941e-05/0.3287, allocations: 12.25 kB / 489.3 MB, free: 4.656 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.0001782/0.3289, allocations: 161.7 kB / 489.5 MB, free: 4.488 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.815e-05/0.3289, allocations: 19.86 kB / 489.5 MB, free: 4.469 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.796e-05/0.329, allocations: 34.11 kB / 489.5 MB, free: 4.441 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.329, allocations: 0 / 489.5 MB, free: 4.441 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.329, allocations: 0 / 489.5 MB, free: 4.441 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.88e-06/0.329, allocations: 0 / 489.5 MB, free: 4.441 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003853/0.3294, allocations: 281 kB / 489.8 MB, free: 4.137 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3294, allocations: 0 / 489.8 MB, free: 4.137 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001866/0.3296, allocations: 35.92 kB / 489.8 MB, free: 4.102 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.3296, allocations: 0 / 489.8 MB, free: 4.102 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.342e-05/0.3296, allocations: 19.88 kB / 489.8 MB, free: 4.082 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.3296, allocations: 0 / 489.8 MB, free: 4.082 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3296, allocations: 0 / 489.8 MB, free: 4.082 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004698/0.3301, allocations: 347.2 kB / 490.2 MB, free: 3.727 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.661e-05/0.3301, allocations: 23.8 kB / 490.2 MB, free: 3.703 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.482e-05/0.3301, allocations: 0 / 490.2 MB, free: 3.703 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001047/0.3302, allocations: 12.03 kB / 490.2 MB, free: 3.691 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.375e-05/0.3303, allocations: 7.984 kB / 490.2 MB, free: 3.684 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.294e-05/0.3303, allocations: 8 kB / 490.2 MB, free: 3.676 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001587/0.3304, allocations: 161.2 kB / 490.4 MB, free: 3.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3304, allocations: 0 / 490.4 MB, free: 3.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003424/0.3308, allocations: 91.52 kB / 490.5 MB, free: 3.43 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 0.0001117/0.3309, allocations: 95.25 kB / 490.6 MB, free: 3.324 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003036/0.3312, allocations: 143.8 kB / 490.7 MB, free: 3.184 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3312, allocations: 4 kB / 490.7 MB, free: 3.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001109/0.3313, allocations: 67.02 kB / 490.8 MB, free: 3.117 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003927/0.3317, allocations: 42.28 kB / 490.8 MB, free: 3.078 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00104/0.3327, allocations: 0.665 MB / 491.5 MB, free: 2.387 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002192/0.3329, allocations: 214.7 kB / 491.7 MB, free: 2.152 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.882e-05/0.333, allocations: 22.03 kB / 491.7 MB, free: 2.125 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.71e-05/0.3331, allocations: 20.5 kB / 491.7 MB, free: 2.102 MB / 382.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3331, allocations: 0 / 491.7 MB, free: 2.102 MB / 382.1 MB Notification: Performance of Templates: time 0.00558/0.3387, allocations: 1.438 MB / 493.2 MB, free: 0.6836 MB / 382.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 gbode -gbnls=internal -gberr=embedded -gbm=radauIIA3 -lv LOG_STATS > SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.920182041125372] Failed to read output from testmodel.py, exit status != 0: 0.3481670960318297 0.364302344 0.040832681 Calling exit ...