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.001437/0.001436, 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.001535/0.001535, 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.46/1.46, allocations: 227.4 MB / 247 MB, free: 10.45 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.2388/0.2388, allocations: 46.12 MB / 344.4 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.00329/0.00329, allocations: 79.86 kB / 480.9 MB, free: 4.508 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3513/0.3546, allocations: 62.46 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.02164/0.3763, allocations: 18.57 MB / 0.5488 GB, free: 14.78 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0128/0.3891, allocations: 5.311 MB / 0.5539 GB, free: 9.766 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003908/0.3931, allocations: 123.6 kB / 0.5541 GB, free: 9.645 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009798/0.4029, allocations: 4.77 MB / 0.5587 GB, free: 4.859 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009539/0.4125, allocations: 3.035 MB / 0.5617 GB, free: 1.812 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003283/0.4158, allocations: 0.9126 MB / 0.5626 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01413/0.43, allocations: 8.417 MB / 0.5708 GB, free: 8.465 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009011/0.4391, allocations: 6.417 MB / 0.5771 GB, free: 1.973 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005339/0.4444, allocations: 2.92 MB / 0.5799 GB, free: 15.04 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006672/0.4511, allocations: 3.949 MB / 0.5838 GB, free: 11.08 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002091/0.4533, allocations: 0.6211 MB / 0.5844 GB, free: 10.46 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003982/0.4573, allocations: 1.444 MB / 0.5858 GB, free: 9.016 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004972/0.4623, allocations: 3.623 MB / 0.5893 GB, free: 5.383 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006778/0.4691, allocations: 4.287 MB / 0.5935 GB, free: 1.07 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01993/0.489, allocations: 13.63 MB / 0.6068 GB, free: 3.383 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.263e-05/0.4891, allocations: 4 kB / 0.6068 GB, free: 3.379 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.4891, allocations: 0 / 0.6068 GB, free: 3.379 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005911/0.4897, allocations: 0 / 0.6068 GB, free: 3.379 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.02344/0.5132, allocations: 9.161 MB / 0.6158 GB, free: 10.11 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.011e-05/0.5132, allocations: 15.97 kB / 0.6158 GB, free: 10.1 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003405/0.5166, allocations: 1.39 MB / 0.6171 GB, free: 8.695 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05095/0.5676, allocations: 8.965 MB / 0.6259 GB, free: 15.71 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01258/0.5802, allocations: 5.323 MB / 0.6311 GB, free: 10.3 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004608/0.5807, allocations: 440.5 kB / 0.6315 GB, free: 9.875 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002389/0.5831, allocations: 0.5777 MB / 0.6321 GB, free: 9.297 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03837/0.6215, allocations: 19.71 MB / 0.6513 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002573/0.6218, allocations: 71.41 kB / 0.6514 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00154/0.6234, allocations: 275.7 kB / 0.6517 GB, free: 4.211 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00744/0.6308, allocations: 4.161 MB / 0.6557 GB, free: 44 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03776/0.6686, allocations: 17.39 MB / 0.6727 GB, free: 14.63 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6315/1.3, allocations: 72.74 MB / 0.7437 GB, free: 114.9 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01547/1.316, allocations: 7.805 MB / 0.7514 GB, free: 113.1 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005571/1.321, allocations: 5.063 MB / 0.7563 GB, free: 111 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002403/1.322, allocations: 63.77 kB / 0.7564 GB, free: 111 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.296e-05/1.322, allocations: 74.47 kB / 0.7564 GB, free: 110.9 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=429): time 7.093e-06/1.322, allocations: 0 / 0.7564 GB, free: 110.9 MB / 0.5607 GB Notification: Performance of matching and sorting (n=476): time 0.08654/1.408, allocations: 40.67 MB / 0.7962 GB, free: 82.02 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.825e-05/1.408, allocations: 226.3 kB / 0.7964 GB, free: 81.76 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008064/1.416, allocations: 6.406 MB / 0.8026 GB, free: 75.48 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.001177/1.418, allocations: 97.3 kB / 0.8027 GB, free: 75.38 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.002911/1.421, allocations: 5.748 MB / 0.8083 GB, free: 70.16 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.002025/1.423, allocations: 1.813 MB / 0.8101 GB, free: 68.38 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002762/1.425, allocations: 2.194 MB / 0.8123 GB, free: 66.18 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 4.875e-05/1.425, allocations: 305.1 kB / 0.8125 GB, free: 65.88 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00573/1.431, allocations: 4.8 MB / 0.8172 GB, free: 61.07 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008926/1.44, allocations: 10.84 MB / 0.8278 GB, free: 47.39 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01667/1.457, allocations: 17.04 MB / 0.8445 GB, free: 27.45 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001995/1.457, allocations: 60 kB / 0.8445 GB, free: 27.39 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1443) (initialization): time 0.02909/1.486, allocations: 16.89 MB / 0.861 GB, free: 10.46 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.000124/1.486, allocations: 96 kB / 0.8611 GB, free: 10.36 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002145/1.487, allocations: 208 kB / 0.8613 GB, free: 10.16 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004338/1.491, allocations: 1.827 MB / 0.8631 GB, free: 8.324 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007702/1.499, allocations: 2.499 MB / 0.8655 GB, free: 5.82 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01818/1.517, allocations: 15.85 MB / 0.881 GB, free: 5.426 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007829/1.525, allocations: 0.6438 MB / 0.8816 GB, free: 4.781 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002073/1.527, allocations: 0.6093 MB / 0.8822 GB, free: 4.176 MB / 0.5763 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.008888/1.536, allocations: 4.065 MB / 0.8862 GB, free: 96 kB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001598/1.537, allocations: 0.6298 MB / 0.8868 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01816/1.556, allocations: 9.466 MB / 0.8961 GB, free: 5.938 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001717/1.556, allocations: 91.92 kB / 0.8962 GB, free: 5.848 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.32e-05/1.556, allocations: 15.98 kB / 0.8962 GB, free: 5.832 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.019e-05/1.556, allocations: 15.94 kB / 0.8962 GB, free: 5.816 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0433/1.599, allocations: 21.12 MB / 0.9168 GB, free: 0.5508 MB / 0.6076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-05/1.599, allocations: 8 kB / 0.9168 GB, free: 0.543 MB / 0.6076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003885/1.603, allocations: 0.7371 MB / 0.9175 GB, free: 15.8 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004577/1.608, allocations: 1.504 MB / 0.919 GB, free: 14.29 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008225/1.609, allocations: 83.98 kB / 0.9191 GB, free: 14.21 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01968/1.628, allocations: 14.82 MB / 0.9336 GB, free: 14.84 MB / 0.6388 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.531e-05/1.628, allocations: 16.22 kB / 0.9336 GB, free: 14.82 MB / 0.6388 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0258/1.654, allocations: 15.22 MB / 0.9484 GB, free: 15.37 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001723/1.656, allocations: 0.6568 MB / 0.9491 GB, free: 14.69 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001565/1.658, allocations: 83.14 kB / 0.9492 GB, free: 14.61 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003541/1.661, allocations: 299.6 kB / 0.9494 GB, free: 14.32 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001053/1.662, allocations: 285.9 kB / 0.9497 GB, free: 14.04 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003809/1.663, allocations: 127.9 kB / 0.9498 GB, free: 13.91 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.007344/1.67, allocations: 3.992 MB / 0.9537 GB, free: 9.93 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.495e-06/1.67, allocations: 0 / 0.9537 GB, free: 9.93 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.01035/1.68, allocations: 1.945 MB / 0.9556 GB, free: 7.984 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.2923/1.973, allocations: 15.94 MB / 0.9712 GB, free: 227.7 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.01616/1.989, allocations: 11.91 MB / 0.9828 GB, free: 223.3 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.571e-05/1.989, allocations: 7.875 kB / 0.9828 GB, free: 223.3 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.006429/1.995, allocations: 4.788 MB / 0.9875 GB, free: 221.3 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004999/2, allocations: 0.8114 MB / 0.9883 GB, free: 220.9 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1182/2.119, allocations: 93.79 MB / 1.08 GB, free: 129.7 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007982/2.127, allocations: 5.918 MB / 1.086 GB, free: 123.8 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.007859/2.135, allocations: 3.999 MB / 1.09 GB, free: 119.8 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005201/2.14, allocations: 3.916 MB / 1.093 GB, free: 115.9 MB / 0.6544 GB Notification: Performance of SimCode: time 9.62e-07/2.14, allocations: 0 / 1.093 GB, free: 115.9 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4795/2.619, allocations: 131 MB / 1.221 GB, free: 219 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 50.26/52.88, allocations: 7.578 kB / 1.221 GB, free: 219 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_GearConstraint.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1)