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.001206/0.001206, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.001317/0.001317, allocations: 219.8 kB / 23.03 MB, free: 4.945 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.32/1.32, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 179] 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.1824/0.1824, allocations: 29.22 MB / 342.4 MB, free: 5.59 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.IntroductoryExamples.Sugar_Cane,fileNamePrefix="SystemDynamics_SystemDynamics_IntroductoryExamples_Sugar_Cane",fmuType="cs",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.002173/0.002173, allocations: 67.89 kB / 479.1 MB, free: 440 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3085/0.3107, allocations: 60.79 MB / 0.5272 GB, free: 7.828 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.00276/0.3134, allocations: 1.84 MB / 0.529 GB, free: 6.621 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005704/0.314, allocations: 323.2 kB / 0.5293 GB, free: 6.383 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001664/0.3142, allocations: 10.69 kB / 0.5293 GB, free: 6.379 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000185/0.3144, allocations: 73.64 kB / 0.5294 GB, free: 6.324 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001106/0.3145, allocations: 38.89 kB / 0.5294 GB, free: 6.289 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002866/0.3148, allocations: 163.4 kB / 0.5296 GB, free: 6.195 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004694/0.3152, allocations: 401.9 kB / 0.53 GB, free: 6 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003518/0.3156, allocations: 257.3 kB / 0.5302 GB, free: 5.844 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001148/0.3157, allocations: 153 kB / 0.5304 GB, free: 5.758 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001637/0.3159, allocations: 176.7 kB / 0.5305 GB, free: 5.648 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.596e-05/0.3159, allocations: 45.16 kB / 0.5306 GB, free: 5.645 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.892e-05/0.316, allocations: 41.84 kB / 0.5306 GB, free: 5.645 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.321e-05/0.3161, allocations: 101.4 kB / 0.5307 GB, free: 5.574 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001086/0.3162, allocations: 165.3 kB / 0.5309 GB, free: 5.465 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004122/0.3166, allocations: 439.8 kB / 0.5313 GB, free: 5.234 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.3166, allocations: 1.531 kB / 0.5313 GB, free: 5.234 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3166, allocations: 0 / 0.5313 GB, free: 5.234 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.3166, allocations: 0 / 0.5313 GB, free: 5.234 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.0007821/0.3174, allocations: 0.6535 MB / 0.5319 GB, free: 4.738 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.3174, allocations: 14.08 kB / 0.5319 GB, free: 4.734 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.592e-05/0.3175, allocations: 21.44 kB / 0.532 GB, free: 4.73 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001092/0.3176, allocations: 113 kB / 0.5321 GB, free: 4.645 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.514e-05/0.3176, allocations: 62.56 kB / 0.5321 GB, free: 4.613 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000366/0.318, allocations: 284.8 kB / 0.5324 GB, free: 4.387 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.861e-05/0.318, allocations: 40.66 kB / 0.5324 GB, free: 4.371 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.216e-05/0.3181, allocations: 63.42 kB / 0.5325 GB, free: 4.348 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007018/0.3188, allocations: 0.5155 MB / 0.533 GB, free: 4.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.3188, allocations: 1 kB / 0.533 GB, free: 4.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.367e-05/0.3189, allocations: 22.7 kB / 0.533 GB, free: 4.055 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.496e-05/0.3189, allocations: 14.53 kB / 0.533 GB, free: 4.055 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004366/0.3193, allocations: 281.6 kB / 0.5333 GB, free: 3.957 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001589/0.3209, allocations: 1.668 MB / 0.5349 GB, free: 2.672 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000441/0.3213, allocations: 226.5 kB / 0.5352 GB, free: 2.578 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001389/0.3215, allocations: 97.7 kB / 0.5352 GB, free: 2.535 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.673e-05/0.3215, allocations: 3.5 kB / 0.5352 GB, free: 2.535 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.683e-05/0.3215, allocations: 37.69 kB / 0.5353 GB, free: 2.492 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.412e-06/0.3215, allocations: 4 kB / 0.5353 GB, free: 2.488 MB / 382.1 MB Notification: Performance of matching and sorting (n=37): time 0.001947/0.3235, allocations: 0.9951 MB / 0.5363 GB, free: 1.957 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.344e-05/0.3235, allocations: 56.75 kB / 0.5363 GB, free: 1.895 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003071/0.3238, allocations: 334.7 kB / 0.5366 GB, free: 1.723 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.958e-05/0.3238, allocations: 34.89 kB / 0.5367 GB, free: 1.684 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001304/0.3239, allocations: 262.4 kB / 0.5369 GB, free: 1.473 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.359e-05/0.324, allocations: 145.6 kB / 0.5371 GB, free: 1.355 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.389e-05/0.3241, allocations: 67.31 kB / 0.5371 GB, free: 1.316 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.558e-05/0.3242, allocations: 353.4 kB / 0.5375 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001518/0.3243, allocations: 92.39 kB / 0.5375 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001793/0.3245, allocations: 171.8 kB / 0.5377 GB, free: 0.832 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003339/0.3248, allocations: 287.2 kB / 0.538 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3248, allocations: 4 kB / 0.538 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004469/0.3253, allocations: 361.5 kB / 0.5383 GB, free: 488 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.3253, allocations: 10.19 kB / 0.5383 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.3253, allocations: 2.75 kB / 0.5383 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.811e-05/0.3253, allocations: 4.125 kB / 0.5383 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002732/0.3256, allocations: 82 kB / 0.5384 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.3256, allocations: 4.859 kB / 0.5384 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001135/0.3257, allocations: 11.38 kB / 0.5384 GB, free: 460 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.181e-05/0.3258, allocations: 11.16 kB / 0.5385 GB, free: 460 kB / 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 (49): * Single equations (assignments): 49 * 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.0001287/0.3259, allocations: 158.3 kB / 0.5386 GB, free: 312 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.58e-05/0.3259, allocations: 42.31 kB / 0.5386 GB, free: 288 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.798e-05/0.326, allocations: 49.97 kB / 0.5387 GB, free: 252 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.326, allocations: 7.375 kB / 0.5387 GB, free: 248 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.326, allocations: 0 / 0.5387 GB, free: 248 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.281e-06/0.326, allocations: 2.906 kB / 0.5387 GB, free: 248 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001108/0.3271, allocations: 0.7909 MB / 0.5395 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.3271, allocations: 0 / 0.5395 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003469/0.3275, allocations: 73.31 kB / 0.5395 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.3275, allocations: 1.625 kB / 0.5395 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.16e-05/0.3275, allocations: 5.5 kB / 0.5395 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.624e-06/0.3275, allocations: 1.469 kB / 0.5395 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.3275, allocations: 5.422 kB / 0.5396 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006907/0.3282, allocations: 0.5253 MB / 0.5401 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.254e-05/0.3283, allocations: 41.3 kB / 0.5401 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.097e-05/0.3283, allocations: 6.25 kB / 0.5401 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001314/0.3284, allocations: 10.22 kB / 0.5401 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.082e-05/0.3285, allocations: 23.55 kB / 0.5401 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-05/0.3285, allocations: 9.656 kB / 0.5402 GB, free: 15.29 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002447/0.3288, allocations: 239.8 kB / 0.5404 GB, free: 15.13 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3288, allocations: 1.188 kB / 0.5404 GB, free: 15.13 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003211/0.3291, allocations: 64.16 kB / 0.5404 GB, free: 15.12 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 ($outputAlias_Sucr_conc_in,$outputAlias_Sucr_conc_out,$outputAlias_Vol_in,$outputAlias_Vol_out) * 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 (37): * Single equations (assignments): 37 * 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.00101/0.3301, allocations: 1.069 MB / 0.5415 GB, free: 14.25 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004362/0.3305, allocations: 255.4 kB / 0.5417 GB, free: 14.14 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.3305, allocations: 4.188 kB / 0.5417 GB, free: 14.14 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000185/0.3307, allocations: 130.6 kB / 0.5419 GB, free: 14.08 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004268/0.3311, allocations: 61.09 kB / 0.5419 GB, free: 14.05 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004253/0.3354, allocations: 3.602 MB / 0.5454 GB, free: 11.57 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002335/0.3356, allocations: 235.2 kB / 0.5457 GB, free: 11.41 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001394/0.3358, allocations: 38.66 kB / 0.5457 GB, free: 11.39 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002429/0.336, allocations: 160.5 kB / 0.5459 GB, free: 11.26 MB / 398.1 MB Notification: Performance of SimCode: time 5.61e-07/0.336, allocations: 4 kB / 0.5459 GB, free: 11.25 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03051/0.3665, allocations: 7.052 MB / 0.5527 GB, free: 6.645 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.41, allocations: 10.08 kB / 0.5528 GB, free: 6.641 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.03933296003379] Failed to read output from testmodel.py, exit status != 0: 11.570645438041538 11.594002205 11.27301901 Calling exit ...