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.001309/0.001309, allocations: 109.2 kB / 18.94 MB, free: 2.949 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.001454/0.001454, allocations: 218.8 kB / 22.26 MB, free: 5.125 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.43/1.43, allocations: 230.6 MB / 256 MB, free: 8 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.1856/0.1856, allocations: 29.23 MB / 341.7 MB, free: 5.797 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.00199/0.00199, allocations: 63.91 kB / 478.4 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2883/0.2903, allocations: 60.79 MB / 0.5266 GB, free: 7.992 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.004118/0.2944, allocations: 3.668 MB / 0.5302 GB, free: 5.316 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001378/0.2958, allocations: 0.6742 MB / 0.5308 GB, free: 4.816 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002874/0.2961, allocations: 18.31 kB / 0.5308 GB, free: 4.812 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003498/0.2964, allocations: 172.7 kB / 0.531 GB, free: 4.711 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002817/0.2967, allocations: 136.8 kB / 0.5311 GB, free: 4.625 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007202/0.2974, allocations: 356.4 kB / 0.5315 GB, free: 4.438 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006993/0.2981, allocations: 0.8404 MB / 0.5323 GB, free: 4.047 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000678/0.2988, allocations: 0.4985 MB / 0.5328 GB, free: 3.719 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002229/0.299, allocations: 335.6 kB / 0.5331 GB, free: 3.535 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000279/0.2993, allocations: 429 kB / 0.5335 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000113/0.2994, allocations: 84.75 kB / 0.5336 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001989/0.2996, allocations: 119.6 kB / 0.5337 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000305/0.2999, allocations: 444.2 kB / 0.5341 GB, free: 3.059 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003772/0.3003, allocations: 0.6165 MB / 0.5347 GB, free: 2.578 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001026/0.3013, allocations: 1.255 MB / 0.536 GB, free: 1.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3014, allocations: 1.844 kB / 0.536 GB, free: 1.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.3014, allocations: 0 / 0.536 GB, free: 1.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.731e-05/0.3014, allocations: 0 / 0.536 GB, free: 1.91 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.001696/0.3031, allocations: 1.762 MB / 0.5377 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.257e-05/0.3031, allocations: 13.12 kB / 0.5377 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001436/0.3032, allocations: 169.9 kB / 0.5379 GB, free: 436 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000152/0.3034, allocations: 211.4 kB / 0.5381 GB, free: 316 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009004/0.3043, allocations: 0.7142 MB / 0.5388 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.684e-05/0.3044, allocations: 77.11 kB / 0.5388 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001128/0.3045, allocations: 105.1 kB / 0.5389 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001568/0.306, allocations: 1.173 MB / 0.5401 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.21e-05/0.3061, allocations: 8.844 kB / 0.5401 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.455e-05/0.3061, allocations: 45.59 kB / 0.5401 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.028e-05/0.3061, allocations: 29.94 kB / 0.5402 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001482/0.3076, allocations: 1.1 MB / 0.5412 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004258/0.3119, allocations: 3.597 MB / 0.5447 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001593/0.3135, allocations: 1.304 MB / 0.546 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004958/0.314, allocations: 465.5 kB / 0.5465 GB, free: 11.35 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.842e-05/0.314, allocations: 25.7 kB / 0.5465 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.693e-05/0.3141, allocations: 42.16 kB / 0.5465 GB, free: 11.29 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 1.733e-06/0.3141, allocations: 0 / 0.5465 GB, free: 11.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=67): time 0.001848/0.3159, allocations: 1.525 MB / 0.548 GB, free: 10.73 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.271e-05/0.316, allocations: 62.06 kB / 0.5481 GB, free: 10.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001571/0.3175, allocations: 1.295 MB / 0.5493 GB, free: 9.754 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.856e-05/0.3176, allocations: 33.7 kB / 0.5494 GB, free: 9.715 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006003/0.3182, allocations: 0.7843 MB / 0.5501 GB, free: 8.922 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002705/0.3184, allocations: 241.9 kB / 0.5504 GB, free: 8.684 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002077/0.3187, allocations: 118.3 kB / 0.5505 GB, free: 8.562 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.3188, allocations: 329.9 kB / 0.5508 GB, free: 8.234 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005166/0.3193, allocations: 433.1 kB / 0.5512 GB, free: 7.809 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006543/0.32, allocations: 0.5278 MB / 0.5517 GB, free: 7.246 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001195/0.3212, allocations: 1.006 MB / 0.5527 GB, free: 6.211 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3212, allocations: 0 / 0.5527 GB, free: 6.211 MB / 398.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001482/0.3226, allocations: 1.183 MB / 0.5539 GB, free: 5.02 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.3227, allocations: 8 kB / 0.5539 GB, free: 5.012 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.3227, allocations: 4 kB / 0.5539 GB, free: 5.008 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.3227, allocations: 12.25 kB / 0.5539 GB, free: 4.996 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004404/0.3231, allocations: 131.8 kB / 0.554 GB, free: 4.867 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.22e-05/0.3232, allocations: 8 kB / 0.554 GB, free: 4.859 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003163/0.3235, allocations: 55.55 kB / 0.5541 GB, free: 4.805 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.518e-05/0.3235, allocations: 20 kB / 0.5541 GB, free: 4.785 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.0004462/0.324, allocations: 377.5 kB / 0.5544 GB, free: 4.406 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001712/0.3241, allocations: 151 kB / 0.5546 GB, free: 4.258 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001594/0.3257, allocations: 1.191 MB / 0.5558 GB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.3257, allocations: 16 kB / 0.5558 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3257, allocations: 0 / 0.5558 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.3257, allocations: 7.922 kB / 0.5558 GB, free: 3.031 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002945/0.3287, allocations: 2.334 MB / 0.5581 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.3287, allocations: 0 / 0.5581 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000423/0.3291, allocations: 107.9 kB / 0.5582 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.3291, allocations: 4 kB / 0.5582 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.367e-05/0.3291, allocations: 16 kB / 0.5582 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.3292, allocations: 4 kB / 0.5582 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.3292, allocations: 11.88 kB / 0.5582 GB, free: 0.5 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002212/0.3314, allocations: 1.879 MB / 0.56 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001871/0.3316, allocations: 126.9 kB / 0.5601 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.442e-05/0.3316, allocations: 12.06 kB / 0.5602 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002071/0.3318, allocations: 8 kB / 0.5602 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001468/0.332, allocations: 48.5 kB / 0.5602 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.784e-05/0.3321, allocations: 20 kB / 0.5602 GB, free: 14.39 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001073/0.3331, allocations: 0.8967 MB / 0.5611 GB, free: 13.5 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3331, allocations: 0 / 0.5611 GB, free: 13.5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005748/0.3337, allocations: 219.2 kB / 0.5613 GB, free: 13.28 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.002597/0.3363, allocations: 2.44 MB / 0.5637 GB, free: 10.81 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00134/0.3376, allocations: 0.966 MB / 0.5646 GB, free: 9.844 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.3376, allocations: 3.938 kB / 0.5646 GB, free: 9.84 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006305/0.3383, allocations: 495.5 kB / 0.5651 GB, free: 9.359 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005727/0.3389, allocations: 93.41 kB / 0.5652 GB, free: 9.273 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01595/0.3548, allocations: 11.55 MB / 0.5765 GB, free: 13.54 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001006/0.3558, allocations: 1.319 MB / 0.5778 GB, free: 12.2 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003151/0.3561, allocations: 68.36 kB / 0.5778 GB, free: 12.13 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000629/0.3568, allocations: 0.593 MB / 0.5784 GB, free: 11.54 MB / 430.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3568, allocations: 0 / 0.5784 GB, free: 11.54 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0564/0.4132, allocations: 19.1 MB / 0.5971 GB, free: 8.531 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.5/13.91, allocations: 2.406 kB / 0.5971 GB, free: 8.531 MB / 446.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 os._exit(0), Time elapsed: 16.687920561991632] Failed to read output from testmodel.py, exit status != 0: 14.030060139019042 14.049402783 13.744617083 Calling exit ...