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.001341/0.001341, allocations: 103.6 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001721/0.001721, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.536/1.536, 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.2308/0.2308, allocations: 46.1 MB / 344.2 MB, free: 11.54 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.002277/0.002277, allocations: 77 kB / 417.8 MB, free: 19.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1332, allocations: 62.45 MB / 480.2 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.02174/0.155, allocations: 18.58 MB / 498.8 MB, free: 2.457 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01375/0.1688, allocations: 5.315 MB / 0.4923 GB, free: 13.12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004034/0.1728, allocations: 119.7 kB / 0.4924 GB, free: 13.01 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00964/0.1825, allocations: 4.758 MB / 0.497 GB, free: 8.234 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009654/0.1922, allocations: 3.046 MB / 0.5 GB, free: 5.176 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003249/0.1955, allocations: 0.9048 MB / 0.5009 GB, free: 4.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.3071/0.5027, allocations: 8.406 MB / 0.5091 GB, free: 12.69 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01024/0.513, allocations: 6.421 MB / 0.5154 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008436/0.5215, allocations: 2.918 MB / 0.5182 GB, free: 11.7 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008909/0.5304, allocations: 3.95 MB / 0.5221 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003323/0.5338, allocations: 0.6204 MB / 0.5227 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005667/0.5395, allocations: 1.443 MB / 0.5241 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006119/0.5456, allocations: 3.622 MB / 0.5276 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008008/0.5537, allocations: 4.283 MB / 0.5318 GB, free: 7.016 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01748/0.5712, allocations: 13.09 MB / 0.5446 GB, free: 15.56 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.5712, allocations: 0 / 0.5446 GB, free: 15.56 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5712, allocations: 4 kB / 0.5446 GB, free: 15.55 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006357/0.5719, allocations: 0 / 0.5446 GB, free: 15.55 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.03036/0.6023, allocations: 8.914 MB / 0.5533 GB, free: 7.016 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.64e-05/0.6023, allocations: 8.031 kB / 0.5533 GB, free: 7.008 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004541/0.6069, allocations: 1.398 MB / 0.5547 GB, free: 5.672 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05012/0.657, allocations: 8.907 MB / 0.5634 GB, free: 12.75 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01507/0.6721, allocations: 5.241 MB / 0.5685 GB, free: 7.754 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007137/0.6729, allocations: 447 kB / 0.5689 GB, free: 7.391 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004214/0.6771, allocations: 0.5701 MB / 0.5695 GB, free: 6.895 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04448/0.7216, allocations: 19.71 MB / 0.5887 GB, free: 2.496 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002724/0.722, allocations: 75.67 kB / 0.5888 GB, free: 2.453 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001495/0.7235, allocations: 273 kB / 0.5891 GB, free: 2.262 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00728/0.7307, allocations: 4.175 MB / 0.5931 GB, free: 14.14 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03791/0.7687, allocations: 17.39 MB / 0.6101 GB, free: 13.01 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1166/0.8853, allocations: 72.99 MB / 0.6814 GB, free: 2.988 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01803/0.9034, allocations: 7.806 MB / 0.689 GB, free: 10.94 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008148/0.9116, allocations: 5.053 MB / 0.694 GB, free: 5.875 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000264/0.9119, allocations: 65.61 kB / 0.694 GB, free: 5.824 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.016e-05/0.912, allocations: 73.09 kB / 0.6941 GB, free: 5.742 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=429): time 7.605e-06/0.912, allocations: 0 / 0.6941 GB, free: 5.742 MB / 0.5294 GB Notification: Performance of matching and sorting (n=476): time 0.3646/1.277, allocations: 40.23 MB / 0.7334 GB, free: 177.3 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/1.277, allocations: 231.3 kB / 0.7336 GB, free: 177.1 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01068/1.287, allocations: 6.392 MB / 0.7398 GB, free: 174.8 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009192/1.288, allocations: 94.69 kB / 0.7399 GB, free: 174.8 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003173/1.292, allocations: 5.528 MB / 0.7453 GB, free: 170.5 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002141/1.294, allocations: 1.732 MB / 0.747 GB, free: 169.3 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003127/1.297, allocations: 2.171 MB / 0.7491 GB, free: 168.2 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.315e-05/1.297, allocations: 309.9 kB / 0.7494 GB, free: 167.9 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005965/1.303, allocations: 4.803 MB / 0.7541 GB, free: 166.4 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01058/1.313, allocations: 10.85 MB / 0.7647 GB, free: 156.7 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02836/1.342, allocations: 17.04 MB / 0.7814 GB, free: 143.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003029/1.342, allocations: 60.69 kB / 0.7814 GB, free: 143.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=1443) (initialization): time 0.04051/1.383, allocations: 16.86 MB / 0.7979 GB, free: 129.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001263/1.383, allocations: 96 kB / 0.798 GB, free: 129 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002495/1.383, allocations: 211.9 kB / 0.7982 GB, free: 128.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00433/1.388, allocations: 1.822 MB / 0.8 GB, free: 127.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00826/1.396, allocations: 2.509 MB / 0.8024 GB, free: 125 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0138/1.41, allocations: 15.86 MB / 0.8179 GB, free: 108.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009607/1.419, allocations: 0.6358 MB / 0.8185 GB, free: 108 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002334/1.422, allocations: 0.6129 MB / 0.8191 GB, free: 107.4 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.009395/1.431, allocations: 4.065 MB / 0.8231 GB, free: 103.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00171/1.433, allocations: 0.6015 MB / 0.8237 GB, free: 102.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01351/1.446, allocations: 9.455 MB / 0.8329 GB, free: 93.15 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001189/1.446, allocations: 91.81 kB / 0.833 GB, free: 93.07 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.979e-05/1.446, allocations: 15.98 kB / 0.833 GB, free: 93.05 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-05/1.447, allocations: 19.88 kB / 0.833 GB, free: 93.03 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03546/1.482, allocations: 21.2 MB / 0.8537 GB, free: 71.66 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.371e-05/1.482, allocations: 8.938 kB / 0.8537 GB, free: 71.65 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003397/1.485, allocations: 0.7371 MB / 0.8545 GB, free: 70.91 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00399/1.489, allocations: 1.508 MB / 0.8559 GB, free: 69.39 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009644/1.49, allocations: 86.64 kB / 0.856 GB, free: 69.31 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01318/1.504, allocations: 14.82 MB / 0.8705 GB, free: 53.94 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.787e-06/1.504, allocations: 16.22 kB / 0.8705 GB, free: 53.93 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02079/1.525, allocations: 15.18 MB / 0.8853 GB, free: 38.51 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002648/1.527, allocations: 0.6221 MB / 0.8859 GB, free: 37.86 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002054/1.529, allocations: 83.94 kB / 0.886 GB, free: 37.78 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003561/1.533, allocations: 293.4 kB / 0.8863 GB, free: 37.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007993/1.534, allocations: 291.3 kB / 0.8866 GB, free: 37.21 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002664/1.534, allocations: 120 kB / 0.8867 GB, free: 37.09 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005087/1.539, allocations: 3.992 MB / 0.8906 GB, free: 33.11 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.7e-07/1.539, allocations: 4 kB / 0.8906 GB, free: 33.11 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00861/1.548, allocations: 1.951 MB / 0.8925 GB, free: 31.16 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.01773/1.565, allocations: 15.91 MB / 0.908 GB, free: 15.02 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.257/1.822, allocations: 21.49 MB / 0.929 GB, free: 180 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.739e-05/1.823, allocations: 1.406 kB / 0.929 GB, free: 180 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007783/1.83, allocations: 4.785 MB / 0.9337 GB, free: 178 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005483/1.836, allocations: 0.8142 MB / 0.9345 GB, free: 177.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1471/1.983, allocations: 111.4 MB / 1.043 GB, free: 68.43 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01291/1.996, allocations: 5.928 MB / 1.049 GB, free: 62.46 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.01032/2.006, allocations: 3.992 MB / 1.053 GB, free: 58.46 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007649/2.014, allocations: 3.92 MB / 1.057 GB, free: 54.54 MB / 0.545 GB Notification: Performance of SimCode: time 6.51e-07/2.014, allocations: 0 / 1.057 GB, free: 54.54 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5175/2.531, allocations: 136.8 MB / 1.19 GB, free: 152.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.78/16.31, allocations: 6.953 kB / 1.19 GB, free: 152.8 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 & /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)