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.00168/0.001681, allocations: 118.8 kB / 17.79 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.001917/0.001917, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 227.4 MB / 247 MB, free: 10.44 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.2292/0.2292, allocations: 46.11 MB / 344.3 MB, free: 11.45 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.002542/0.002542, allocations: 83.88 kB / 480.9 MB, free: 4.496 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3468/0.3494, allocations: 62.44 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.02123/0.3706, allocations: 18.58 MB / 0.5488 GB, free: 14.76 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01393/0.3846, allocations: 5.316 MB / 0.554 GB, free: 9.734 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004566/0.3892, allocations: 115.7 kB / 0.5541 GB, free: 9.621 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009747/0.3991, allocations: 4.77 MB / 0.5587 GB, free: 4.836 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009078/0.4082, allocations: 3.038 MB / 0.5617 GB, free: 1.789 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002789/0.411, allocations: 0.9048 MB / 0.5626 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01465/0.4257, allocations: 8.422 MB / 0.5708 GB, free: 8.438 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00945/0.4352, allocations: 6.415 MB / 0.5771 GB, free: 1.953 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006122/0.4413, allocations: 2.924 MB / 0.5799 GB, free: 15.02 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007124/0.4485, allocations: 3.945 MB / 0.5838 GB, free: 11.06 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002296/0.4508, allocations: 0.6211 MB / 0.5844 GB, free: 10.44 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004341/0.4552, allocations: 1.452 MB / 0.5858 GB, free: 8.988 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004558/0.4597, allocations: 3.627 MB / 0.5893 GB, free: 5.352 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007309/0.4671, allocations: 4.276 MB / 0.5935 GB, free: 1.051 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01878/0.4859, allocations: 13.63 MB / 0.6068 GB, free: 3.359 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.327e-06/0.4859, allocations: 3.984 kB / 0.6068 GB, free: 3.355 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.4859, allocations: 0 / 0.6068 GB, free: 3.355 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005024/0.4864, allocations: 3.938 kB / 0.6068 GB, free: 3.352 MB / 462.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.02625/0.5127, allocations: 9.159 MB / 0.6158 GB, free: 10.09 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.683e-05/0.5128, allocations: 8.031 kB / 0.6158 GB, free: 10.08 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004181/0.517, allocations: 1.394 MB / 0.6171 GB, free: 8.676 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05139/0.5684, allocations: 8.962 MB / 0.6259 GB, free: 15.7 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01325/0.5817, allocations: 5.331 MB / 0.6311 GB, free: 10.28 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004424/0.5822, allocations: 447.1 kB / 0.6315 GB, free: 9.844 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002478/0.5847, allocations: 0.5738 MB / 0.6321 GB, free: 9.27 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.038/0.6227, allocations: 19.7 MB / 0.6513 GB, free: 4.535 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002506/0.623, allocations: 71.41 kB / 0.6514 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001554/0.6245, allocations: 275.7 kB / 0.6517 GB, free: 4.195 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007456/0.632, allocations: 4.168 MB / 0.6557 GB, free: 20 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03849/0.6705, allocations: 17.39 MB / 0.6727 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3611/1.032, allocations: 72.75 MB / 0.7437 GB, free: 116.8 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01549/1.047, allocations: 7.808 MB / 0.7514 GB, free: 115 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005762/1.053, allocations: 5.055 MB / 0.7563 GB, free: 112.9 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002355/1.053, allocations: 66.11 kB / 0.7564 GB, free: 112.9 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.537e-05/1.053, allocations: 75.88 kB / 0.7564 GB, free: 112.8 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=429): time 7.323e-06/1.053, allocations: 0 / 0.7564 GB, free: 112.8 MB / 0.5606 GB Notification: Performance of matching and sorting (n=476): time 0.0852/1.139, allocations: 40.67 MB / 0.7962 GB, free: 83.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.133e-05/1.139, allocations: 230.8 kB / 0.7964 GB, free: 83.63 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007243/1.146, allocations: 6.405 MB / 0.8026 GB, free: 77.22 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008812/1.147, allocations: 93.7 kB / 0.8027 GB, free: 77.12 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002424/1.149, allocations: 5.754 MB / 0.8083 GB, free: 71.4 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001706/1.151, allocations: 1.808 MB / 0.8101 GB, free: 69.61 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002704/1.154, allocations: 2.191 MB / 0.8122 GB, free: 67.42 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.299e-05/1.154, allocations: 309.1 kB / 0.8125 GB, free: 67.12 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005515/1.159, allocations: 4.804 MB / 0.8172 GB, free: 62.31 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009517/1.169, allocations: 10.84 MB / 0.8278 GB, free: 48.63 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01745/1.186, allocations: 17.04 MB / 0.8445 GB, free: 28.67 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001838/1.187, allocations: 60 kB / 0.8445 GB, free: 28.61 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1443) (initialization): time 0.02948/1.216, allocations: 16.89 MB / 0.861 GB, free: 11.69 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002765/1.216, allocations: 96.19 kB / 0.8611 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003147/1.217, allocations: 212 kB / 0.8613 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004677/1.221, allocations: 1.83 MB / 0.8631 GB, free: 9.551 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008015/1.229, allocations: 2.499 MB / 0.8655 GB, free: 7.047 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01871/1.248, allocations: 15.86 MB / 0.881 GB, free: 6.648 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008671/1.257, allocations: 0.6359 MB / 0.8816 GB, free: 6.016 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002976/1.26, allocations: 0.6094 MB / 0.8822 GB, free: 5.406 MB / 0.5762 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.01041/1.27, allocations: 4.061 MB / 0.8862 GB, free: 1.332 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002234/1.273, allocations: 0.6363 MB / 0.8868 GB, free: 0.6914 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02209/1.295, allocations: 9.504 MB / 0.8961 GB, free: 7.371 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000165/1.295, allocations: 95.81 kB / 0.8962 GB, free: 7.281 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.998e-05/1.295, allocations: 12 kB / 0.8962 GB, free: 7.27 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.916e-05/1.295, allocations: 19.92 kB / 0.8962 GB, free: 7.25 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04934/1.344, allocations: 21.11 MB / 0.9168 GB, free: 1.879 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.028e-05/1.344, allocations: 16.25 kB / 0.9169 GB, free: 1.863 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003981/1.348, allocations: 0.7371 MB / 0.9176 GB, free: 1.125 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004903/1.353, allocations: 1.504 MB / 0.919 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008718/1.354, allocations: 87.89 kB / 0.9191 GB, free: 15.53 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02091/1.375, allocations: 14.82 MB / 0.9336 GB, free: 148 kB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.741e-05/1.375, allocations: 23.86 kB / 0.9336 GB, free: 124 kB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02716/1.402, allocations: 15.22 MB / 0.9485 GB, free: 0.6641 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002024/1.404, allocations: 0.653 MB / 0.9491 GB, free: 15.98 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002006/1.407, allocations: 83.94 kB / 0.9492 GB, free: 15.91 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004242/1.411, allocations: 295.6 kB / 0.9495 GB, free: 15.62 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001344/1.412, allocations: 285.9 kB / 0.9498 GB, free: 15.34 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007147/1.413, allocations: 128 kB / 0.9499 GB, free: 15.21 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.008662/1.422, allocations: 3.996 MB / 0.9538 GB, free: 11.22 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.525e-06/1.422, allocations: 0 / 0.9538 GB, free: 11.22 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.01067/1.432, allocations: 1.949 MB / 0.9557 GB, free: 9.273 MB / 0.6544 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.3136/1.746, allocations: 15.93 MB / 0.9712 GB, free: 229 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.01725/1.763, allocations: 11.91 MB / 0.9829 GB, free: 224.7 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.095e-05/1.763, allocations: 0 / 0.9829 GB, free: 224.7 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.006276/1.77, allocations: 4.786 MB / 0.9876 GB, free: 222.7 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004647/1.774, allocations: 0.8226 MB / 0.9884 GB, free: 222.3 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1224/1.897, allocations: 93.79 MB / 1.08 GB, free: 132.7 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008603/1.905, allocations: 5.914 MB / 1.086 GB, free: 126.7 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.007686/1.913, allocations: 4.003 MB / 1.09 GB, free: 122.7 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004938/1.918, allocations: 3.916 MB / 1.093 GB, free: 118.8 MB / 0.6544 GB Notification: Performance of SimCode: time 1.933e-06/1.918, allocations: 0 / 1.093 GB, free: 118.8 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4391/2.357, allocations: 131 MB / 1.221 GB, free: 222.7 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 46.97/49.33, allocations: 2.438 kB / 1.221 GB, free: 222.7 MB / 0.6544 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)