Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.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.001261/0.001261, allocations: 101.9 kB / 19.73 MB, free: 2.109 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.001326/0.001326, allocations: 222.5 kB / 23.03 MB, free: 4.906 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.326/1.326, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.1772/0.1772, allocations: 29.23 MB / 342.4 MB, free: 5.594 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.WorldDynamics.World2.Scenario_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",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: 76.09 kB / 479.1 MB, free: 364 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2904/0.2922, allocations: 60.79 MB / 0.5273 GB, free: 7.852 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.0039/0.2961, allocations: 3.103 MB / 0.5303 GB, free: 5.773 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001241/0.2974, allocations: 0.7575 MB / 0.5311 GB, free: 5.223 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000282/0.2977, allocations: 23.94 kB / 0.5311 GB, free: 5.215 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003693/0.298, allocations: 180.1 kB / 0.5312 GB, free: 5.105 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002957/0.2983, allocations: 136.7 kB / 0.5314 GB, free: 5.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006693/0.299, allocations: 375.9 kB / 0.5317 GB, free: 4.824 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007523/0.2998, allocations: 0.8541 MB / 0.5326 GB, free: 4.434 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005982/0.3004, allocations: 0.4995 MB / 0.5331 GB, free: 4.105 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002546/0.3006, allocations: 360.1 kB / 0.5334 GB, free: 3.906 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003477/0.301, allocations: 441.1 kB / 0.5338 GB, free: 3.648 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001368/0.3011, allocations: 89.75 kB / 0.5339 GB, free: 3.645 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002123/0.3013, allocations: 116.8 kB / 0.534 GB, free: 3.637 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003513/0.3017, allocations: 445.6 kB / 0.5344 GB, free: 3.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002666/0.3019, allocations: 479.7 kB / 0.5349 GB, free: 3.102 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001057/0.303, allocations: 1.292 MB / 0.5362 GB, free: 2.371 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.303, allocations: 0 / 0.5362 GB, free: 2.371 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.303, allocations: 3.219 kB / 0.5362 GB, free: 2.371 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.354e-05/0.303, allocations: 0 / 0.5362 GB, free: 2.371 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.001741/0.3048, allocations: 1.78 MB / 0.5379 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.3048, allocations: 9.812 kB / 0.5379 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.597e-05/0.3048, allocations: 39.14 kB / 0.538 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001567/0.305, allocations: 176.1 kB / 0.5381 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001929/0.3052, allocations: 213.8 kB / 0.5383 GB, free: 0.707 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007053/0.3059, allocations: 0.7195 MB / 0.539 GB, free: 128 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.202e-05/0.3059, allocations: 82.56 kB / 0.5391 GB, free: 88 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/0.3061, allocations: 117.2 kB / 0.5392 GB, free: 44 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001797/0.3079, allocations: 1.219 MB / 0.5404 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.039e-05/0.3079, allocations: 6.094 kB / 0.5404 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.408e-05/0.308, allocations: 45.84 kB / 0.5405 GB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.845e-05/0.308, allocations: 30.66 kB / 0.5405 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001561/0.3096, allocations: 1.124 MB / 0.5416 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004342/0.3139, allocations: 3.445 MB / 0.5449 GB, free: 12.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0013/0.3152, allocations: 1.016 MB / 0.5459 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005976/0.3158, allocations: 0.5032 MB / 0.5464 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.364e-05/0.3159, allocations: 30.38 kB / 0.5465 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007517/0.3166, allocations: 0.5716 MB / 0.547 GB, free: 11.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=84): time 2.434e-06/0.3166, allocations: 1.375 kB / 0.547 GB, free: 11.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=110): time 0.009427/0.3261, allocations: 5.675 MB / 0.5526 GB, free: 6.926 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.548e-05/0.3261, allocations: 68.28 kB / 0.5526 GB, free: 6.848 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001467/0.3276, allocations: 1.297 MB / 0.5539 GB, free: 5.543 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.282e-05/0.3276, allocations: 45.7 kB / 0.5539 GB, free: 5.492 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006305/0.3283, allocations: 0.7811 MB / 0.5547 GB, free: 4.703 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002984/0.3286, allocations: 388.7 kB / 0.5551 GB, free: 4.32 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000245/0.3288, allocations: 170.7 kB / 0.5552 GB, free: 4.148 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.329, allocations: 349.9 kB / 0.5556 GB, free: 3.801 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007835/0.3298, allocations: 0.6269 MB / 0.5562 GB, free: 3.176 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008846/0.3307, allocations: 0.7575 MB / 0.5569 GB, free: 2.379 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001972/0.3326, allocations: 1.487 MB / 0.5584 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3326, allocations: 4 kB / 0.5584 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002179/0.3348, allocations: 1.707 MB / 0.56 GB, free: 15.13 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.3348, allocations: 4 kB / 0.56 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.765e-05/0.3348, allocations: 8.062 kB / 0.5601 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.142e-05/0.3349, allocations: 8.344 kB / 0.5601 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007124/0.3356, allocations: 215.7 kB / 0.5603 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.747e-05/0.3356, allocations: 15.92 kB / 0.5603 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002769/0.3359, allocations: 24 kB / 0.5603 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.159e-05/0.3359, allocations: 48 kB / 0.5603 GB, free: 14.82 MB / 414.1 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = true ) \"Minimum quality of life\" type: Real min_dPop:DISCRETE(unit = \"1/yr\" fixed = true ) \"Minimal derivative of population\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.min_QL,$PRE.min_dPop,min_QL,min_dPop,CIAF.Integrator1.local_reset,Pollution.Integrator1.local_reset,Capital_Investment.Integrator1.local_reset,Natural_Resources.Integrator1.local_reset,Population.Integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (127): * Single equations (assignments): 127 * 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.0005583/0.3365, allocations: 405.9 kB / 0.5607 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001677/0.3367, allocations: 162.9 kB / 0.5609 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002561/0.3392, allocations: 1.834 MB / 0.5627 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.651e-05/0.3393, allocations: 15.94 kB / 0.5627 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.3393, allocations: 0 / 0.5627 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/0.3393, allocations: 3.984 kB / 0.5627 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004152/0.3434, allocations: 3.197 MB / 0.5658 GB, free: 9.121 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.3434, allocations: 4.031 kB / 0.5658 GB, free: 9.117 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007212/0.3441, allocations: 195.7 kB / 0.566 GB, free: 8.926 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.005e-05/0.3442, allocations: 11.92 kB / 0.566 GB, free: 8.914 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.074e-05/0.3442, allocations: 31.98 kB / 0.5661 GB, free: 8.883 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.492e-06/0.3442, allocations: 4 kB / 0.5661 GB, free: 8.879 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.3442, allocations: 4 kB / 0.5661 GB, free: 8.875 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0033/0.3475, allocations: 2.774 MB / 0.5688 GB, free: 6.07 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003194/0.3478, allocations: 206.8 kB / 0.569 GB, free: 5.867 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00011/0.348, allocations: 20 kB / 0.569 GB, free: 5.848 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003012/0.3483, allocations: 20 kB / 0.569 GB, free: 5.828 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001349/0.3484, allocations: 80.8 kB / 0.5691 GB, free: 5.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.867e-05/0.3485, allocations: 51.98 kB / 0.5691 GB, free: 5.699 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00109/0.3496, allocations: 0.8969 MB / 0.57 GB, free: 4.805 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3496, allocations: 0 / 0.57 GB, free: 4.805 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005625/0.3501, allocations: 196 kB / 0.5702 GB, free: 4.613 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 ($outputAlias_Pop,$outputAlias_Pol,$outputAlias_Cap_inv,$outputAlias_Nat_res,CIAF.Integrator1.y) * Number of discrete variables: 3 ($whenCondition1,min_dPop,min_QL) * Number of discrete states: 2 (min_dPop,min_QL) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.003814/0.3539, allocations: 3.357 MB / 0.5735 GB, free: 1.215 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001811/0.3557, allocations: 1.438 MB / 0.5749 GB, free: 15.78 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.3557, allocations: 0 / 0.5749 GB, free: 15.78 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008966/0.3566, allocations: 0.7473 MB / 0.5756 GB, free: 15.03 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006665/0.3573, allocations: 113.6 kB / 0.5757 GB, free: 14.92 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01763/0.3749, allocations: 13.82 MB / 0.5892 GB, free: 0.8047 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008217/0.3758, allocations: 0.7672 MB / 0.59 GB, free: 8 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004604/0.3762, allocations: 153.3 kB / 0.5901 GB, free: 15.86 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008454/0.3771, allocations: 0.6633 MB / 0.5908 GB, free: 15.2 MB / 446.1 MB Notification: Performance of SimCode: time 7.22e-07/0.3771, allocations: 0 / 0.5908 GB, free: 15.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05239/0.4295, allocations: 22.91 MB / 0.6131 GB, free: 8.453 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.16/13.58, allocations: 11.62 kB / 0.6131 GB, free: 8.445 MB / 462.1 MB " [Timeout remaining time 646] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6_fmu --startTime=1900 --stopTime=2100 --stepSize=0.08 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.369475962943397] Failed to read output from testmodel.py, exit status != 0: 13.753420610097237 13.767717834 13.461888532 Calling exit ...