Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001486/0.001486, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00159/0.00159, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.455/1.455, allocations: 227.7 MB / 247.2 MB, free: 10.13 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001969/0.001969, allocations: 59.91 kB / 358.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.2604, allocations: 50.54 MB / 409.1 MB, free: 1.336 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.01284/0.2733, allocations: 10.71 MB / 419.8 MB, free: 6.578 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008611/0.2819, allocations: 3.939 MB / 423.7 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001809/0.2838, allocations: 67.75 kB / 423.8 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005406/0.2892, allocations: 2.57 MB / 426.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004627/0.2939, allocations: 1.727 MB / 428.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00158/0.2955, allocations: 0.6746 MB / 428.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005248/0.3008, allocations: 3.716 MB / 432.5 MB, free: 9.848 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004286/0.3051, allocations: 3.557 MB / 436 MB, free: 6.227 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002318/0.3074, allocations: 1.476 MB / 437.5 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002839/0.3103, allocations: 1.947 MB / 439.5 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007978/0.3111, allocations: 316 kB / 439.8 MB, free: 2.484 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002317/0.3134, allocations: 1.143 MB / 440.9 MB, free: 1.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001971/0.3154, allocations: 1.796 MB / 442.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002569/0.318, allocations: 2.128 MB / 444.8 MB, free: 13.4 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008087/0.3261, allocations: 6.676 MB / 451.5 MB, free: 6.695 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.3261, allocations: 3.984 kB / 451.5 MB, free: 6.691 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3261, allocations: 3.938 kB / 451.5 MB, free: 6.688 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001435/0.3263, allocations: 0 / 451.5 MB, free: 6.688 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1516 * Number of variables: 1516 Notification: Performance of Generate backend data structure: time 0.009426/0.3357, allocations: 4.663 MB / 456.2 MB, free: 1.949 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.3358, allocations: 12.03 kB / 456.2 MB, free: 1.938 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001253/0.337, allocations: 0.7197 MB / 456.9 MB, free: 1.207 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007429/0.3445, allocations: 1.975 MB / 458.9 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00451/0.349, allocations: 2.224 MB / 461.1 MB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002318/0.3493, allocations: 246.2 kB / 461.4 MB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001012/0.3503, allocations: 395.7 kB / 461.7 MB, free: 12.33 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01912/0.3694, allocations: 10.11 MB / 471.9 MB, free: 1.492 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001101/0.3696, allocations: 35.69 kB / 471.9 MB, free: 1.457 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005699/0.3702, allocations: 163.8 kB / 472 MB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003041/0.3732, allocations: 1.853 MB / 473.9 MB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01813/0.3914, allocations: 8.367 MB / 482.3 MB, free: 7.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05106/0.4425, allocations: 39.27 MB / 0.5093 GB, free: 14.67 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01119/0.4537, allocations: 4.047 MB / 0.5133 GB, free: 10.48 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002265/0.456, allocations: 1.427 MB / 0.5147 GB, free: 9.035 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0119/0.468, allocations: 7.703 MB / 0.5222 GB, free: 0.8281 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.565e-05/0.468, allocations: 47.56 kB / 0.5222 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of pre-optimization done (n=152): time 4.479e-06/0.4681, allocations: 0 / 0.5222 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.03401/0.5021, allocations: 12.71 MB / 0.5346 GB, free: 3.883 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001527/0.5036, allocations: 1.684 MB / 0.5363 GB, free: 2.02 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2211/0.7248, allocations: 3.821 MB / 0.54 GB, free: 124.3 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003296/0.7252, allocations: 50.77 kB / 0.5401 GB, free: 124.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002103/0.7273, allocations: 3.238 MB / 0.5432 GB, free: 122.6 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008031/0.7281, allocations: 0.6823 MB / 0.5439 GB, free: 122.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001634/0.7297, allocations: 1.262 MB / 0.5451 GB, free: 121.6 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.089e-05/0.7298, allocations: 301.1 kB / 0.5454 GB, free: 121.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002502/0.7323, allocations: 2.025 MB / 0.5474 GB, free: 120.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004579/0.7369, allocations: 5.95 MB / 0.5532 GB, free: 114.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007805/0.7447, allocations: 8.597 MB / 0.5616 GB, free: 107.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001301/0.7449, allocations: 43.22 kB / 0.5616 GB, free: 107.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.01652/0.7615, allocations: 8.832 MB / 0.5703 GB, free: 101.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.84e-05/0.7616, allocations: 71.88 kB / 0.5703 GB, free: 101 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005484/0.7671, allocations: 2.849 MB / 0.5731 GB, free: 98.45 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004691/0.7718, allocations: 1.555 MB / 0.5746 GB, free: 96.89 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003789/0.7756, allocations: 1.361 MB / 0.576 GB, free: 95.52 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0102/0.7859, allocations: 9.638 MB / 0.5854 GB, free: 85.49 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005032/0.7909, allocations: 403.4 kB / 0.5858 GB, free: 85.09 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001087/0.7921, allocations: 388 kB / 0.5861 GB, free: 84.71 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 637 * Number of states: 0 () * Number of discrete variables: 39 (spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[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 (738): * Single equations (assignments): 728 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * 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): 1 system {(6,29)} Notification: Performance of prepare postOptimizeDAE: time 0.004025/0.7961, allocations: 2.013 MB / 0.5881 GB, free: 82.69 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009401/0.7971, allocations: 341.7 kB / 0.5884 GB, free: 82.36 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001174/0.7982, allocations: 428.5 kB / 0.5888 GB, free: 81.93 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005534/0.8038, allocations: 2.738 MB / 0.5915 GB, free: 79.16 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.032e-05/0.8039, allocations: 7.938 kB / 0.5915 GB, free: 79.16 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.686e-05/0.8039, allocations: 7.969 kB / 0.5915 GB, free: 79.15 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01683/0.8207, allocations: 8.612 MB / 0.5999 GB, free: 70.48 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.896e-05/0.8208, allocations: 0 / 0.5999 GB, free: 70.48 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009206/0.8217, allocations: 191.7 kB / 0.6001 GB, free: 70.29 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004302/0.826, allocations: 1.452 MB / 0.6015 GB, free: 68.82 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002445/0.8263, allocations: 35.98 kB / 0.6016 GB, free: 68.79 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01077/0.8371, allocations: 9.827 MB / 0.6112 GB, free: 58.55 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007555/0.8379, allocations: 1.539 MB / 0.6127 GB, free: 56.86 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008503/0.8464, allocations: 5.388 MB / 0.6179 GB, free: 51.44 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009612/0.8474, allocations: 394.6 kB / 0.6183 GB, free: 51.04 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000807/0.8483, allocations: 35.92 kB / 0.6183 GB, free: 51 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001828/0.8501, allocations: 127.8 kB / 0.6185 GB, free: 50.88 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004222/0.8506, allocations: 104.8 kB / 0.6186 GB, free: 50.77 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001434/0.8507, allocations: 43.89 kB / 0.6186 GB, free: 50.73 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003835/0.8546, allocations: 2.341 MB / 0.6209 GB, free: 48.41 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.8546, allocations: 0 / 0.6209 GB, free: 48.41 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005738/0.8603, allocations: 1.047 MB / 0.6219 GB, free: 47.36 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($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]) * 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 (91): * Single equations (assignments): 83 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * 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): 1 system {(6,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009343/0.8697, allocations: 6.04 MB / 0.6278 GB, free: 41.28 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009061/0.8788, allocations: 5.742 MB / 0.6334 GB, free: 35.48 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-05/0.8789, allocations: 0.5625 kB / 0.6334 GB, free: 35.48 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004122/0.883, allocations: 2.332 MB / 0.6357 GB, free: 33.07 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003191/0.8862, allocations: 399.4 kB / 0.6361 GB, free: 32.68 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07535/0.9616, allocations: 45.51 MB / 0.6805 GB, free: 13 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005559/0.9672, allocations: 3.134 MB / 0.6836 GB, free: 9.832 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004607/0.9719, allocations: 1.8 MB / 0.6853 GB, free: 8.023 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003218/0.9751, allocations: 1.761 MB / 0.6871 GB, free: 6.262 MB / 494.1 MB Notification: Performance of SimCode: time 1.593e-06/0.9751, allocations: 4 kB / 0.6871 GB, free: 6.258 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3493/1.324, allocations: 69.69 MB / 0.7551 GB, free: 187.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.36/23.68, allocations: 3.75 kB / 0.7551 GB, free: 187.2 MB / 0.5294 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1)