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.001246/0.001246, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001558/0.001558, allocations: 212.7 kB / 22.24 MB, free: 5.262 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.339/1.339, allocations: 230.6 MB / 256 MB, free: 7.777 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.175/0.175, allocations: 29.23 MB / 341.7 MB, free: 5.57 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",fmuType="me",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.001951/0.001951, allocations: 67.89 kB / 478.4 MB, free: 348 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3092/0.3111, allocations: 60.79 MB / 0.5265 GB, free: 7.828 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.004079/0.3152, allocations: 3.069 MB / 0.5295 GB, free: 5.777 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001267/0.3165, allocations: 0.6646 MB / 0.5302 GB, free: 5.289 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003053/0.3168, allocations: 22.62 kB / 0.5302 GB, free: 5.281 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003797/0.3171, allocations: 180 kB / 0.5304 GB, free: 5.172 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002804/0.3174, allocations: 133.6 kB / 0.5305 GB, free: 5.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006722/0.3181, allocations: 355.5 kB / 0.5308 GB, free: 4.902 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007401/0.3188, allocations: 0.8359 MB / 0.5316 GB, free: 4.516 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006042/0.3194, allocations: 466.6 kB / 0.5321 GB, free: 4.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002505/0.3197, allocations: 347.9 kB / 0.5324 GB, free: 4.035 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003113/0.32, allocations: 369.6 kB / 0.5328 GB, free: 3.836 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001317/0.3201, allocations: 97.66 kB / 0.5329 GB, free: 3.824 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002026/0.3203, allocations: 118.4 kB / 0.533 GB, free: 3.812 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003313/0.3207, allocations: 436 kB / 0.5334 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002798/0.321, allocations: 467 kB / 0.5338 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001147/0.3221, allocations: 1.286 MB / 0.5351 GB, free: 2.613 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.3221, allocations: 0 / 0.5351 GB, free: 2.613 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3221, allocations: 1.25 kB / 0.5351 GB, free: 2.613 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.876e-05/0.3221, allocations: 0 / 0.5351 GB, free: 2.613 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.001698/0.3238, allocations: 1.764 MB / 0.5368 GB, free: 1.238 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.3239, allocations: 9.625 kB / 0.5368 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001591/0.324, allocations: 169.1 kB / 0.537 GB, free: 1.098 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00018/0.3242, allocations: 209.1 kB / 0.5372 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007829/0.325, allocations: 0.7166 MB / 0.5379 GB, free: 412 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.26e-05/0.325, allocations: 85.05 kB / 0.538 GB, free: 368 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001088/0.3252, allocations: 100.6 kB / 0.5381 GB, free: 336 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001505/0.3267, allocations: 1.176 MB / 0.5392 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.812e-05/0.3267, allocations: 5.094 kB / 0.5392 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.576e-05/0.3268, allocations: 41.09 kB / 0.5393 GB, free: 15.63 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.536e-05/0.3268, allocations: 25.81 kB / 0.5393 GB, free: 15.63 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001465/0.3282, allocations: 1.098 MB / 0.5404 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004342/0.3326, allocations: 3.41 MB / 0.5437 GB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001624/0.3342, allocations: 1.302 MB / 0.545 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005419/0.3348, allocations: 469.3 kB / 0.5454 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.244e-05/0.3348, allocations: 24.7 kB / 0.5454 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.492e-05/0.3349, allocations: 47.16 kB / 0.5455 GB, free: 12.15 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 2.495e-06/0.3349, allocations: 7.938 kB / 0.5455 GB, free: 12.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=67): time 0.00194/0.3368, allocations: 1.52 MB / 0.547 GB, free: 11.58 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.93e-05/0.3369, allocations: 62.78 kB / 0.547 GB, free: 11.51 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001532/0.3384, allocations: 1.294 MB / 0.5483 GB, free: 10.51 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.173e-05/0.3384, allocations: 37.7 kB / 0.5483 GB, free: 10.46 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006133/0.339, allocations: 0.7843 MB / 0.5491 GB, free: 9.672 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001797/0.3392, allocations: 237.9 kB / 0.5493 GB, free: 9.438 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001577/0.3394, allocations: 114.3 kB / 0.5494 GB, free: 9.32 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.3395, allocations: 330 kB / 0.5497 GB, free: 8.992 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005258/0.34, allocations: 441.1 kB / 0.5502 GB, free: 8.559 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006031/0.3406, allocations: 0.5277 MB / 0.5507 GB, free: 7.996 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001156/0.3418, allocations: 0.9904 MB / 0.5516 GB, free: 6.977 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.3418, allocations: 0 / 0.5516 GB, free: 6.977 MB / 398.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.00143/0.3432, allocations: 1.187 MB / 0.5528 GB, free: 5.781 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.3433, allocations: 4 kB / 0.5528 GB, free: 5.777 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.3433, allocations: 4.312 kB / 0.5528 GB, free: 5.773 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/0.3433, allocations: 11.98 kB / 0.5528 GB, free: 5.762 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004516/0.3437, allocations: 135.8 kB / 0.5529 GB, free: 5.629 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.291e-05/0.3437, allocations: 7.938 kB / 0.553 GB, free: 5.621 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002516/0.344, allocations: 55.5 kB / 0.553 GB, free: 5.566 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.926e-05/0.344, allocations: 31.98 kB / 0.553 GB, free: 5.535 MB / 398.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 (82): * Single equations (assignments): 82 * 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.0004693/0.3445, allocations: 365.5 kB / 0.5534 GB, free: 5.168 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001592/0.3447, allocations: 147 kB / 0.5535 GB, free: 5.023 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00154/0.3462, allocations: 1.195 MB / 0.5547 GB, free: 3.816 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.3462, allocations: 8 kB / 0.5547 GB, free: 3.809 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.3462, allocations: 7.938 kB / 0.5547 GB, free: 3.801 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.3462, allocations: 3.984 kB / 0.5547 GB, free: 3.797 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002792/0.349, allocations: 2.272 MB / 0.5569 GB, free: 1.469 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.349, allocations: 0 / 0.5569 GB, free: 1.469 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004477/0.3495, allocations: 111.8 kB / 0.557 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.256e-06/0.3495, allocations: 11.88 kB / 0.5571 GB, free: 1.348 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.402e-05/0.3495, allocations: 12 kB / 0.5571 GB, free: 1.336 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.895e-06/0.3495, allocations: 7.984 kB / 0.5571 GB, free: 1.328 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.3495, allocations: 3.984 kB / 0.5571 GB, free: 1.324 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002091/0.3516, allocations: 1.875 MB / 0.5589 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001837/0.3518, allocations: 134.9 kB / 0.559 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.002e-05/0.3519, allocations: 15.94 kB / 0.559 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002138/0.3521, allocations: 11.98 kB / 0.5591 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.867e-05/0.3522, allocations: 40.58 kB / 0.5591 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.68e-05/0.3522, allocations: 23.94 kB / 0.5591 GB, free: 15.21 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00108/0.3533, allocations: 0.8967 MB / 0.56 GB, free: 14.32 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3533, allocations: 0 / 0.56 GB, free: 14.32 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005884/0.3539, allocations: 215.2 kB / 0.5602 GB, free: 14.11 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (Population.Integrator1.y,Natural_Resources.Integrator1.y,Capital_Investment.Integrator1.y,Pollution.Integrator1.y,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 (67): * Single equations (assignments): 67 * 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.002454/0.3563, allocations: 2.452 MB / 0.5626 GB, free: 11.62 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001247/0.3576, allocations: 0.9582 MB / 0.5635 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3576, allocations: 0 / 0.5635 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005732/0.3582, allocations: 0.4956 MB / 0.564 GB, free: 10.17 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005982/0.3588, allocations: 90.7 kB / 0.5641 GB, free: 10.09 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01439/0.3732, allocations: 11.54 MB / 0.5754 GB, free: 14.37 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007856/0.3739, allocations: 0.7213 MB / 0.5761 GB, free: 13.61 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002438/0.3742, allocations: 72.36 kB / 0.5761 GB, free: 13.54 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006243/0.3748, allocations: 0.5891 MB / 0.5767 GB, free: 12.96 MB / 430.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3748, allocations: 4 kB / 0.5767 GB, free: 12.95 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0525/0.4273, allocations: 19.03 MB / 0.5953 GB, free: 10.04 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.83, allocations: 8 kB / 0.5953 GB, free: 10.03 MB / 446.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2_res.csv --start-time 1900 --stop-time 2100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 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: 14.460369834676385] Failed to read output from testmodel.py, exit status != 0: 11.94533256907016 11.96022916 11.635217535 Calling exit ...