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.001534/0.001534, 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.001865/0.001865, allocations: 215.5 kB / 22.25 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.371/1.371, allocations: 230.6 MB / 256 MB, free: 7.793 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.188/0.188, allocations: 29.23 MB / 341.7 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: "" <> 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.002262/0.002262, allocations: 67.91 kB / 478.3 MB, free: 456 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3206/0.3229, allocations: 60.8 MB / 0.5264 GB, free: 7.824 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.003055/0.3259, allocations: 1.838 MB / 0.5282 GB, free: 6.621 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006489/0.3266, allocations: 331.6 kB / 0.5286 GB, free: 6.375 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001696/0.3268, allocations: 10.44 kB / 0.5286 GB, free: 6.371 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001988/0.327, allocations: 70.45 kB / 0.5286 GB, free: 6.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001048/0.3271, allocations: 34.09 kB / 0.5287 GB, free: 6.289 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000309/0.3274, allocations: 164.3 kB / 0.5288 GB, free: 6.195 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004745/0.3279, allocations: 396.6 kB / 0.5292 GB, free: 6.004 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003592/0.3282, allocations: 241.9 kB / 0.5294 GB, free: 5.863 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001227/0.3283, allocations: 152.9 kB / 0.5296 GB, free: 5.777 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001606/0.3285, allocations: 156 kB / 0.5297 GB, free: 5.688 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.361e-05/0.3286, allocations: 46.16 kB / 0.5298 GB, free: 5.684 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.465e-05/0.3286, allocations: 40.91 kB / 0.5298 GB, free: 5.684 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.47e-05/0.3287, allocations: 98.84 kB / 0.5299 GB, free: 5.617 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00012/0.3288, allocations: 165.2 kB / 0.5301 GB, free: 5.508 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004597/0.3293, allocations: 444.3 kB / 0.5305 GB, free: 5.273 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3293, allocations: 4 kB / 0.5305 GB, free: 5.27 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3293, allocations: 0 / 0.5305 GB, free: 5.27 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.258e-06/0.3293, allocations: 1.312 kB / 0.5305 GB, free: 5.27 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.0008208/0.3301, allocations: 0.6456 MB / 0.5311 GB, free: 4.781 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.3302, allocations: 10.66 kB / 0.5311 GB, free: 4.781 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001333/0.3303, allocations: 108.5 kB / 0.5312 GB, free: 4.699 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.018e-05/0.3304, allocations: 64.62 kB / 0.5313 GB, free: 4.664 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004309/0.3308, allocations: 284.1 kB / 0.5316 GB, free: 4.438 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.62e-05/0.3308, allocations: 43.47 kB / 0.5316 GB, free: 4.414 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.57e-05/0.3309, allocations: 56.98 kB / 0.5317 GB, free: 4.395 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006528/0.3316, allocations: 499.8 kB / 0.5321 GB, free: 4.133 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.78e-05/0.3316, allocations: 4.453 kB / 0.5321 GB, free: 4.129 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.081e-05/0.3316, allocations: 25.81 kB / 0.5322 GB, free: 4.109 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.424e-05/0.3316, allocations: 17.25 kB / 0.5322 GB, free: 4.105 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004087/0.332, allocations: 267.9 kB / 0.5324 GB, free: 4.008 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001536/0.3336, allocations: 1.62 MB / 0.534 GB, free: 2.742 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004033/0.334, allocations: 200.5 kB / 0.5342 GB, free: 2.645 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.976e-05/0.3341, allocations: 64.19 kB / 0.5343 GB, free: 2.609 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.479e-05/0.3341, allocations: 3.188 kB / 0.5343 GB, free: 2.609 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.486e-05/0.3341, allocations: 36.72 kB / 0.5343 GB, free: 2.566 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.152e-06/0.3341, allocations: 0 / 0.5343 GB, free: 2.566 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.0003741/0.3345, allocations: 238 kB / 0.5345 GB, free: 2.445 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.227e-05/0.3345, allocations: 54.19 kB / 0.5346 GB, free: 2.383 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003136/0.3348, allocations: 342.9 kB / 0.5349 GB, free: 2.199 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.503e-05/0.3348, allocations: 35.42 kB / 0.535 GB, free: 2.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001348/0.335, allocations: 272.9 kB / 0.5352 GB, free: 1.941 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.223e-05/0.335, allocations: 68.95 kB / 0.5353 GB, free: 1.887 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.396e-05/0.3351, allocations: 52.09 kB / 0.5353 GB, free: 1.852 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.115e-05/0.3351, allocations: 342.3 kB / 0.5357 GB, free: 1.527 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.873e-05/0.3352, allocations: 59.86 kB / 0.5357 GB, free: 1.504 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001211/0.3354, allocations: 122.9 kB / 0.5358 GB, free: 1.406 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002101/0.3356, allocations: 195.2 kB / 0.536 GB, free: 1.266 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.3356, allocations: 1.188 kB / 0.536 GB, free: 1.266 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003079/0.3359, allocations: 251.8 kB / 0.5363 GB, free: 1.141 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.3359, allocations: 9.688 kB / 0.5363 GB, free: 1.137 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.3359, allocations: 11.34 kB / 0.5363 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.3359, allocations: 6.688 kB / 0.5363 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001687/0.3361, allocations: 48.06 kB / 0.5363 GB, free: 1.117 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.3361, allocations: 4.969 kB / 0.5363 GB, free: 1.117 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.688e-05/0.3362, allocations: 36.45 kB / 0.5364 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.566e-05/0.3362, allocations: 8.531 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.0001176/0.3363, allocations: 152.3 kB / 0.5365 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.886e-05/0.3364, allocations: 35.14 kB / 0.5366 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.371e-05/0.3364, allocations: 36.27 kB / 0.5366 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.3364, allocations: 5.781 kB / 0.5366 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.3364, allocations: 4 kB / 0.5366 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.3365, allocations: 2.281 kB / 0.5366 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003815/0.3368, allocations: 346.7 kB / 0.5369 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.3368, allocations: 0.6094 kB / 0.5369 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001648/0.337, allocations: 31.19 kB / 0.537 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.337, allocations: 5.844 kB / 0.537 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.465e-05/0.337, allocations: 6.188 kB / 0.537 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.105e-06/0.337, allocations: 8.453 kB / 0.537 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.337, allocations: 1.094 kB / 0.537 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003722/0.3374, allocations: 360.1 kB / 0.5373 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.108e-05/0.3374, allocations: 34.14 kB / 0.5374 GB, free: 392 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.11e-05/0.3375, allocations: 6.406 kB / 0.5374 GB, free: 388 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.455e-05/0.3376, allocations: 8.688 kB / 0.5374 GB, free: 380 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.191e-05/0.3376, allocations: 9.906 kB / 0.5374 GB, free: 380 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.006e-06/0.3376, allocations: 4.859 kB / 0.5374 GB, free: 380 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002008/0.3378, allocations: 237.4 kB / 0.5376 GB, free: 252 kB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3378, allocations: 1.406 kB / 0.5376 GB, free: 252 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002921/0.3381, allocations: 78.05 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.0007013/0.3388, allocations: 0.8873 MB / 0.5386 GB, free: 15.45 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002782/0.3391, allocations: 152.5 kB / 0.5387 GB, free: 15.4 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3391, allocations: 1.375 kB / 0.5387 GB, free: 15.4 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.3392, allocations: 75.67 kB / 0.5388 GB, free: 15.37 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003935/0.3396, allocations: 51.53 kB / 0.5388 GB, free: 15.35 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003714/0.3433, allocations: 3.187 MB / 0.5419 GB, free: 13.11 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000218/0.3435, allocations: 213.1 kB / 0.5421 GB, free: 12.97 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000114/0.3436, allocations: 30.86 kB / 0.5422 GB, free: 12.95 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001894/0.3438, allocations: 140.9 kB / 0.5423 GB, free: 12.82 MB / 398.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3438, allocations: 1.094 kB / 0.5423 GB, free: 12.82 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03405/0.3779, allocations: 6.251 MB / 0.5484 GB, free: 9.496 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.15, allocations: 1.406 kB / 0.5484 GB, free: 9.496 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_IntroductoryExamples_Sugar_Cane_fmu --startTime=0 --stopTime=20 --stepSize=0.008 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_IntroductoryExamples_Sugar_Cane.fmu > SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.792779104784131] Failed to read output from testmodel.py, exit status != 0: 11.252296932041645 11.268125229 10.935785693 Calling exit ...