Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.Loops.PlanarFourbar,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001439/0.001439, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00161/0.00161, allocations: 200.7 kB / 18.73 MB, free: 4.312 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.5/1.5, allocations: 227.7 MB / 247.2 MB, free: 10.18 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.002109/0.002109, allocations: 67.89 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.28, allocations: 50.55 MB / 409.1 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02004/0.3001, allocations: 18.04 MB / 427.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01475/0.3149, allocations: 6.037 MB / 433.1 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003951/0.3189, allocations: 139.6 kB / 433.3 MB, free: 9.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01215/0.3311, allocations: 6.25 MB / 439.5 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007867/0.339, allocations: 2.805 MB / 442.3 MB, free: 96 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005411/0.3445, allocations: 2.277 MB / 444.6 MB, free: 13.81 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01511/0.3596, allocations: 9.688 MB / 454.3 MB, free: 4.109 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01218/0.3718, allocations: 8.415 MB / 462.7 MB, free: 11.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005906/0.3778, allocations: 3.175 MB / 465.9 MB, free: 8.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006968/0.3848, allocations: 4.156 MB / 470 MB, free: 4.242 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002535/0.3874, allocations: 0.7188 MB / 470.8 MB, free: 3.523 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005228/0.3926, allocations: 1.888 MB / 472.7 MB, free: 1.633 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006115/0.3988, allocations: 3.768 MB / 476.4 MB, free: 13.86 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008289/0.4071, allocations: 4.395 MB / 480.8 MB, free: 9.438 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01962/0.4268, allocations: 13.88 MB / 494.7 MB, free: 11.51 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.418e-06/0.4268, allocations: 0 / 494.7 MB, free: 11.51 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.4268, allocations: 0 / 494.7 MB, free: 11.51 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005389/0.4274, allocations: 8 kB / 494.7 MB, free: 11.5 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.03235/0.4598, allocations: 9.644 MB / 0.4925 GB, free: 1.758 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.192e-05/0.4598, allocations: 12.03 kB / 0.4925 GB, free: 1.746 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003969/0.4638, allocations: 1.131 MB / 0.4936 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3441/0.808, allocations: 23.28 MB / 0.5164 GB, free: 9.293 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02099/0.829, allocations: 7.571 MB / 0.5238 GB, free: 1.648 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005084/0.8296, allocations: 435.7 kB / 0.5242 GB, free: 1.223 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002731/0.8323, allocations: 0.5933 MB / 0.5248 GB, free: 0.6289 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4484/1.281, allocations: 16.85 MB / 0.5412 GB, free: 114.8 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000488/1.281, allocations: 78.61 kB / 0.5413 GB, free: 114.8 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001846/1.283, allocations: 270.5 kB / 0.5416 GB, free: 114.8 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005419/1.289, allocations: 2.661 MB / 0.5442 GB, free: 114.5 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02748/1.316, allocations: 14.4 MB / 0.5582 GB, free: 108.8 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06981/1.386, allocations: 63.79 MB / 0.6205 GB, free: 45.07 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02091/1.407, allocations: 8.644 MB / 0.6289 GB, free: 36.27 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005058/1.412, allocations: 4.917 MB / 0.6337 GB, free: 31.35 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02394/1.436, allocations: 18.14 MB / 0.6515 GB, free: 13.12 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.717e-05/1.436, allocations: 56.56 kB / 0.6515 GB, free: 13.06 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 7.484e-06/1.436, allocations: 0 / 0.6515 GB, free: 13.06 MB / 462.1 MB Notification: Performance of matching and sorting (n=374): time 0.2798/1.716, allocations: 73.15 MB / 0.7229 GB, free: 4.238 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002966/1.716, allocations: 376.6 kB / 0.7233 GB, free: 3.789 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01536/1.732, allocations: 6.427 MB / 0.7296 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001197/1.733, allocations: 81.7 kB / 0.7297 GB, free: 13.38 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.005637/1.739, allocations: 5.019 MB / 0.7346 GB, free: 8.383 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002912/1.742, allocations: 1.438 MB / 0.736 GB, free: 6.934 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00709/1.749, allocations: 1.845 MB / 0.7378 GB, free: 5.074 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001725/1.749, allocations: 309.1 kB / 0.7381 GB, free: 4.77 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2492/1.998, allocations: 5.653 MB / 0.7436 GB, free: 183.1 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0113/2.009, allocations: 10.62 MB / 0.7539 GB, free: 175.2 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.019/2.028, allocations: 17.36 MB / 0.7709 GB, free: 163.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001989/2.029, allocations: 50.16 kB / 0.771 GB, free: 163.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.04286/2.072, allocations: 21.99 MB / 0.7924 GB, free: 151.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002631/2.072, allocations: 86.91 kB / 0.7925 GB, free: 151.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003416/2.072, allocations: 176.2 kB / 0.7927 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02069/2.093, allocations: 6.849 MB / 0.7994 GB, free: 144.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006999/2.1, allocations: 2.074 MB / 0.8014 GB, free: 142.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04472/2.145, allocations: 36.41 MB / 0.8369 GB, free: 105.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009267/2.154, allocations: 0.7193 MB / 0.8376 GB, free: 105.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001857/2.156, allocations: 0.5078 MB / 0.8381 GB, free: 104.6 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 779 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1015): * Single equations (assignments): 1008 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,68,84.0%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.007323/2.163, allocations: 3.42 MB / 0.8415 GB, free: 101.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002004/2.165, allocations: 0.6126 MB / 0.8421 GB, free: 101 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03351/2.199, allocations: 16.1 MB / 0.8578 GB, free: 84.81 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001044/2.199, allocations: 51.75 kB / 0.8579 GB, free: 84.76 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-05/2.199, allocations: 16 kB / 0.8579 GB, free: 84.75 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001141/2.199, allocations: 24.39 kB / 0.8579 GB, free: 84.73 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05665/2.256, allocations: 31.3 MB / 0.8885 GB, free: 53.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.027e-05/2.256, allocations: 7.938 kB / 0.8885 GB, free: 53.13 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003349/2.259, allocations: 0.6082 MB / 0.8891 GB, free: 52.52 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01912/2.279, allocations: 6.438 MB / 0.8953 GB, free: 46.07 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001155/2.28, allocations: 60 kB / 0.8954 GB, free: 46.02 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04279/2.323, allocations: 34.63 MB / 0.9292 GB, free: 11.05 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.503e-06/2.323, allocations: 4 kB / 0.9292 GB, free: 11.05 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3025/2.625, allocations: 23.58 MB / 0.9523 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002446/2.628, allocations: 0.6534 MB / 0.9529 GB, free: 164.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002768/2.63, allocations: 64.44 kB / 0.953 GB, free: 164.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005693/2.636, allocations: 430.7 kB / 0.9534 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001513/2.638, allocations: 246.8 kB / 0.9536 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004753/2.638, allocations: 93.5 kB / 0.9537 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006964/2.645, allocations: 4.112 MB / 0.9577 GB, free: 163.2 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.3e-07/2.645, allocations: 3.391 kB / 0.9577 GB, free: 163.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009728/2.655, allocations: 2.19 MB / 0.9599 GB, free: 163 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.w) * 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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,62,84.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.03661/2.692, allocations: 24.37 MB / 0.9836 GB, free: 151.4 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01895/2.711, allocations: 14.3 MB / 0.9976 GB, free: 137.8 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.188e-06/2.711, allocations: 0 / 0.9976 GB, free: 137.8 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.009708/2.72, allocations: 6.568 MB / 1.004 GB, free: 131.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007155/2.727, allocations: 0.9453 MB / 1.005 GB, free: 130.4 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1627/2.89, allocations: 102.9 MB / 1.105 GB, free: 19.77 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00857/2.899, allocations: 5.271 MB / 1.111 GB, free: 14.46 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007166/2.906, allocations: 3.029 MB / 1.114 GB, free: 11.42 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005351/2.911, allocations: 3.389 MB / 1.117 GB, free: 8.035 MB / 0.5294 GB Notification: Performance of SimCode: time 1.112e-06/2.911, allocations: 0 / 1.117 GB, free: 8.035 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4722/3.384, allocations: 166.7 MB / 1.28 GB, free: 63.72 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.54/30.92, allocations: 11.14 kB / 1.28 GB, free: 63.71 MB / 0.545 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1)