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.001395/0.001395, allocations: 110.4 kB / 18.94 MB, free: 2.953 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.001503/0.001503, allocations: 215.8 kB / 22.25 MB, free: 5.133 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.418/1.418, allocations: 230.6 MB / 256 MB, free: 8.004 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.187/0.187, allocations: 29.23 MB / 341.7 MB, free: 5.898 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.002044/0.002044, allocations: 63.91 kB / 478.4 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2853, allocations: 60.8 MB / 0.5265 GB, free: 7.992 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.002758/0.288, allocations: 2.115 MB / 0.5286 GB, free: 6.496 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006811/0.2887, allocations: 329.6 kB / 0.5289 GB, free: 6.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000162/0.2889, allocations: 14.41 kB / 0.5289 GB, free: 6.242 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000179/0.2891, allocations: 66.36 kB / 0.529 GB, free: 6.195 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.651e-05/0.2891, allocations: 38.19 kB / 0.529 GB, free: 6.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002867/0.2894, allocations: 164.4 kB / 0.5292 GB, free: 6.066 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005929/0.29, allocations: 397.5 kB / 0.5295 GB, free: 5.875 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003283/0.2904, allocations: 257.7 kB / 0.5298 GB, free: 5.719 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001036/0.2905, allocations: 160.5 kB / 0.5299 GB, free: 5.625 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001354/0.2906, allocations: 180 kB / 0.5301 GB, free: 5.512 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.007e-05/0.2906, allocations: 46.31 kB / 0.5302 GB, free: 5.508 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.485e-05/0.2907, allocations: 41.03 kB / 0.5302 GB, free: 5.508 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.605e-05/0.2908, allocations: 98.16 kB / 0.5303 GB, free: 5.441 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001181/0.2909, allocations: 212.5 kB / 0.5305 GB, free: 5.285 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004822/0.2914, allocations: 431.2 kB / 0.5309 GB, free: 5.059 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2914, allocations: 0 / 0.5309 GB, free: 5.059 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.2914, allocations: 1.156 kB / 0.5309 GB, free: 5.059 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.2914, allocations: 0 / 0.5309 GB, free: 5.059 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.0007054/0.2921, allocations: 0.6615 MB / 0.5316 GB, free: 4.555 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.2921, allocations: 10.72 kB / 0.5316 GB, free: 4.555 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001031/0.2922, allocations: 99.55 kB / 0.5317 GB, free: 4.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.673e-05/0.2923, allocations: 62.28 kB / 0.5317 GB, free: 4.449 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004309/0.2927, allocations: 287.5 kB / 0.532 GB, free: 4.219 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.788e-05/0.2927, allocations: 40.22 kB / 0.532 GB, free: 4.199 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.419e-05/0.2928, allocations: 56.05 kB / 0.5321 GB, free: 4.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005915/0.2934, allocations: 0.4939 MB / 0.5326 GB, free: 3.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.2934, allocations: 7.875 kB / 0.5326 GB, free: 3.902 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.909e-05/0.2934, allocations: 21.88 kB / 0.5326 GB, free: 3.887 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.2934, allocations: 12.53 kB / 0.5326 GB, free: 3.887 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003808/0.2938, allocations: 264.3 kB / 0.5329 GB, free: 3.793 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001548/0.2954, allocations: 1.711 MB / 0.5345 GB, free: 2.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003779/0.2957, allocations: 189.9 kB / 0.5347 GB, free: 2.414 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.664e-05/0.2958, allocations: 68.97 kB / 0.5348 GB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.833e-05/0.2959, allocations: 2.5 kB / 0.5348 GB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.253e-05/0.2959, allocations: 40.55 kB / 0.5348 GB, free: 2.328 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.202e-06/0.2959, allocations: 0 / 0.5348 GB, free: 2.328 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.0004852/0.2964, allocations: 229.7 kB / 0.535 GB, free: 2.215 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.503e-05/0.2964, allocations: 54.12 kB / 0.5351 GB, free: 2.152 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002796/0.2967, allocations: 345.9 kB / 0.5354 GB, free: 1.969 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.212e-05/0.2967, allocations: 30.8 kB / 0.5355 GB, free: 1.934 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.2968, allocations: 280.1 kB / 0.5357 GB, free: 1.707 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.455e-05/0.2968, allocations: 65.97 kB / 0.5358 GB, free: 1.656 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.095e-05/0.2969, allocations: 55.39 kB / 0.5358 GB, free: 1.617 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.679e-05/0.2969, allocations: 345.3 kB / 0.5362 GB, free: 1.289 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.188e-05/0.297, allocations: 63.94 kB / 0.5362 GB, free: 1.262 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001122/0.2971, allocations: 128.2 kB / 0.5363 GB, free: 1.156 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001992/0.2973, allocations: 196.5 kB / 0.5365 GB, free: 1.016 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2973, allocations: 0 / 0.5365 GB, free: 1.016 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002863/0.2976, allocations: 255.1 kB / 0.5368 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/0.2976, allocations: 8.234 kB / 0.5368 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.2976, allocations: 5.703 kB / 0.5368 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.2977, allocations: 10.97 kB / 0.5368 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001668/0.2978, allocations: 44.56 kB / 0.5368 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.2978, allocations: 4.406 kB / 0.5368 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001983/0.298, allocations: 33.14 kB / 0.5369 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.407e-05/0.298, allocations: 7.75 kB / 0.5369 GB, free: 0.8477 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.000104/0.2981, allocations: 155.9 kB / 0.537 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.375e-05/0.2982, allocations: 33.86 kB / 0.5371 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.781e-05/0.2982, allocations: 37.27 kB / 0.5371 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.2983, allocations: 11.16 kB / 0.5371 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.2983, allocations: 0 / 0.5371 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.2983, allocations: 0.5156 kB / 0.5371 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003369/0.2986, allocations: 373.4 kB / 0.5375 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.2986, allocations: 0 / 0.5375 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001605/0.2988, allocations: 30.89 kB / 0.5375 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.2988, allocations: 1.797 kB / 0.5375 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.2988, allocations: 5.188 kB / 0.5375 GB, free: 412 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.2988, allocations: 5.781 kB / 0.5375 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.2988, allocations: 1.125 kB / 0.5375 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003861/0.2992, allocations: 354.1 kB / 0.5379 GB, free: 172 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.007e-05/0.2992, allocations: 34.81 kB / 0.5379 GB, free: 148 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.942e-05/0.2993, allocations: 6.156 kB / 0.5379 GB, free: 144 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.651e-05/0.2994, allocations: 9.031 kB / 0.5379 GB, free: 136 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.268e-05/0.2994, allocations: 9.266 kB / 0.5379 GB, free: 136 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.286e-06/0.2994, allocations: 9.094 kB / 0.5379 GB, free: 132 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002001/0.2996, allocations: 242.6 kB / 0.5381 GB, free: 15.99 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2996, allocations: 0 / 0.5381 GB, free: 15.99 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002963/0.2999, allocations: 82 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.0006831/0.3006, allocations: 0.8902 MB / 0.5391 GB, free: 15.2 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000371/0.301, allocations: 150.5 kB / 0.5392 GB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.301, allocations: 0.5 kB / 0.5392 GB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.214e-05/0.301, allocations: 71.8 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.0003717/0.3014, allocations: 56.19 kB / 0.5394 GB, free: 15.07 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003673/0.3051, allocations: 3.191 MB / 0.5425 GB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004085/0.3055, allocations: 0.8116 MB / 0.5433 GB, free: 12.04 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.504e-05/0.3056, allocations: 33.52 kB / 0.5433 GB, free: 12.01 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003017/0.3059, allocations: 142.3 kB / 0.5434 GB, free: 11.89 MB / 398.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3059, allocations: 3.938 kB / 0.5434 GB, free: 11.88 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0361/0.342, allocations: 5.925 MB / 0.5492 GB, free: 8.953 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.64, allocations: 8.5 kB / 0.5492 GB, free: 8.949 MB / 398.1 MB " [Timeout remaining time 648] (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: 14.251319092931226] Failed to read output from testmodel.py, exit status != 0: 11.748092415044084 11.764491475 11.469895258 Calling exit ...