Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.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.001294/0.001294, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001862/0.001862, allocations: 215.8 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.332/1.332, allocations: 230.6 MB / 256.8 MB, free: 8 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.1724/0.1724, allocations: 29.24 MB / 342.5 MB, free: 5.82 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_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",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.001922/0.001922, allocations: 79.86 kB / 479.2 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3057/0.3077, allocations: 60.79 MB / 0.5274 GB, free: 8.008 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.004301/0.312, allocations: 3.652 MB / 0.5309 GB, free: 5.34 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00137/0.3133, allocations: 0.6791 MB / 0.5316 GB, free: 4.836 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003199/0.3137, allocations: 17.94 kB / 0.5316 GB, free: 4.832 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003945/0.314, allocations: 171.8 kB / 0.5318 GB, free: 4.73 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002813/0.3143, allocations: 133.4 kB / 0.5319 GB, free: 4.648 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006729/0.315, allocations: 363.4 kB / 0.5322 GB, free: 4.453 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007979/0.3158, allocations: 0.8411 MB / 0.5331 GB, free: 4.062 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006369/0.3164, allocations: 0.4941 MB / 0.5335 GB, free: 3.738 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002735/0.3167, allocations: 343.9 kB / 0.5339 GB, free: 3.547 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003415/0.3171, allocations: 430.1 kB / 0.5343 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001316/0.3172, allocations: 85.44 kB / 0.5344 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001993/0.3174, allocations: 119 kB / 0.5345 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003425/0.3177, allocations: 439.5 kB / 0.5349 GB, free: 3.074 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003205/0.318, allocations: 0.6127 MB / 0.5355 GB, free: 2.598 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001152/0.3192, allocations: 1.26 MB / 0.5367 GB, free: 1.926 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.3192, allocations: 0 / 0.5367 GB, free: 1.926 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3192, allocations: 1.938 kB / 0.5367 GB, free: 1.926 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.682e-05/0.3192, allocations: 0 / 0.5367 GB, free: 1.926 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.001749/0.321, allocations: 1.76 MB / 0.5384 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.321, allocations: 9.875 kB / 0.5385 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.204e-05/0.3211, allocations: 35.08 kB / 0.5385 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001596/0.3212, allocations: 179 kB / 0.5387 GB, free: 436 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001967/0.3214, allocations: 212.7 kB / 0.5389 GB, free: 316 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008559/0.3223, allocations: 0.7092 MB / 0.5396 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.275e-05/0.3224, allocations: 82.34 kB / 0.5396 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001217/0.3225, allocations: 114.6 kB / 0.5397 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001585/0.3241, allocations: 1.192 MB / 0.5409 GB, free: 14.97 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.437e-05/0.3241, allocations: 13.19 kB / 0.5409 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.82e-05/0.3242, allocations: 42.38 kB / 0.541 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.457e-05/0.3242, allocations: 26.69 kB / 0.541 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001491/0.3257, allocations: 1.12 MB / 0.5421 GB, free: 14.51 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004307/0.33, allocations: 3.612 MB / 0.5456 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001269/0.3312, allocations: 0.9969 MB / 0.5466 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005857/0.3318, allocations: 0.492 MB / 0.5471 GB, free: 11.4 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.397e-05/0.3319, allocations: 26.14 kB / 0.5471 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.142e-05/0.3319, allocations: 46.89 kB / 0.5471 GB, free: 11.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=79): time 2.585e-06/0.3319, allocations: 0 / 0.5471 GB, free: 11.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=105): time 0.008868/0.3408, allocations: 5.492 MB / 0.5525 GB, free: 7.305 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.979e-05/0.3409, allocations: 64.34 kB / 0.5526 GB, free: 7.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001517/0.3424, allocations: 1.289 MB / 0.5538 GB, free: 5.934 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.644e-05/0.3424, allocations: 41.7 kB / 0.5539 GB, free: 5.887 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006217/0.3431, allocations: 0.7888 MB / 0.5546 GB, free: 5.09 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002785/0.3433, allocations: 376.7 kB / 0.555 GB, free: 4.719 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002389/0.3436, allocations: 166.7 kB / 0.5551 GB, free: 4.547 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.3437, allocations: 341.9 kB / 0.5555 GB, free: 4.207 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000765/0.3445, allocations: 0.6149 MB / 0.5561 GB, free: 3.594 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008534/0.3453, allocations: 0.7344 MB / 0.5568 GB, free: 2.828 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001855/0.3472, allocations: 1.442 MB / 0.5582 GB, free: 1.352 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3472, allocations: 4 kB / 0.5582 GB, free: 1.348 MB / 398.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.00214/0.3493, allocations: 1.66 MB / 0.5598 GB, free: 15.68 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.3494, allocations: 8 kB / 0.5598 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/0.3494, allocations: 4 kB / 0.5598 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.056e-05/0.3494, allocations: 4 kB / 0.5598 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006915/0.3501, allocations: 207.7 kB / 0.56 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.423e-05/0.3501, allocations: 11.94 kB / 0.56 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002771/0.3504, allocations: 27.98 kB / 0.5601 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.716e-05/0.3505, allocations: 52 kB / 0.5601 GB, free: 15.37 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (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 (120): * Single equations (assignments): 120 * 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.0005782/0.351, allocations: 396.7 kB / 0.5605 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001768/0.3512, allocations: 158.9 kB / 0.5606 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00251/0.3537, allocations: 1.779 MB / 0.5624 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.227e-05/0.3537, allocations: 12 kB / 0.5624 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/0.3537, allocations: 7.938 kB / 0.5624 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/0.3538, allocations: 11.97 kB / 0.5624 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004222/0.358, allocations: 3.247 MB / 0.5656 GB, free: 9.688 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.358, allocations: 0 / 0.5656 GB, free: 9.688 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007139/0.3587, allocations: 187.8 kB / 0.5658 GB, free: 9.504 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.698e-06/0.3587, allocations: 8.125 kB / 0.5658 GB, free: 9.496 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.381e-05/0.3588, allocations: 31.92 kB / 0.5658 GB, free: 9.465 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.698e-06/0.3588, allocations: 4 kB / 0.5658 GB, free: 9.461 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.3588, allocations: 7.938 kB / 0.5658 GB, free: 9.453 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003231/0.362, allocations: 2.72 MB / 0.5685 GB, free: 6.703 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00018/0.3622, allocations: 130.9 kB / 0.5686 GB, free: 6.574 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001035/0.3623, allocations: 20.06 kB / 0.5686 GB, free: 6.555 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002865/0.3626, allocations: 20 kB / 0.5686 GB, free: 6.535 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001261/0.3627, allocations: 76.75 kB / 0.5687 GB, free: 6.461 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.641e-05/0.3628, allocations: 47.98 kB / 0.5688 GB, free: 6.414 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001145/0.3639, allocations: 0.8928 MB / 0.5696 GB, free: 5.523 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3639, allocations: 4 kB / 0.5696 GB, free: 5.52 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006037/0.3645, allocations: 192 kB / 0.5698 GB, free: 5.332 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (106): * Single equations (assignments): 106 * 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.003589/0.3681, allocations: 3.291 MB / 0.573 GB, free: 2 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001825/0.3699, allocations: 1.41 MB / 0.5744 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3699, allocations: 0 / 0.5744 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000854/0.3708, allocations: 0.7247 MB / 0.5751 GB, free: 15.86 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006666/0.3715, allocations: 111.6 kB / 0.5752 GB, free: 15.75 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01768/0.3891, allocations: 13.65 MB / 0.5885 GB, free: 1.828 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001008/0.3902, allocations: 1.343 MB / 0.5899 GB, free: 464 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004386/0.3906, allocations: 157.2 kB / 0.59 GB, free: 308 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007969/0.3914, allocations: 0.6555 MB / 0.5906 GB, free: 15.64 MB / 446.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3914, allocations: 0 / 0.5906 GB, free: 15.64 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05068/0.4421, allocations: 22.74 MB / 0.6129 GB, free: 9.02 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.94/13.38, allocations: 6.875 kB / 0.6129 GB, free: 9.016 MB / 462.1 MB " [Timeout remaining time 646] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2_fmu --startTime=1900 --stopTime=2100 --stepSize=0.08 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.165991448098794] Failed to read output from testmodel.py, exit status != 0: 13.54805662704166 13.563715952 13.241460892 Calling exit ...