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.001281/0.001281, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001466/0.001466, allocations: 212.1 kB / 22.24 MB, free: 5.262 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.345/1.345, allocations: 230.6 MB / 256 MB, free: 7.781 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.1814/0.1814, allocations: 29.23 MB / 341.7 MB, free: 5.645 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: "" <> 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"}) [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.001955/0.001955, allocations: 67.91 kB / 478.3 MB, free: 408 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3213/0.3233, allocations: 60.79 MB / 0.5264 GB, free: 7.828 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.002722/0.326, allocations: 1.841 MB / 0.5282 GB, free: 6.621 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005789/0.3266, allocations: 327.8 kB / 0.5286 GB, free: 6.379 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001697/0.3268, allocations: 14.34 kB / 0.5286 GB, free: 6.371 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001892/0.3269, allocations: 71.34 kB / 0.5286 GB, free: 6.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001071/0.3271, allocations: 33.5 kB / 0.5287 GB, free: 6.289 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002941/0.3273, allocations: 160.8 kB / 0.5288 GB, free: 6.199 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004182/0.3278, allocations: 405.2 kB / 0.5292 GB, free: 6 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003448/0.3281, allocations: 240.5 kB / 0.5294 GB, free: 5.859 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001193/0.3282, allocations: 153.4 kB / 0.5296 GB, free: 5.773 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000144/0.3284, allocations: 152.4 kB / 0.5297 GB, free: 5.688 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.682e-05/0.3284, allocations: 41.09 kB / 0.5298 GB, free: 5.688 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.765e-05/0.3285, allocations: 42.06 kB / 0.5298 GB, free: 5.688 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.618e-05/0.3285, allocations: 102.2 kB / 0.5299 GB, free: 5.617 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.3286, allocations: 164.8 kB / 0.5301 GB, free: 5.508 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003904/0.329, allocations: 439.9 kB / 0.5305 GB, free: 5.277 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.329, allocations: 0.5625 kB / 0.5305 GB, free: 5.277 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.329, allocations: 1.656 kB / 0.5305 GB, free: 5.277 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.365e-06/0.3291, allocations: 4 kB / 0.5305 GB, free: 5.273 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.0007534/0.3298, allocations: 0.6539 MB / 0.5311 GB, free: 4.777 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.3298, allocations: 13.81 kB / 0.5311 GB, free: 4.773 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001214/0.33, allocations: 100.9 kB / 0.5312 GB, free: 4.699 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.616e-05/0.33, allocations: 60.03 kB / 0.5313 GB, free: 4.668 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003772/0.3304, allocations: 291.8 kB / 0.5316 GB, free: 4.434 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.707e-05/0.3305, allocations: 40.06 kB / 0.5316 GB, free: 4.414 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.395e-05/0.3305, allocations: 56.77 kB / 0.5317 GB, free: 4.395 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006545/0.3312, allocations: 0.4885 MB / 0.5321 GB, free: 4.133 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.3312, allocations: 4.969 kB / 0.5322 GB, free: 4.129 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.194e-05/0.3312, allocations: 21.47 kB / 0.5322 GB, free: 4.113 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.935e-05/0.3312, allocations: 13.47 kB / 0.5322 GB, free: 4.113 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004221/0.3317, allocations: 267 kB / 0.5324 GB, free: 4.016 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001566/0.3332, allocations: 1.624 MB / 0.534 GB, free: 2.746 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000379/0.3336, allocations: 197.7 kB / 0.5342 GB, free: 2.652 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.158e-05/0.3337, allocations: 64.17 kB / 0.5343 GB, free: 2.617 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.909e-05/0.3337, allocations: 2.469 kB / 0.5343 GB, free: 2.617 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.016e-05/0.3337, allocations: 36.47 kB / 0.5343 GB, free: 2.574 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.613e-06/0.3337, allocations: 0 / 0.5343 GB, free: 2.574 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.0003996/0.3341, allocations: 235.2 kB / 0.5345 GB, free: 2.457 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.839e-05/0.3342, allocations: 57.62 kB / 0.5346 GB, free: 2.391 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003169/0.3345, allocations: 348 kB / 0.5349 GB, free: 2.203 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.382e-05/0.3345, allocations: 29.7 kB / 0.535 GB, free: 2.168 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001374/0.3346, allocations: 272.9 kB / 0.5352 GB, free: 1.949 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.653e-05/0.3347, allocations: 77.03 kB / 0.5353 GB, free: 1.887 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.907e-05/0.3348, allocations: 49.47 kB / 0.5353 GB, free: 1.855 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.949e-05/0.3348, allocations: 346.3 kB / 0.5357 GB, free: 1.527 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.367e-05/0.3349, allocations: 54.36 kB / 0.5357 GB, free: 1.508 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001216/0.335, allocations: 125.4 kB / 0.5358 GB, free: 1.406 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002233/0.3353, allocations: 201 kB / 0.536 GB, free: 1.262 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3353, allocations: 1.25 kB / 0.536 GB, free: 1.262 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000324/0.3356, allocations: 252.7 kB / 0.5363 GB, free: 1.137 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.3356, allocations: 5.281 kB / 0.5363 GB, free: 1.137 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.3356, allocations: 3.375 kB / 0.5363 GB, free: 1.137 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.3356, allocations: 10.88 kB / 0.5363 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001723/0.3358, allocations: 44.86 kB / 0.5363 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.769e-06/0.3358, allocations: 4.688 kB / 0.5363 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.501e-05/0.3359, allocations: 39.45 kB / 0.5364 GB, free: 1.094 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.385e-05/0.3359, allocations: 11.56 kB / 0.5364 GB, free: 1.09 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.0001137/0.336, allocations: 149.2 kB / 0.5365 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.347e-05/0.3361, allocations: 34.42 kB / 0.5366 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.101e-05/0.3361, allocations: 41.14 kB / 0.5366 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.3361, allocations: 6.469 kB / 0.5366 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.3361, allocations: 0 / 0.5366 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.3361, allocations: 9.109 kB / 0.5366 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003518/0.3365, allocations: 343.1 kB / 0.5369 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.3365, allocations: 1.469 kB / 0.5369 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000158/0.3367, allocations: 30.2 kB / 0.537 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.3367, allocations: 1.984 kB / 0.537 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.3367, allocations: 5.375 kB / 0.537 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.3367, allocations: 6.016 kB / 0.537 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3367, allocations: 0 / 0.537 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003591/0.337, allocations: 352.1 kB / 0.5373 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.126e-05/0.3371, allocations: 34.55 kB / 0.5374 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.995e-05/0.3371, allocations: 6.078 kB / 0.5374 GB, free: 404 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.532e-05/0.3372, allocations: 13.25 kB / 0.5374 GB, free: 392 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.858e-05/0.3372, allocations: 9.797 kB / 0.5374 GB, free: 392 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.048e-05/0.3372, allocations: 12.83 kB / 0.5374 GB, free: 384 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002024/0.3374, allocations: 238.9 kB / 0.5376 GB, free: 256 kB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3374, allocations: 0 / 0.5376 GB, free: 256 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.000287/0.3377, allocations: 82.36 kB / 0.5377 GB, free: 220 kB / 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.0006994/0.3384, allocations: 0.8871 MB / 0.5386 GB, free: 15.45 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002875/0.3387, allocations: 153 kB / 0.5387 GB, free: 15.4 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.3387, allocations: 0 / 0.5387 GB, free: 15.4 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000108/0.3388, allocations: 73.14 kB / 0.5388 GB, free: 15.38 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003995/0.3392, allocations: 51.88 kB / 0.5388 GB, free: 15.36 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003597/0.3428, allocations: 3.186 MB / 0.5419 GB, free: 13.11 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002064/0.343, allocations: 213 kB / 0.5421 GB, free: 12.96 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001015/0.3431, allocations: 30.45 kB / 0.5422 GB, free: 12.94 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001818/0.3433, allocations: 141.8 kB / 0.5423 GB, free: 12.82 MB / 398.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3433, allocations: 0 / 0.5423 GB, free: 12.82 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03578/0.3791, allocations: 6.239 MB / 0.5484 GB, free: 9.496 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/11.05, allocations: 15.97 kB / 0.5484 GB, free: 9.484 MB / 398.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.008 SystemDynamics_SystemDynamics_IntroductoryExamples_Sugar_Cane.fmu > SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.76893947320059] Failed to read output from testmodel.py, exit status != 0: 11.160600075032562 11.18643486 10.852987046 Calling exit ...