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.00168/0.00168, allocations: 113 kB / 18.94 MB, free: 2.934 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.002105/0.002105, allocations: 209.6 kB / 22.25 MB, free: 5.082 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.526/1.526, allocations: 230.6 MB / 256 MB, free: 8.012 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.2077/0.2077, allocations: 29.23 MB / 341.7 MB, free: 5.805 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.002798/0.002798, allocations: 63.89 kB / 478.4 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5094/0.5122, allocations: 60.79 MB / 0.5265 GB, free: 7.996 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.004548/0.5167, allocations: 2.121 MB / 0.5286 GB, free: 6.492 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001601/0.5183, allocations: 334.8 kB / 0.5289 GB, free: 6.242 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006381/0.519, allocations: 10.59 kB / 0.5289 GB, free: 6.238 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004133/0.5194, allocations: 70.58 kB / 0.529 GB, free: 6.188 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002344/0.5196, allocations: 29.66 kB / 0.529 GB, free: 6.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005868/0.5202, allocations: 168.6 kB / 0.5292 GB, free: 6.062 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001022/0.5212, allocations: 396.7 kB / 0.5296 GB, free: 5.871 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005594/0.5218, allocations: 258 kB / 0.5298 GB, free: 5.715 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002325/0.522, allocations: 160.3 kB / 0.53 GB, free: 5.621 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002283/0.5223, allocations: 177 kB / 0.5301 GB, free: 5.512 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.57e-05/0.5223, allocations: 45.5 kB / 0.5302 GB, free: 5.508 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.146e-05/0.5224, allocations: 41.12 kB / 0.5302 GB, free: 5.508 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001195/0.5225, allocations: 106 kB / 0.5303 GB, free: 5.434 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001867/0.5227, allocations: 205.2 kB / 0.5305 GB, free: 5.285 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008816/0.5236, allocations: 438.5 kB / 0.5309 GB, free: 5.051 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.5236, allocations: 1.5 kB / 0.5309 GB, free: 5.051 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.5236, allocations: 0 / 0.5309 GB, free: 5.051 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.062e-05/0.5236, allocations: 0 / 0.5309 GB, free: 5.051 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.001416/0.5251, allocations: 0.6543 MB / 0.5316 GB, free: 4.555 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.116e-05/0.5251, allocations: 10.23 kB / 0.5316 GB, free: 4.555 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001611/0.5253, allocations: 103.6 kB / 0.5317 GB, free: 4.477 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001115/0.5254, allocations: 62.3 kB / 0.5317 GB, free: 4.445 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005834/0.526, allocations: 282.7 kB / 0.532 GB, free: 4.219 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.48e-05/0.526, allocations: 39.91 kB / 0.532 GB, free: 4.199 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001114/0.5261, allocations: 56.78 kB / 0.5321 GB, free: 4.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009231/0.5271, allocations: 0.4936 MB / 0.5326 GB, free: 3.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.545e-05/0.5271, allocations: 3.938 kB / 0.5326 GB, free: 3.906 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.876e-05/0.5271, allocations: 22.62 kB / 0.5326 GB, free: 3.891 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.427e-05/0.5272, allocations: 13.78 kB / 0.5326 GB, free: 3.891 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006619/0.5278, allocations: 267.2 kB / 0.5329 GB, free: 3.793 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003324/0.5311, allocations: 1.708 MB / 0.5345 GB, free: 2.504 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006742/0.5318, allocations: 208.4 kB / 0.5347 GB, free: 2.398 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001627/0.532, allocations: 64.5 kB / 0.5348 GB, free: 2.363 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.578e-05/0.532, allocations: 3.406 kB / 0.5348 GB, free: 2.363 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.412e-05/0.532, allocations: 33.22 kB / 0.5348 GB, free: 2.324 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 4.719e-06/0.532, allocations: 0 / 0.5348 GB, free: 2.324 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.000661/0.5327, allocations: 228.2 kB / 0.535 GB, free: 2.211 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.426e-05/0.5328, allocations: 53.84 kB / 0.5351 GB, free: 2.148 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006358/0.5334, allocations: 354.5 kB / 0.5354 GB, free: 1.957 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.325e-05/0.5334, allocations: 30.92 kB / 0.5355 GB, free: 1.922 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002989/0.5337, allocations: 272 kB / 0.5357 GB, free: 1.703 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.956e-05/0.5338, allocations: 69.83 kB / 0.5358 GB, free: 1.648 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001159/0.5339, allocations: 52.88 kB / 0.5358 GB, free: 1.613 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.5341, allocations: 344.3 kB / 0.5362 GB, free: 1.285 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001237/0.5342, allocations: 56.3 kB / 0.5362 GB, free: 1.266 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001585/0.5343, allocations: 128.9 kB / 0.5363 GB, free: 1.16 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002951/0.5346, allocations: 200.3 kB / 0.5365 GB, free: 1.016 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.5346, allocations: 0 / 0.5365 GB, free: 1.016 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.00044/0.5351, allocations: 250.9 kB / 0.5368 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/0.5351, allocations: 9.922 kB / 0.5368 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.5351, allocations: 2.719 kB / 0.5368 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.696e-05/0.5352, allocations: 7.984 kB / 0.5368 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002114/0.5354, allocations: 44.02 kB / 0.5368 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.374e-05/0.5354, allocations: 4.094 kB / 0.5368 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000132/0.5355, allocations: 33.11 kB / 0.5369 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.207e-05/0.5355, allocations: 12.19 kB / 0.5369 GB, free: 0.8516 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.0002026/0.5357, allocations: 156.1 kB / 0.537 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.386e-05/0.5358, allocations: 33.7 kB / 0.5371 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.126e-05/0.5359, allocations: 44.67 kB / 0.5371 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-06/0.5359, allocations: 6.547 kB / 0.5371 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/0.5359, allocations: 1.25 kB / 0.5371 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.333e-06/0.5359, allocations: 5.062 kB / 0.5371 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005261/0.5364, allocations: 367.3 kB / 0.5375 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.5364, allocations: 0.8438 kB / 0.5375 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001846/0.5366, allocations: 27.77 kB / 0.5375 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.5366, allocations: 1.312 kB / 0.5375 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.818e-05/0.5367, allocations: 6.266 kB / 0.5375 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.628e-06/0.5367, allocations: 5.156 kB / 0.5375 GB, free: 412 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.5367, allocations: 4 kB / 0.5375 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005249/0.5372, allocations: 354.7 kB / 0.5379 GB, free: 172 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.242e-05/0.5372, allocations: 34.67 kB / 0.5379 GB, free: 148 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.394e-05/0.5373, allocations: 6.078 kB / 0.5379 GB, free: 144 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001316/0.5374, allocations: 5.312 kB / 0.5379 GB, free: 140 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.194e-05/0.5374, allocations: 10.12 kB / 0.5379 GB, free: 140 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.133e-05/0.5375, allocations: 8.125 kB / 0.5379 GB, free: 136 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002763/0.5377, allocations: 241.7 kB / 0.5381 GB, free: 0 / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5377, allocations: 5.516 kB / 0.5382 GB, free: 15.99 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004892/0.5382, allocations: 81 kB / 0.5382 GB, free: 15.96 MB / 398.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.0009968/0.5392, allocations: 0.887 MB / 0.5391 GB, free: 15.2 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004784/0.5397, allocations: 150.4 kB / 0.5392 GB, free: 15.15 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.5397, allocations: 4 kB / 0.5392 GB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001104/0.5398, allocations: 70.41 kB / 0.5393 GB, free: 15.11 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005008/0.5403, allocations: 52.44 kB / 0.5394 GB, free: 15.09 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006145/0.5465, allocations: 3.201 MB / 0.5425 GB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007324/0.5472, allocations: 0.8195 MB / 0.5433 GB, free: 12.04 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000187/0.5474, allocations: 29.72 kB / 0.5433 GB, free: 12.02 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002213/0.5476, allocations: 141.9 kB / 0.5434 GB, free: 11.89 MB / 398.1 MB Notification: Performance of SimCode: time 1.493e-06/0.5476, allocations: 0 / 0.5434 GB, free: 11.89 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05093/0.5985, allocations: 5.93 MB / 0.5492 GB, free: 8.953 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.7/14.3, allocations: 3.781 kB / 0.5492 GB, free: 8.953 MB / 398.1 MB " [Timeout remaining time 646] (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: 17.39252699500139] Failed to read output from testmodel.py, exit status != 0: 14.415520307997213 14.431303595 13.903902121 Calling exit ...