Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.GearConstraint.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 trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001209/0.001209, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001309/0.001309, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.56/1.56, allocations: 227.4 MB / 246.8 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2361/0.2361, allocations: 46.12 MB / 344.2 MB, free: 11.55 MB / 286.1 MB Warning: Requested package Modelica 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.003452/0.003452, allocations: 84.06 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1551/0.1586, allocations: 62.45 MB / 480.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.02179/0.1804, allocations: 18.58 MB / 498.8 MB, free: 2.465 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01375/0.1942, allocations: 5.318 MB / 0.4923 GB, free: 13.13 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00428/0.1985, allocations: 115.7 kB / 0.4924 GB, free: 13.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009962/0.2086, allocations: 4.77 MB / 0.4971 GB, free: 8.234 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009836/0.2185, allocations: 3.039 MB / 0.5 GB, free: 5.184 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00299/0.2215, allocations: 0.9009 MB / 0.5009 GB, free: 4.281 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2981/0.5196, allocations: 8.401 MB / 0.5091 GB, free: 12.76 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01082/0.5305, allocations: 6.416 MB / 0.5154 GB, free: 12.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007684/0.5383, allocations: 2.926 MB / 0.5182 GB, free: 11.76 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009273/0.5476, allocations: 3.95 MB / 0.5221 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004142/0.5518, allocations: 0.6205 MB / 0.5227 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006122/0.5579, allocations: 1.445 MB / 0.5241 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006204/0.5642, allocations: 3.615 MB / 0.5276 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0097/0.5739, allocations: 4.285 MB / 0.5318 GB, free: 7.102 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0165/0.5905, allocations: 13.09 MB / 0.5446 GB, free: 15.65 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.5905, allocations: 0 / 0.5446 GB, free: 15.65 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.5905, allocations: 3.094 kB / 0.5446 GB, free: 15.65 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006415/0.5912, allocations: 0 / 0.5446 GB, free: 15.65 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2997 * Number of variables: 2997 Notification: Performance of Generate backend data structure: time 0.03083/0.622, allocations: 8.912 MB / 0.5533 GB, free: 7.113 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.718e-05/0.6221, allocations: 8.031 kB / 0.5533 GB, free: 7.105 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005873/0.628, allocations: 1.396 MB / 0.5547 GB, free: 5.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05091/0.6789, allocations: 8.911 MB / 0.5634 GB, free: 12.84 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01465/0.6936, allocations: 5.242 MB / 0.5685 GB, free: 7.848 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005758/0.6942, allocations: 440.2 kB / 0.5689 GB, free: 7.492 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003612/0.6979, allocations: 0.5736 MB / 0.5695 GB, free: 6.992 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0492/0.7471, allocations: 19.72 MB / 0.5887 GB, free: 2.594 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005619/0.7478, allocations: 74.92 kB / 0.5888 GB, free: 2.551 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002975/0.7508, allocations: 270.3 kB / 0.5891 GB, free: 2.359 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0079/0.7587, allocations: 4.174 MB / 0.5931 GB, free: 14.24 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03997/0.7987, allocations: 17.39 MB / 0.6101 GB, free: 13.11 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1295/0.9282, allocations: 72.99 MB / 0.6814 GB, free: 3.07 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01883/0.9471, allocations: 7.804 MB / 0.689 GB, free: 11.03 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008288/0.9554, allocations: 5.055 MB / 0.694 GB, free: 5.957 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003853/0.9558, allocations: 66.53 kB / 0.694 GB, free: 5.906 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.295e-05/0.9559, allocations: 69.09 kB / 0.6941 GB, free: 5.828 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=429): time 8.215e-06/0.956, allocations: 0 / 0.6941 GB, free: 5.828 MB / 0.5294 GB Notification: Performance of matching and sorting (n=476): time 0.3514/1.307, allocations: 40.23 MB / 0.7334 GB, free: 176.4 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/1.307, allocations: 227 kB / 0.7336 GB, free: 176.2 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01404/1.322, allocations: 6.395 MB / 0.7398 GB, free: 173.9 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001124/1.323, allocations: 89.14 kB / 0.7399 GB, free: 173.8 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004226/1.327, allocations: 5.532 MB / 0.7453 GB, free: 169.6 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002879/1.33, allocations: 1.736 MB / 0.747 GB, free: 168.3 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004367/1.334, allocations: 2.168 MB / 0.7491 GB, free: 167.3 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.386e-05/1.334, allocations: 311.2 kB / 0.7494 GB, free: 167 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007288/1.342, allocations: 4.805 MB / 0.7541 GB, free: 165.4 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01136/1.353, allocations: 10.84 MB / 0.7647 GB, free: 155.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01906/1.372, allocations: 17.04 MB / 0.7814 GB, free: 142.9 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002718/1.372, allocations: 59.72 kB / 0.7814 GB, free: 142.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=1443) (initialization): time 0.03243/1.405, allocations: 16.85 MB / 0.7979 GB, free: 128.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003602/1.405, allocations: 96.06 kB / 0.798 GB, free: 128 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005085/1.406, allocations: 212.7 kB / 0.7982 GB, free: 127.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004934/1.411, allocations: 1.825 MB / 0.8 GB, free: 126.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008769/1.42, allocations: 2.51 MB / 0.8024 GB, free: 124.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01492/1.435, allocations: 15.86 MB / 0.8179 GB, free: 107.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008999/1.444, allocations: 0.6396 MB / 0.8185 GB, free: 107.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002244/1.446, allocations: 0.6132 MB / 0.8191 GB, free: 106.5 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 955 * Number of states: 0 () * Number of discrete variables: 53 (torque1.torqueArrow.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.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],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1319): * Single equations (assignments): 1306 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,42,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008284/1.454, allocations: 4.068 MB / 0.8231 GB, free: 102.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002033/1.456, allocations: 0.6015 MB / 0.8237 GB, free: 101.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01621/1.472, allocations: 9.451 MB / 0.8329 GB, free: 92.3 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001091/1.473, allocations: 95.81 kB / 0.833 GB, free: 92.21 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-05/1.473, allocations: 8 kB / 0.833 GB, free: 92.2 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.727e-05/1.473, allocations: 27.86 kB / 0.833 GB, free: 92.17 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04469/1.517, allocations: 21.19 MB / 0.8537 GB, free: 70.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.93e-05/1.518, allocations: 12 kB / 0.8537 GB, free: 70.79 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004064/1.522, allocations: 0.738 MB / 0.8545 GB, free: 70.05 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004243/1.526, allocations: 1.513 MB / 0.8559 GB, free: 68.53 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001332/1.527, allocations: 89.7 kB / 0.856 GB, free: 68.45 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01439/1.542, allocations: 14.82 MB / 0.8705 GB, free: 53.08 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.125e-05/1.542, allocations: 19.88 kB / 0.8705 GB, free: 53.06 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02203/1.564, allocations: 15.18 MB / 0.8853 GB, free: 37.64 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001781/1.566, allocations: 0.6298 MB / 0.8859 GB, free: 36.99 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002381/1.568, allocations: 77.64 kB / 0.886 GB, free: 36.91 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004283/1.572, allocations: 292.6 kB / 0.8863 GB, free: 36.63 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001292/1.574, allocations: 291.6 kB / 0.8866 GB, free: 36.34 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008556/1.575, allocations: 120 kB / 0.8867 GB, free: 36.23 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.008373/1.583, allocations: 3.992 MB / 0.8906 GB, free: 32.24 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.683e-06/1.583, allocations: 0 / 0.8906 GB, free: 32.24 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01399/1.597, allocations: 1.95 MB / 0.8925 GB, free: 30.3 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.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 (359): * Single equations (assignments): 346 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,39,100.0%), (1,2,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02224/1.619, allocations: 15.91 MB / 0.908 GB, free: 14.15 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2727/1.892, allocations: 21.49 MB / 0.929 GB, free: 179.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.701e-05/1.892, allocations: 4.75 kB / 0.929 GB, free: 179.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007329/1.899, allocations: 4.783 MB / 0.9337 GB, free: 177 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005266/1.905, allocations: 0.8092 MB / 0.9345 GB, free: 176.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1517/2.056, allocations: 111.4 MB / 1.043 GB, free: 67.71 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01256/2.069, allocations: 5.913 MB / 1.049 GB, free: 61.76 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.01069/2.08, allocations: 4 MB / 1.053 GB, free: 57.75 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006717/2.086, allocations: 3.92 MB / 1.057 GB, free: 53.83 MB / 0.545 GB Notification: Performance of SimCode: time 2.364e-06/2.086, allocations: 4 kB / 1.057 GB, free: 53.83 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5202/2.607, allocations: 136.8 MB / 1.19 GB, free: 151 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.91/16.52, allocations: 0 / 1.19 GB, free: 151 MB / 0.5606 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.GearConstraint.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.GearConstraint_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_GearConstraint.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1)