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.001249/0.001249, allocations: 117.3 kB / 17.16 MB, free: 5.914 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.001288/0.001288, allocations: 206.2 kB / 20.13 MB, free: 2.969 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.368/1.368, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.1812/0.1812, allocations: 29.24 MB / 338.8 MB, free: 11.87 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.001865/0.001865, allocations: 67.61 kB / 473.9 MB, free: 27.37 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1066, allocations: 60.76 MB / 0.5221 GB, free: 4.918 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.00339/0.1099, allocations: 2.109 MB / 0.5242 GB, free: 2.805 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006416/0.1106, allocations: 326.8 kB / 0.5245 GB, free: 2.484 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001894/0.1108, allocations: 11.94 kB / 0.5245 GB, free: 2.473 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001971/0.111, allocations: 67.19 kB / 0.5245 GB, free: 2.406 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001063/0.1111, allocations: 39.5 kB / 0.5246 GB, free: 2.367 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003049/0.1114, allocations: 163.7 kB / 0.5247 GB, free: 2.207 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004333/0.1118, allocations: 392.6 kB / 0.5251 GB, free: 1.82 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003838/0.1122, allocations: 262.3 kB / 0.5254 GB, free: 1.551 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001309/0.1123, allocations: 159.4 kB / 0.5255 GB, free: 1.395 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001605/0.1125, allocations: 178.9 kB / 0.5257 GB, free: 1.219 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.913e-05/0.1125, allocations: 44 kB / 0.5257 GB, free: 1.176 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.315e-05/0.1126, allocations: 40 kB / 0.5258 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.226e-05/0.1127, allocations: 103.6 kB / 0.5259 GB, free: 1.035 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001568/0.1128, allocations: 206.7 kB / 0.5261 GB, free: 0.832 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004393/0.1133, allocations: 433.8 kB / 0.5265 GB, free: 416 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.1133, allocations: 4 kB / 0.5265 GB, free: 412 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1133, allocations: 0 / 0.5265 GB, free: 412 kB / 382.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.1133, allocations: 0 / 0.5265 GB, free: 412 kB / 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.0009498/0.1142, allocations: 0.7327 MB / 0.5272 GB, free: 15.62 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.1143, allocations: 8.031 kB / 0.5272 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.093e-05/0.1143, allocations: 17.5 kB / 0.5272 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001365/0.1145, allocations: 111.9 kB / 0.5273 GB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.322e-05/0.1145, allocations: 60.56 kB / 0.5274 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004655/0.115, allocations: 348.5 kB / 0.5277 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.307e-05/0.115, allocations: 41.69 kB / 0.5278 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.659e-05/0.1151, allocations: 60.38 kB / 0.5278 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007409/0.1159, allocations: 0.5127 MB / 0.5283 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.994e-05/0.1159, allocations: 11.95 kB / 0.5283 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.614e-05/0.1159, allocations: 20 kB / 0.5283 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.599e-05/0.1159, allocations: 16 kB / 0.5284 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004439/0.1164, allocations: 277 kB / 0.5286 GB, free: 14.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001944/0.1183, allocations: 1.811 MB / 0.5304 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004686/0.1188, allocations: 231.5 kB / 0.5306 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000152/0.1189, allocations: 96.81 kB / 0.5307 GB, free: 11.85 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.647e-05/0.119, allocations: 4 kB / 0.5307 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.662e-05/0.119, allocations: 34.56 kB / 0.5307 GB, free: 11.8 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.363e-06/0.119, allocations: 0 / 0.5307 GB, free: 11.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=37): time 0.00212/0.1211, allocations: 1.066 MB / 0.5318 GB, free: 10.68 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.92e-05/0.1211, allocations: 55.41 kB / 0.5318 GB, free: 10.62 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003473/0.1215, allocations: 341.7 kB / 0.5322 GB, free: 10.28 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.839e-05/0.1215, allocations: 29.7 kB / 0.5322 GB, free: 10.24 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001797/0.1217, allocations: 268.4 kB / 0.5324 GB, free: 9.977 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.914e-05/0.1218, allocations: 134.9 kB / 0.5326 GB, free: 9.844 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001065/0.1219, allocations: 78.08 kB / 0.5326 GB, free: 9.762 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.1221, allocations: 350.8 kB / 0.533 GB, free: 9.41 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001582/0.1222, allocations: 88.84 kB / 0.5331 GB, free: 9.324 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002167/0.1224, allocations: 172 kB / 0.5332 GB, free: 9.125 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003984/0.1228, allocations: 291.4 kB / 0.5335 GB, free: 8.812 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-06/0.1228, allocations: 0 / 0.5335 GB, free: 8.812 MB / 398.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005146/0.1234, allocations: 360.6 kB / 0.5339 GB, free: 8.453 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.1234, allocations: 7.938 kB / 0.5339 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.1234, allocations: 4 kB / 0.5339 GB, free: 8.441 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.1234, allocations: 4 kB / 0.5339 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002971/0.1237, allocations: 80.09 kB / 0.5339 GB, free: 8.359 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.1237, allocations: 8 kB / 0.534 GB, free: 8.352 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000119/0.1238, allocations: 12 kB / 0.534 GB, free: 8.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.201e-05/0.1238, allocations: 19.98 kB / 0.534 GB, free: 8.32 MB / 398.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.0001713/0.124, allocations: 160.6 kB / 0.5341 GB, free: 8.156 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.205e-05/0.1241, allocations: 47.59 kB / 0.5342 GB, free: 8.109 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001072/0.1242, allocations: 52.11 kB / 0.5342 GB, free: 8.059 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.1242, allocations: 4 kB / 0.5342 GB, free: 8.055 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.1242, allocations: 0 / 0.5342 GB, free: 8.055 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.1242, allocations: 3.984 kB / 0.5342 GB, free: 8.051 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001102/0.1253, allocations: 0.8472 MB / 0.5351 GB, free: 7.145 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.1253, allocations: 0 / 0.5351 GB, free: 7.145 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003571/0.1257, allocations: 75.91 kB / 0.5351 GB, free: 7.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.1257, allocations: 0 / 0.5351 GB, free: 7.07 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.017e-05/0.1257, allocations: 8 kB / 0.5351 GB, free: 7.062 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.1257, allocations: 0 / 0.5351 GB, free: 7.062 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1257, allocations: 0 / 0.5351 GB, free: 7.062 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006881/0.1264, allocations: 0.5388 MB / 0.5357 GB, free: 6.508 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.984e-05/0.1265, allocations: 116.9 kB / 0.5358 GB, free: 6.375 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.413e-05/0.1265, allocations: 11.94 kB / 0.5358 GB, free: 6.363 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001271/0.1266, allocations: 4 kB / 0.5358 GB, free: 6.359 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.614e-05/0.1267, allocations: 19.97 kB / 0.5358 GB, free: 6.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.515e-05/0.1267, allocations: 8 kB / 0.5358 GB, free: 6.332 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002308/0.1269, allocations: 239.2 kB / 0.5361 GB, free: 6.098 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1269, allocations: 0 / 0.5361 GB, free: 6.098 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003064/0.1272, allocations: 60 kB / 0.5361 GB, free: 6.039 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.0009819/0.1282, allocations: 1.071 MB / 0.5372 GB, free: 4.941 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004311/0.1286, allocations: 251.6 kB / 0.5374 GB, free: 4.695 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1286, allocations: 0.5 kB / 0.5374 GB, free: 4.695 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001821/0.1288, allocations: 127.8 kB / 0.5375 GB, free: 4.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003947/0.1292, allocations: 52.16 kB / 0.5376 GB, free: 4.523 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004087/0.1333, allocations: 3.61 MB / 0.5411 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004439/0.1337, allocations: 0.8345 MB / 0.5419 GB, free: 15.92 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001233/0.1339, allocations: 43.27 kB / 0.542 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002148/0.1341, allocations: 163.3 kB / 0.5421 GB, free: 15.72 MB / 414.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1341, allocations: 0 / 0.5421 GB, free: 15.72 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02609/0.1602, allocations: 6.767 MB / 0.5487 GB, free: 9.059 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.204/8.364, allocations: 4.625 kB / 0.5487 GB, free: 9.055 MB / 414.1 MB " [Timeout remaining time 652] (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: 11.074168338032905] Failed to read output from testmodel.py, exit status != 0: 8.484026756021194 8.497426611 8.381508941 Calling exit ...