Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 80.73 kB / 20.67 MB, free: 3.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008474/0.0008474, allocations: 153.1 kB / 23.93 MB, free: 0.6211 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8783/0.8783, allocations: 173.4 MB / 200.5 MB, free: 9.441 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 318.4 MB, free: 6.395 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.435e-05/1.584e-05, allocations: 2.281 kB / 318.4 MB, free: 6.391 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.008344/0.00836, allocations: 10.5 MB / 328.9 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004653/0.01301, allocations: 4.016 MB / 333 MB, free: 7.805 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006128/0.01363, allocations: 79.62 kB / 333 MB, free: 7.727 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002827/0.01645, allocations: 2.822 MB / 335.9 MB, free: 4.895 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002436/0.01889, allocations: 2.102 MB / 338 MB, free: 2.785 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009577/0.01985, allocations: 0.877 MB / 338.8 MB, free: 1.906 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003541/0.02339, allocations: 5.255 MB / 344.1 MB, free: 12.64 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002276/0.02566, allocations: 3.436 MB / 347.5 MB, free: 9.148 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002244/0.02791, allocations: 2.619 MB / 350.1 MB, free: 6.523 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001869/0.02978, allocations: 2.615 MB / 352.8 MB, free: 3.902 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002944/0.03007, allocations: 356 kB / 353.1 MB, free: 3.555 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00122/0.03129, allocations: 1.248 MB / 354.4 MB, free: 2.305 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001163/0.03245, allocations: 2.259 MB / 356.6 MB, free: 40 kB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001228/0.03368, allocations: 1.441 MB / 358.1 MB, free: 14.59 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004687/0.03837, allocations: 7.635 MB / 365.7 MB, free: 6.93 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.324e-06/0.03837, allocations: 0 / 365.7 MB, free: 6.93 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.03837, allocations: 0 / 365.7 MB, free: 6.93 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.104e-05/0.03841, allocations: 3.938 kB / 365.7 MB, free: 6.926 MB / 330.7 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.005152/0.04356, allocations: 5.42 MB / 371.1 MB, free: 1.445 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.0436, allocations: 8.922 kB / 371.1 MB, free: 1.438 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008277/0.04443, allocations: 0.8021 MB / 371.9 MB, free: 0.625 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00427/0.0487, allocations: 2.33 MB / 374.3 MB, free: 14.29 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002508/0.05121, allocations: 2.551 MB / 376.8 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001255/0.05133, allocations: 270.8 kB / 377.1 MB, free: 11.43 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005435/0.05188, allocations: 431.7 kB / 377.5 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01194/0.06382, allocations: 12.31 MB / 389.8 MB, free: 13.86 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.449e-05/0.06389, allocations: 51.56 kB / 389.9 MB, free: 13.81 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002929/0.06418, allocations: 175.8 kB / 390 MB, free: 13.64 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001744/0.06593, allocations: 2.162 MB / 392.2 MB, free: 11.47 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01257/0.0785, allocations: 10.2 MB / 402.4 MB, free: 1.254 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02876/0.1073, allocations: 42.76 MB / 445.2 MB, free: 5.25 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005999/0.1133, allocations: 3.948 MB / 449.1 MB, free: 1.27 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1494/0.2627, allocations: 1.62 MB / 450.7 MB, free: 118.8 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007538/0.2702, allocations: 6.671 MB / 457.4 MB, free: 116.9 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.521e-05/0.2702, allocations: 58.48 kB / 457.4 MB, free: 116.8 MB / 410.7 MB Notification: Performance of pre-optimization done (n=183): time 3.367e-06/0.2703, allocations: 0.875 kB / 457.4 MB, free: 116.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=205): time 0.02041/0.2907, allocations: 16.47 MB / 473.9 MB, free: 106.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005823/0.2912, allocations: 1.581 MB / 475.5 MB, free: 104.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003343/0.2946, allocations: 4.777 MB / 480.3 MB, free: 100.2 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.094e-05/0.2947, allocations: 56.2 kB / 480.3 MB, free: 100.1 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008181/0.2955, allocations: 3.504 MB / 483.8 MB, free: 96.71 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003064/0.2958, allocations: 0.8349 MB / 484.7 MB, free: 95.89 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008704/0.2967, allocations: 1.342 MB / 486 MB, free: 94.54 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.319e-05/0.2967, allocations: 305.1 kB / 486.3 MB, free: 94.24 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001882/0.2986, allocations: 2.313 MB / 488.6 MB, free: 91.93 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002589/0.3012, allocations: 6.439 MB / 495.1 MB, free: 83.45 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004994/0.3062, allocations: 9.397 MB / 0.4926 GB, free: 72.02 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.401e-05/0.3062, allocations: 44 kB / 0.4927 GB, free: 71.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01026/0.3165, allocations: 10.15 MB / 0.5026 GB, free: 61.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.504e-05/0.3165, allocations: 71.94 kB / 0.5027 GB, free: 61.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005183/0.3217, allocations: 3.855 MB / 0.5064 GB, free: 57.86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004578/0.3263, allocations: 2.172 MB / 0.5085 GB, free: 55.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002195/0.3285, allocations: 1.587 MB / 0.5101 GB, free: 54.08 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004435/0.3329, allocations: 6.357 MB / 0.5163 GB, free: 47.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003001/0.3359, allocations: 0.5383 MB / 0.5168 GB, free: 46.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002591/0.3362, allocations: 412.8 kB / 0.5172 GB, free: 46.55 MB / 410.7 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.002138/0.3383, allocations: 2.206 MB / 0.5194 GB, free: 44.34 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004405/0.3387, allocations: 401.3 kB / 0.5198 GB, free: 43.95 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003377/0.3421, allocations: 3.286 MB / 0.523 GB, free: 40.64 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002777/0.3449, allocations: 2.734 MB / 0.5256 GB, free: 37.89 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.3449, allocations: 4 kB / 0.5256 GB, free: 37.88 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.302e-05/0.3449, allocations: 14.86 kB / 0.5257 GB, free: 37.87 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01013/0.355, allocations: 9.869 MB / 0.5353 GB, free: 27.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.126e-05/0.355, allocations: 16.06 kB / 0.5353 GB, free: 27.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007364/0.3558, allocations: 363.5 kB / 0.5357 GB, free: 27.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001417/0.3572, allocations: 0.9904 MB / 0.5366 GB, free: 26.39 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.637e-05/0.3573, allocations: 55.98 kB / 0.5367 GB, free: 26.33 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00242/0.3597, allocations: 4.684 MB / 0.5413 GB, free: 21.43 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0003847/0.3601, allocations: 1.453 MB / 0.5427 GB, free: 19.86 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004746/0.3648, allocations: 5.902 MB / 0.5484 GB, free: 13.75 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006685/0.3655, allocations: 425.1 kB / 0.5488 GB, free: 13.33 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002364/0.3657, allocations: 63.97 kB / 0.5489 GB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001015/0.3668, allocations: 203.7 kB / 0.5491 GB, free: 13.07 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001844/0.3669, allocations: 184.3 kB / 0.5493 GB, free: 12.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.773e-05/0.367, allocations: 71.98 kB / 0.5493 GB, free: 12.82 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00233/0.3693, allocations: 2.848 MB / 0.5521 GB, free: 9.961 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.3693, allocations: 4 kB / 0.5521 GB, free: 9.957 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003247/0.3726, allocations: 1.3 MB / 0.5534 GB, free: 8.66 MB / 410.7 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.005028/0.3776, allocations: 6.617 MB / 0.5599 GB, free: 1.828 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006038/0.3837, allocations: 5.667 MB / 0.5654 GB, free: 12.16 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.3837, allocations: 4 kB / 0.5654 GB, free: 12.16 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002154/0.3858, allocations: 1.953 MB / 0.5673 GB, free: 10.18 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001787/0.3876, allocations: 0.5066 MB / 0.5678 GB, free: 9.672 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1927/0.5803, allocations: 53.45 MB / 0.62 GB, free: 140.2 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001907/0.5822, allocations: 2.922 MB / 0.6228 GB, free: 139.5 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002422/0.5847, allocations: 2.041 MB / 0.6248 GB, free: 139 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001285/0.5859, allocations: 2.109 MB / 0.6269 GB, free: 136.9 MB / 458.7 MB Notification: Performance of SimCode: time 9.42e-07/0.5859, allocations: 0 / 0.6269 GB, free: 136.9 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07399/0.6599, allocations: 79 MB / 0.704 GB, free: 58.87 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.93, allocations: 3.859 kB / 0.704 GB, free: 58.86 MB / 458.7 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.719331518746912] 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'] 12.065149975009263 12.073271099 12.0335001 Calling exit ...