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.001246/0.001246, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.00133/0.00133, allocations: 215.4 kB / 23.04 MB, free: 5.07 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.365/1.365, allocations: 230.6 MB / 256.8 MB, free: 7.949 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.1775/0.1775, allocations: 29.23 MB / 342.4 MB, free: 5.855 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.001842/0.001842, allocations: 67.89 kB / 479.1 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3088/0.3107, allocations: 60.8 MB / 0.5273 GB, free: 7.957 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.002863/0.3135, allocations: 2.11 MB / 0.5293 GB, free: 6.465 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006364/0.3142, allocations: 330.1 kB / 0.5297 GB, free: 6.219 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001801/0.3144, allocations: 10.69 kB / 0.5297 GB, free: 6.215 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001958/0.3146, allocations: 70.31 kB / 0.5297 GB, free: 6.164 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001007/0.3147, allocations: 37.97 kB / 0.5298 GB, free: 6.129 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000349/0.315, allocations: 165.1 kB / 0.5299 GB, free: 6.035 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00054/0.3155, allocations: 404.2 kB / 0.5303 GB, free: 5.836 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003741/0.3159, allocations: 258.3 kB / 0.5306 GB, free: 5.68 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000128/0.3161, allocations: 152.5 kB / 0.5307 GB, free: 5.594 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001541/0.3162, allocations: 176.7 kB / 0.5309 GB, free: 5.484 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.728e-05/0.3163, allocations: 49.5 kB / 0.5309 GB, free: 5.477 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.651e-05/0.3163, allocations: 41.97 kB / 0.531 GB, free: 5.477 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.812e-05/0.3164, allocations: 97.36 kB / 0.5311 GB, free: 5.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001199/0.3165, allocations: 209 kB / 0.5313 GB, free: 5.258 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004238/0.3169, allocations: 435.2 kB / 0.5317 GB, free: 5.027 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3169, allocations: 0 / 0.5317 GB, free: 5.027 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3169, allocations: 1.594 kB / 0.5317 GB, free: 5.027 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.3169, allocations: 0 / 0.5317 GB, free: 5.027 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.0007727/0.3177, allocations: 0.6563 MB / 0.5323 GB, free: 4.527 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.3177, allocations: 10.86 kB / 0.5323 GB, free: 4.527 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.306e-05/0.3178, allocations: 25.08 kB / 0.5324 GB, free: 4.52 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001171/0.3179, allocations: 111.9 kB / 0.5325 GB, free: 4.434 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.997e-05/0.318, allocations: 62.16 kB / 0.5325 GB, free: 4.402 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004146/0.3184, allocations: 285.5 kB / 0.5328 GB, free: 4.176 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.938e-05/0.3185, allocations: 44.91 kB / 0.5328 GB, free: 4.156 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.71e-05/0.3185, allocations: 62.86 kB / 0.5329 GB, free: 4.133 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007039/0.3192, allocations: 0.5093 MB / 0.5334 GB, free: 3.859 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.705e-05/0.3192, allocations: 1.75 kB / 0.5334 GB, free: 3.859 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.359e-05/0.3193, allocations: 25.84 kB / 0.5334 GB, free: 3.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.656e-05/0.3193, allocations: 14.78 kB / 0.5334 GB, free: 3.84 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004591/0.3198, allocations: 285.3 kB / 0.5337 GB, free: 3.738 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00175/0.3215, allocations: 1.758 MB / 0.5354 GB, free: 2.426 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004727/0.322, allocations: 223.4 kB / 0.5356 GB, free: 2.336 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001427/0.3221, allocations: 102.1 kB / 0.5357 GB, free: 2.289 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.131e-05/0.3221, allocations: 4.25 kB / 0.5357 GB, free: 2.289 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.666e-05/0.3222, allocations: 40.69 kB / 0.5358 GB, free: 2.242 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.473e-06/0.3222, allocations: 0 / 0.5358 GB, free: 2.242 MB / 382.1 MB Notification: Performance of matching and sorting (n=37): time 0.001929/0.3241, allocations: 0.9954 MB / 0.5367 GB, free: 1.711 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.17e-05/0.3241, allocations: 56.78 kB / 0.5368 GB, free: 1.648 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002971/0.3244, allocations: 333.5 kB / 0.5371 GB, free: 1.477 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.952e-05/0.3244, allocations: 36.45 kB / 0.5372 GB, free: 1.438 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.3246, allocations: 262.3 kB / 0.5374 GB, free: 1.227 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.074e-05/0.3246, allocations: 141.3 kB / 0.5375 GB, free: 1.113 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.961e-05/0.3247, allocations: 66.42 kB / 0.5376 GB, free: 1.074 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.089e-05/0.3248, allocations: 355.2 kB / 0.5379 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001496/0.3249, allocations: 94.06 kB / 0.538 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001793/0.3251, allocations: 169.2 kB / 0.5382 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003495/0.3255, allocations: 285.6 kB / 0.5385 GB, free: 412 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.123e-06/0.3255, allocations: 1.281 kB / 0.5385 GB, free: 412 kB / 382.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004712/0.3259, allocations: 366.1 kB / 0.5388 GB, free: 236 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.326, allocations: 9.438 kB / 0.5388 GB, free: 232 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.326, allocations: 2.812 kB / 0.5388 GB, free: 232 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.155e-05/0.326, allocations: 5.016 kB / 0.5388 GB, free: 232 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002731/0.3263, allocations: 77.11 kB / 0.5389 GB, free: 220 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.3263, allocations: 5.781 kB / 0.5389 GB, free: 220 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001092/0.3264, allocations: 7.469 kB / 0.5389 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.114e-05/0.3264, allocations: 17.59 kB / 0.5389 GB, free: 208 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.0001311/0.3265, allocations: 158.5 kB / 0.5391 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.545e-05/0.3266, allocations: 42.31 kB / 0.5391 GB, free: 36 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.878e-05/0.3267, allocations: 49.52 kB / 0.5392 GB, free: 0 / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.3267, allocations: 4.062 kB / 0.5392 GB, free: 0 / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.3267, allocations: 112 / 0.5392 GB, free: 16 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.3267, allocations: 6.047 kB / 0.5392 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001127/0.3278, allocations: 0.8207 MB / 0.54 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.3278, allocations: 8.953 kB / 0.54 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003483/0.3282, allocations: 81.2 kB / 0.5401 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.3282, allocations: 1.188 kB / 0.5401 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.146e-05/0.3282, allocations: 6.75 kB / 0.5401 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.3282, allocations: 1.156 kB / 0.5401 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3282, allocations: 0 / 0.5401 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007046/0.3289, allocations: 0.5322 MB / 0.5406 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.096e-05/0.329, allocations: 37.98 kB / 0.5406 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.006e-05/0.329, allocations: 10.47 kB / 0.5406 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001273/0.3291, allocations: 8.875 kB / 0.5407 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.188e-05/0.3292, allocations: 19.72 kB / 0.5407 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.533e-05/0.3292, allocations: 7 kB / 0.5407 GB, free: 14.96 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002392/0.3294, allocations: 239.4 kB / 0.5409 GB, free: 14.8 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3294, allocations: 0 / 0.5409 GB, free: 14.8 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003109/0.3297, allocations: 64.53 kB / 0.541 GB, free: 14.79 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.0009948/0.3307, allocations: 1.074 MB / 0.542 GB, free: 13.92 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004339/0.3312, allocations: 250.9 kB / 0.5423 GB, free: 13.82 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3312, allocations: 0 / 0.5423 GB, free: 13.82 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001933/0.3314, allocations: 134.1 kB / 0.5424 GB, free: 13.76 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004217/0.3318, allocations: 45.56 kB / 0.5424 GB, free: 13.73 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004243/0.336, allocations: 3.616 MB / 0.546 GB, free: 11.23 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004439/0.3365, allocations: 0.8302 MB / 0.5468 GB, free: 10.47 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001346/0.3366, allocations: 39.73 kB / 0.5468 GB, free: 10.45 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000218/0.3368, allocations: 159.5 kB / 0.547 GB, free: 10.32 MB / 398.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3368, allocations: 1.219 kB / 0.547 GB, free: 10.32 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02955/0.3664, allocations: 7.099 MB / 0.5539 GB, free: 5.695 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.56, allocations: 13.56 kB / 0.5539 GB, free: 5.688 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.230110511998646] Failed to read output from testmodel.py, exit status != 0: 11.721675272914581 11.740226752 11.420268488 Calling exit ...