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.00135/0.00135, allocations: 106.5 kB / 16.45 MB, free: 6.449 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.001446/0.001446, allocations: 212 kB / 19.43 MB, free: 3.637 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.511/1.511, allocations: 230.6 MB / 252.8 MB, free: 8.969 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1952/0.1952, allocations: 29.23 MB / 338.1 MB, free: 6.977 MB / 270.1 MB " [Timeout remaining time 180] Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-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.002091/0.002091, allocations: 59.91 kB / 473.2 MB, free: 3.016 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3409/0.343, allocations: 60.75 MB / 0.5214 GB, free: 7.887 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.003067/0.3461, allocations: 2.114 MB / 0.5235 GB, free: 6.379 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008182/0.3469, allocations: 333.4 kB / 0.5238 GB, free: 6.129 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002947/0.3472, allocations: 10.84 kB / 0.5238 GB, free: 6.125 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000245/0.3474, allocations: 65.58 kB / 0.5239 GB, free: 6.078 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001384/0.3476, allocations: 34.81 kB / 0.5239 GB, free: 6.047 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003897/0.348, allocations: 160.1 kB / 0.524 GB, free: 5.957 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005172/0.3485, allocations: 398.6 kB / 0.5244 GB, free: 5.766 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004129/0.3489, allocations: 252.6 kB / 0.5247 GB, free: 5.613 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001581/0.3491, allocations: 160.7 kB / 0.5248 GB, free: 5.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001849/0.3492, allocations: 176.3 kB / 0.525 GB, free: 5.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.395e-05/0.3493, allocations: 41.59 kB / 0.525 GB, free: 5.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.347e-05/0.3494, allocations: 42.47 kB / 0.5251 GB, free: 5.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.626e-05/0.3495, allocations: 109.4 kB / 0.5252 GB, free: 5.332 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001432/0.3496, allocations: 209 kB / 0.5254 GB, free: 5.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005364/0.3501, allocations: 434.7 kB / 0.5258 GB, free: 4.949 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.3501, allocations: 1.062 kB / 0.5258 GB, free: 4.949 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3501, allocations: 0 / 0.5258 GB, free: 4.949 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.3502, allocations: 4 kB / 0.5258 GB, free: 4.945 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.0009378/0.3511, allocations: 0.7254 MB / 0.5265 GB, free: 4.359 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.3511, allocations: 9.094 kB / 0.5265 GB, free: 4.359 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001538/0.3513, allocations: 109 kB / 0.5266 GB, free: 4.277 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001283/0.3514, allocations: 61.55 kB / 0.5267 GB, free: 4.246 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005801/0.352, allocations: 342.2 kB / 0.527 GB, free: 3.953 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.27e-05/0.3521, allocations: 39.84 kB / 0.527 GB, free: 3.934 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/0.3522, allocations: 56.72 kB / 0.5271 GB, free: 3.914 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008265/0.353, allocations: 0.4894 MB / 0.5276 GB, free: 3.648 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/0.353, allocations: 9.844 kB / 0.5276 GB, free: 3.641 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.524e-05/0.3531, allocations: 28.17 kB / 0.5276 GB, free: 3.617 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.553e-05/0.3531, allocations: 14.97 kB / 0.5276 GB, free: 3.617 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004383/0.3535, allocations: 262.7 kB / 0.5279 GB, free: 3.527 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001823/0.3553, allocations: 1.768 MB / 0.5296 GB, free: 2.211 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004576/0.3558, allocations: 197.3 kB / 0.5298 GB, free: 2.117 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.3559, allocations: 60.16 kB / 0.5298 GB, free: 2.086 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.397e-05/0.3559, allocations: 6.219 kB / 0.5298 GB, free: 2.082 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.929e-05/0.3559, allocations: 32.42 kB / 0.5299 GB, free: 2.043 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 2.335e-06/0.3559, allocations: 0 / 0.5299 GB, free: 2.043 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.0004719/0.3564, allocations: 233.8 kB / 0.5301 GB, free: 1.926 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.738e-05/0.3564, allocations: 56.72 kB / 0.5301 GB, free: 1.859 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003604/0.3568, allocations: 339.7 kB / 0.5305 GB, free: 1.684 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.656e-05/0.3568, allocations: 29.7 kB / 0.5305 GB, free: 1.648 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001525/0.357, allocations: 277 kB / 0.5308 GB, free: 1.426 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.669e-05/0.357, allocations: 73.88 kB / 0.5308 GB, free: 1.367 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.495e-05/0.3571, allocations: 48 kB / 0.5309 GB, free: 1.336 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.971e-05/0.3572, allocations: 344.6 kB / 0.5312 GB, free: 1.008 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001042/0.3573, allocations: 61.16 kB / 0.5313 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001396/0.3574, allocations: 131.9 kB / 0.5314 GB, free: 0.875 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002473/0.3577, allocations: 200.2 kB / 0.5316 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.3577, allocations: 3.938 kB / 0.5316 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003741/0.3581, allocations: 255.6 kB / 0.5318 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.3581, allocations: 6.484 kB / 0.5318 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.3581, allocations: 3.125 kB / 0.5318 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.169e-05/0.3581, allocations: 7.031 kB / 0.5318 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001936/0.3583, allocations: 44.73 kB / 0.5319 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.3583, allocations: 7.062 kB / 0.5319 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001163/0.3584, allocations: 36.73 kB / 0.5319 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.764e-05/0.3584, allocations: 12.44 kB / 0.5319 GB, free: 0.5547 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.0001449/0.3586, allocations: 155.9 kB / 0.5321 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.456e-05/0.3586, allocations: 35.5 kB / 0.5321 GB, free: 400 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.17e-05/0.3587, allocations: 40.09 kB / 0.5322 GB, free: 368 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.3587, allocations: 6.156 kB / 0.5322 GB, free: 364 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/0.3587, allocations: 1.125 kB / 0.5322 GB, free: 364 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.3587, allocations: 1.125 kB / 0.5322 GB, free: 364 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004417/0.3592, allocations: 400.4 kB / 0.5326 GB, free: 80 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.3592, allocations: 5.906 kB / 0.5326 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001844/0.3594, allocations: 30.09 kB / 0.5326 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.3594, allocations: 2.047 kB / 0.5326 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.294e-05/0.3594, allocations: 9.406 kB / 0.5326 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.3594, allocations: 5.375 kB / 0.5326 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.3594, allocations: 0.6562 kB / 0.5326 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000504/0.3599, allocations: 358.6 kB / 0.5329 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001065/0.36, allocations: 110.8 kB / 0.5331 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.2e-05/0.3601, allocations: 2.219 kB / 0.5331 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.3602, allocations: 9.344 kB / 0.5331 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.461e-05/0.3602, allocations: 7.906 kB / 0.5331 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.237e-05/0.3602, allocations: 12.16 kB / 0.5331 GB, free: 15.7 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002854/0.3605, allocations: 242.8 kB / 0.5333 GB, free: 15.57 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3605, allocations: 0 / 0.5333 GB, free: 15.57 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003759/0.3609, allocations: 78.31 kB / 0.5334 GB, free: 15.54 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.000855/0.3617, allocations: 0.8813 MB / 0.5343 GB, free: 14.78 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003567/0.3621, allocations: 156 kB / 0.5344 GB, free: 14.72 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3621, allocations: 0 / 0.5344 GB, free: 14.72 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001116/0.3622, allocations: 69.69 kB / 0.5345 GB, free: 14.7 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004613/0.3627, allocations: 56.45 kB / 0.5345 GB, free: 14.67 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004378/0.367, allocations: 3.194 MB / 0.5376 GB, free: 12.59 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005531/0.3676, allocations: 0.8182 MB / 0.5384 GB, free: 11.88 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001359/0.3677, allocations: 26.77 kB / 0.5385 GB, free: 11.88 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002098/0.3679, allocations: 146.7 kB / 0.5386 GB, free: 11.76 MB / 398.1 MB Notification: Performance of SimCode: time 1.523e-06/0.3679, allocations: 0 / 0.5386 GB, free: 11.76 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03415/0.4021, allocations: 5.685 MB / 0.5442 GB, free: 9.02 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.944/9.346, allocations: 1.062 kB / 0.5442 GB, free: 9.02 MB / 398.1 MB " [Timeout remaining time 651] (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: 12.277232144027948] Failed to read output from testmodel.py, exit status != 0: 9.416769483592361 9.433134993 9.079593014 Calling exit ...