Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.001665/0.001665, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002157/0.002157, allocations: 212.4 kB / 23.73 MB, free: 4.387 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.535/1.535, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001682/0.001682, allocations: 51.92 kB / 377.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.286/0.2877, allocations: 53.36 MB / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01314/0.3009, allocations: 10.46 MB / 441.6 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008284/0.3091, allocations: 4.015 MB / 445.6 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001139/0.3103, allocations: 83.62 kB / 445.7 MB, free: 8.035 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005048/0.3153, allocations: 2.686 MB / 448.3 MB, free: 5.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004533/0.3199, allocations: 2 MB / 450.3 MB, free: 3.332 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001691/0.3216, allocations: 0.8072 MB / 451.1 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006221/0.3278, allocations: 4.682 MB / 455.8 MB, free: 13.83 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003676/0.3314, allocations: 2.941 MB / 458.8 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002693/0.3341, allocations: 1.705 MB / 460.5 MB, free: 9.125 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003374/0.3375, allocations: 2.375 MB / 462.9 MB, free: 6.742 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007358/0.3383, allocations: 352 kB / 463.2 MB, free: 6.398 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002279/0.3405, allocations: 1.162 MB / 464.4 MB, free: 5.234 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002192/0.3427, allocations: 2.146 MB / 466.5 MB, free: 3.082 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002315/0.345, allocations: 1.809 MB / 468.3 MB, free: 1.262 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008906/0.3539, allocations: 7.536 MB / 475.8 MB, free: 9.695 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.3539, allocations: 3.938 kB / 475.9 MB, free: 9.691 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.958e-06/0.354, allocations: 4 kB / 475.9 MB, free: 9.688 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001828/0.3541, allocations: 0 / 475.9 MB, free: 9.688 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: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.01056/0.3647, allocations: 5.319 MB / 481.2 MB, free: 4.309 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.3647, allocations: 12.03 kB / 481.2 MB, free: 4.297 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001118/0.3659, allocations: 0.7943 MB / 482 MB, free: 3.492 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008541/0.3744, allocations: 2.217 MB / 484.2 MB, free: 1.27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007171/0.3816, allocations: 2.894 MB / 487.1 MB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002372/0.3818, allocations: 270.8 kB / 487.4 MB, free: 14.06 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00122/0.383, allocations: 439.6 kB / 487.8 MB, free: 13.63 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02349/0.4065, allocations: 12.34 MB / 0.4884 GB, free: 468 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001241/0.4066, allocations: 55.56 kB / 0.4885 GB, free: 412 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004297/0.4071, allocations: 167.8 kB / 0.4886 GB, free: 244 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003494/0.4106, allocations: 2.162 MB / 0.4907 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02203/0.4326, allocations: 10.22 MB / 0.5007 GB, free: 3.832 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2659/0.6985, allocations: 42.49 MB / 0.5422 GB, free: 71.89 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01029/0.7088, allocations: 3.831 MB / 0.5459 GB, free: 71.79 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00197/0.7108, allocations: 1.626 MB / 0.5475 GB, free: 71.72 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009616/0.7204, allocations: 6.498 MB / 0.5539 GB, free: 69.25 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.902e-05/0.7204, allocations: 61.3 kB / 0.5539 GB, free: 69.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 4.559e-06/0.7204, allocations: 0 / 0.5539 GB, free: 69.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.0357/0.7561, allocations: 16.04 MB / 0.5696 GB, free: 57.93 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009462/0.7571, allocations: 1.588 MB / 0.5712 GB, free: 56.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004597/0.7617, allocations: 4.457 MB / 0.5755 GB, free: 51.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003641/0.762, allocations: 57.14 kB / 0.5756 GB, free: 51.84 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001359/0.7634, allocations: 3.541 MB / 0.579 GB, free: 48.39 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007812/0.7642, allocations: 0.8426 MB / 0.5798 GB, free: 47.56 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001376/0.7656, allocations: 1.362 MB / 0.5812 GB, free: 46.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.413e-05/0.7656, allocations: 301.1 kB / 0.5815 GB, free: 45.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002818/0.7684, allocations: 2.246 MB / 0.5836 GB, free: 43.65 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004447/0.7729, allocations: 6.374 MB / 0.5899 GB, free: 35.29 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007914/0.7808, allocations: 9.289 MB / 0.5989 GB, free: 24.15 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001156/0.7809, allocations: 43.94 kB / 0.599 GB, free: 24.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01374/0.7946, allocations: 9.121 MB / 0.6079 GB, free: 14.97 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.912e-05/0.7947, allocations: 68 kB / 0.608 GB, free: 14.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004801/0.7995, allocations: 2.871 MB / 0.6108 GB, free: 12.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002926/0.8024, allocations: 1.069 MB / 0.6118 GB, free: 10.94 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004425/0.8069, allocations: 1.587 MB / 0.6134 GB, free: 9.348 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003615/0.8105, allocations: 4.448 MB / 0.6177 GB, free: 4.668 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004897/0.8154, allocations: 427.6 kB / 0.6181 GB, free: 4.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007286/0.8161, allocations: 412 kB / 0.6185 GB, free: 3.848 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (848): * Single equations (assignments): 839 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002537/0.8186, allocations: 2.216 MB / 0.6207 GB, free: 1.625 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005848/0.8192, allocations: 397.3 kB / 0.621 GB, free: 1.234 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006142/0.8254, allocations: 3.309 MB / 0.6243 GB, free: 13.89 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005578/0.8309, allocations: 2.773 MB / 0.627 GB, free: 11.11 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.419e-05/0.8309, allocations: 4 kB / 0.627 GB, free: 11.1 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.423e-05/0.831, allocations: 7.969 kB / 0.627 GB, free: 11.09 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02036/0.8513, allocations: 9.803 MB / 0.6366 GB, free: 1.047 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.463e-05/0.8514, allocations: 19.94 kB / 0.6366 GB, free: 1.027 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001667/0.853, allocations: 375.5 kB / 0.6369 GB, free: 0.6602 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003209/0.8562, allocations: 0.9842 MB / 0.6379 GB, free: 15.66 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003265/0.8566, allocations: 63.98 kB / 0.638 GB, free: 15.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005871/0.8624, allocations: 4.687 MB / 0.6425 GB, free: 10.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001273/0.8637, allocations: 1.465 MB / 0.644 GB, free: 9.109 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01038/0.8741, allocations: 5.968 MB / 0.6498 GB, free: 2.938 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001207/0.8753, allocations: 385.1 kB / 0.6502 GB, free: 2.559 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005477/0.8758, allocations: 55.98 kB / 0.6502 GB, free: 2.504 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001762/0.8776, allocations: 155.8 kB / 0.6504 GB, free: 2.352 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000358/0.878, allocations: 184.3 kB / 0.6505 GB, free: 2.172 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001565/0.8781, allocations: 75.98 kB / 0.6506 GB, free: 2.098 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004597/0.8827, allocations: 2.598 MB / 0.6532 GB, free: 15.49 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8827, allocations: 0 / 0.6532 GB, free: 15.49 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006075/0.8888, allocations: 1.113 MB / 0.6542 GB, free: 14.38 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.v) * 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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01099/0.8998, allocations: 6.66 MB / 0.6607 GB, free: 7.508 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01098/0.9108, allocations: 5.584 MB / 0.6662 GB, free: 1.926 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.277e-05/0.9108, allocations: 4 kB / 0.6662 GB, free: 1.922 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004627/0.9154, allocations: 1.965 MB / 0.6681 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003414/0.9188, allocations: 0.5011 MB / 0.6686 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08836/1.007, allocations: 50.81 MB / 0.7182 GB, free: 5.746 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004896/1.012, allocations: 2.928 MB / 0.7211 GB, free: 2.781 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005146/1.017, allocations: 2.011 MB / 0.7231 GB, free: 0.7656 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003509/1.021, allocations: 2.105 MB / 0.7251 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of SimCode: time 1.142e-06/1.021, allocations: 0 / 0.7251 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3491/1.37, allocations: 73.61 MB / 0.797 GB, free: 203.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.56/19.93, allocations: 1.688 kB / 0.797 GB, free: 203.2 MB / 0.5762 GB " [Timeout remaining time 640] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0019992 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 22.635843138210475] Failed to read output from testmodel.py, exit status != 0: ['time', 'body1.frame_a.r_0[1]', 'body1.frame_a.r_0[2]', 'body1.frame_a.r_0[3]', 'body1.v_0[1]', 'body1.v_0[2]', 'body1.v_0[3]', 'body1.w_a[1]', 'body1.w_a[2]', 'body1.w_a[3]', 'p2.s', 'p2.v'] 20.10628345515579 20.116221986 19.759977813 Calling exit ...