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.001334/0.001334, allocations: 105.3 kB / 16.45 MB, free: 6.398 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.001572/0.001572, allocations: 216.8 kB / 19.43 MB, free: 3.73 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.443/1.443, allocations: 230.6 MB / 252.8 MB, free: 8.965 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.19/0.19, allocations: 29.22 MB / 338.1 MB, free: 6.969 MB / 270.1 MB " [Timeout remaining time 180] Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-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.001975/0.001975, allocations: 67.89 kB / 473.2 MB, free: 2.918 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3107/0.3127, allocations: 60.75 MB / 0.5215 GB, free: 7.762 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.003905/0.3166, allocations: 3.655 MB / 0.525 GB, free: 5.078 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001401/0.318, allocations: 0.6648 MB / 0.5257 GB, free: 4.586 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003406/0.3183, allocations: 18.38 kB / 0.5257 GB, free: 4.582 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003797/0.3187, allocations: 177.2 kB / 0.5259 GB, free: 4.477 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002804/0.319, allocations: 128.6 kB / 0.526 GB, free: 4.398 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006509/0.3196, allocations: 360.7 kB / 0.5263 GB, free: 4.207 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008574/0.3205, allocations: 0.8335 MB / 0.5272 GB, free: 3.824 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007194/0.3212, allocations: 0.4948 MB / 0.5276 GB, free: 3.508 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003098/0.3215, allocations: 344.3 kB / 0.528 GB, free: 3.316 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003805/0.3219, allocations: 427.9 kB / 0.5284 GB, free: 3.059 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001561/0.3221, allocations: 86.41 kB / 0.5285 GB, free: 3.059 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002301/0.3223, allocations: 116.8 kB / 0.5286 GB, free: 3.047 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000366/0.3227, allocations: 440.4 kB / 0.529 GB, free: 2.84 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003458/0.323, allocations: 0.6125 MB / 0.5296 GB, free: 2.363 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001372/0.3244, allocations: 1.26 MB / 0.5308 GB, free: 1.691 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.3244, allocations: 0 / 0.5308 GB, free: 1.691 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3244, allocations: 0 / 0.5308 GB, free: 1.691 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.443e-05/0.3244, allocations: 1.672 kB / 0.5308 GB, free: 1.691 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.001983/0.3264, allocations: 1.832 MB / 0.5326 GB, free: 388 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.3264, allocations: 10.12 kB / 0.5326 GB, free: 388 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001928/0.3266, allocations: 168.4 kB / 0.5328 GB, free: 272 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000208/0.3268, allocations: 208.4 kB / 0.533 GB, free: 156 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009825/0.3278, allocations: 0.7762 MB / 0.5337 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.044e-05/0.3279, allocations: 77.42 kB / 0.5338 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000122/0.328, allocations: 106.3 kB / 0.5339 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001805/0.3298, allocations: 1.175 MB / 0.5351 GB, free: 15.01 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.492e-05/0.3298, allocations: 3.938 kB / 0.5351 GB, free: 15.01 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.688e-05/0.3299, allocations: 50.17 kB / 0.5351 GB, free: 14.97 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.375e-05/0.3299, allocations: 30.06 kB / 0.5351 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001551/0.3315, allocations: 1.105 MB / 0.5362 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005069/0.3366, allocations: 3.662 MB / 0.5398 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001735/0.3383, allocations: 1.304 MB / 0.5411 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005532/0.3389, allocations: 469 kB / 0.5415 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.846e-05/0.3389, allocations: 29.06 kB / 0.5415 GB, free: 11.31 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.955e-05/0.339, allocations: 42.53 kB / 0.5416 GB, free: 11.27 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 2.324e-06/0.339, allocations: 0 / 0.5416 GB, free: 11.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=67): time 0.001982/0.3409, allocations: 1.522 MB / 0.5431 GB, free: 10.7 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.933e-05/0.341, allocations: 66.59 kB / 0.5431 GB, free: 10.63 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001721/0.3427, allocations: 1.301 MB / 0.5444 GB, free: 9.957 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.775e-05/0.3428, allocations: 35.05 kB / 0.5444 GB, free: 9.918 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006467/0.3434, allocations: 0.7844 MB / 0.5452 GB, free: 9.23 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002212/0.3436, allocations: 244.6 kB / 0.5454 GB, free: 9.016 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000179/0.3438, allocations: 113.7 kB / 0.5455 GB, free: 8.945 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.344, allocations: 331.8 kB / 0.5459 GB, free: 8.621 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005393/0.3445, allocations: 437.3 kB / 0.5463 GB, free: 8.477 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006701/0.3452, allocations: 0.5288 MB / 0.5468 GB, free: 7.988 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001212/0.3464, allocations: 0.9938 MB / 0.5478 GB, free: 6.961 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/0.3464, allocations: 8 kB / 0.5478 GB, free: 6.953 MB / 398.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001626/0.348, allocations: 1.18 MB / 0.5489 GB, free: 5.766 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.348, allocations: 6.344 kB / 0.5489 GB, free: 5.762 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.3481, allocations: 4 kB / 0.5489 GB, free: 5.758 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.244e-05/0.3481, allocations: 8 kB / 0.5489 GB, free: 5.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004679/0.3485, allocations: 136 kB / 0.5491 GB, free: 5.617 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.538e-05/0.3486, allocations: 11.92 kB / 0.5491 GB, free: 5.605 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003078/0.3489, allocations: 51.62 kB / 0.5491 GB, free: 5.555 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.75e-05/0.3489, allocations: 24 kB / 0.5492 GB, free: 5.531 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.0006237/0.3495, allocations: 377.5 kB / 0.5495 GB, free: 5.152 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001768/0.3497, allocations: 147 kB / 0.5497 GB, free: 5.008 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001678/0.3514, allocations: 1.189 MB / 0.5508 GB, free: 3.809 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.617e-06/0.3514, allocations: 8 kB / 0.5508 GB, free: 3.801 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.837e-05/0.3514, allocations: 7.938 kB / 0.5508 GB, free: 3.793 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/0.3514, allocations: 3.984 kB / 0.5508 GB, free: 3.789 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002858/0.3543, allocations: 2.356 MB / 0.5531 GB, free: 1.371 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.3543, allocations: 3.938 kB / 0.5531 GB, free: 1.367 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000455/0.3547, allocations: 107.9 kB / 0.5532 GB, free: 1.262 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.298e-06/0.3547, allocations: 7.938 kB / 0.5533 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.368e-05/0.3548, allocations: 12 kB / 0.5533 GB, free: 1.242 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.62e-06/0.3548, allocations: 4 kB / 0.5533 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/0.3548, allocations: 3.984 kB / 0.5533 GB, free: 1.234 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00218/0.357, allocations: 1.88 MB / 0.5551 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001935/0.3572, allocations: 204.1 kB / 0.5553 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.181e-05/0.3572, allocations: 15.94 kB / 0.5553 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002224/0.3575, allocations: 15.98 kB / 0.5553 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.87e-05/0.3575, allocations: 36.52 kB / 0.5554 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.389e-05/0.3576, allocations: 19.98 kB / 0.5554 GB, free: 15.02 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001135/0.3587, allocations: 0.8967 MB / 0.5563 GB, free: 14.13 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3587, allocations: 0 / 0.5563 GB, free: 14.13 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005874/0.3593, allocations: 215.2 kB / 0.5565 GB, free: 13.92 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.002523/0.3618, allocations: 2.449 MB / 0.5589 GB, free: 11.44 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001297/0.3631, allocations: 0.9606 MB / 0.5598 GB, free: 10.48 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.3631, allocations: 112 / 0.5598 GB, free: 10.48 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000605/0.3637, allocations: 0.495 MB / 0.5603 GB, free: 9.988 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006021/0.3643, allocations: 91.2 kB / 0.5604 GB, free: 9.906 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01506/0.3794, allocations: 11.55 MB / 0.5716 GB, free: 14.17 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001015/0.3804, allocations: 1.311 MB / 0.5729 GB, free: 12.83 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002352/0.3806, allocations: 72.36 kB / 0.573 GB, free: 12.76 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006615/0.3813, allocations: 0.5891 MB / 0.5736 GB, free: 12.17 MB / 430.1 MB Notification: Performance of SimCode: time 1.293e-06/0.3813, allocations: 0 / 0.5736 GB, free: 12.17 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04947/0.4308, allocations: 18.64 MB / 0.5918 GB, free: 9.586 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.34/10.77, allocations: 10.97 kB / 0.5918 GB, free: 9.578 MB / 446.1 MB " [Timeout remaining time 649] (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: 13.575723526999354] Failed to read output from testmodel.py, exit status != 0: 10.845507084392011 10.860519016 10.533261587 Calling exit ...