Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_trunk_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.0009196/0.0009197, allocations: 98.75 kB / 17 MB, free: 6.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001151/0.001151, allocations: 194.7 kB / 17.91 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 227.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2122/0.2122, allocations: 45.92 MB / 344.1 MB, free: 12.02 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003002/0.0003003, allocations: 8 kB / 418.2 MB, free: 20.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1433, allocations: 63.47 MB / 481.6 MB, free: 5.254 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.3715/0.5149, allocations: 74.05 MB / 0.5427 GB, free: 2.395 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04494/0.5599, allocations: 15.16 MB / 0.5575 GB, free: 7.777 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02531/0.5852, allocations: 351.2 kB / 0.5578 GB, free: 7.723 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01458/0.5999, allocations: 3.947 MB / 0.5617 GB, free: 4.797 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03917/0.6391, allocations: 11.45 MB / 0.5729 GB, free: 10.65 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00606/0.6452, allocations: 0.7957 MB / 0.5736 GB, free: 9.852 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.08502/0.7302, allocations: 64.62 MB / 0.6367 GB, free: 9.141 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01349/0.7438, allocations: 7.785 MB / 0.6443 GB, free: 1.289 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006235/0.7501, allocations: 2.37 MB / 0.6467 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008053/0.7582, allocations: 3.672 MB / 0.6502 GB, free: 11.23 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002606/0.7608, allocations: 280 kB / 0.6505 GB, free: 10.95 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004382/0.7652, allocations: 1.003 MB / 0.6515 GB, free: 9.949 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005466/0.7707, allocations: 3.237 MB / 0.6547 GB, free: 6.703 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003477/0.7742, allocations: 1.606 MB / 0.6562 GB, free: 5.086 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01299/0.7872, allocations: 10.65 MB / 0.6666 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/0.7873, allocations: 0 / 0.6666 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.194e-06/0.7873, allocations: 0 / 0.6666 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0004777/0.7878, allocations: 0 / 0.6666 GB, free: 10.41 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3026 * Number of variables: 3026 Notification: Performance of Generate backend data structure: time 0.01649/0.8043, allocations: 7.477 MB / 0.6739 GB, free: 2.844 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.673e-05/0.8043, allocations: 8.031 kB / 0.6739 GB, free: 2.836 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004909/0.8093, allocations: 1.406 MB / 0.6753 GB, free: 1.418 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04139/0.8507, allocations: 9.119 MB / 0.6842 GB, free: 8.273 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01169/0.8624, allocations: 5.161 MB / 0.6893 GB, free: 3.027 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003956/0.8628, allocations: 447.2 kB / 0.6897 GB, free: 2.59 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002081/0.8649, allocations: 0.5737 MB / 0.6902 GB, free: 2.016 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5585/1.423, allocations: 19.88 MB / 0.7096 GB, free: 176.6 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004384/1.424, allocations: 66.06 kB / 0.7097 GB, free: 176.6 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002173/1.426, allocations: 277.3 kB / 0.71 GB, free: 176.6 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008604/1.435, allocations: 4.235 MB / 0.7141 GB, free: 176.5 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03711/1.472, allocations: 17.5 MB / 0.7312 GB, free: 171 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09721/1.569, allocations: 73.42 MB / 0.8029 GB, free: 101.3 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01558/1.585, allocations: 7.805 MB / 0.8105 GB, free: 93.25 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007075/1.592, allocations: 5.045 MB / 0.8154 GB, free: 88.18 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005112/1.592, allocations: 69.28 kB / 0.8155 GB, free: 88.13 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.673e-05/1.593, allocations: 74.58 kB / 0.8156 GB, free: 88.05 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=429): time 1.448e-05/1.593, allocations: 0 / 0.8156 GB, free: 88.05 MB / 0.5294 GB Notification: Performance of matching and sorting (n=476): time 0.1063/1.699, allocations: 40.28 MB / 0.8549 GB, free: 47.68 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.862e-05/1.699, allocations: 226.8 kB / 0.8551 GB, free: 47.41 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01227/1.711, allocations: 6.379 MB / 0.8614 GB, free: 41.03 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001198/1.713, allocations: 93.47 kB / 0.8615 GB, free: 40.93 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004042/1.717, allocations: 5.556 MB / 0.8669 GB, free: 35.38 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.003059/1.72, allocations: 1.734 MB / 0.8686 GB, free: 33.66 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001873/1.722, allocations: 219.6 kB / 0.8688 GB, free: 33.45 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.001134/1.723, allocations: 0.7849 MB / 0.8695 GB, free: 32.66 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008059/1.731, allocations: 4.773 MB / 0.8742 GB, free: 27.88 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01162/1.742, allocations: 10.82 MB / 0.8848 GB, free: 14.12 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01129/1.754, allocations: 7.159 MB / 0.8918 GB, free: 6.949 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002426/1.754, allocations: 60 kB / 0.8918 GB, free: 6.891 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1446) (initialization): time 0.03488/1.789, allocations: 16.79 MB / 0.9082 GB, free: 6.051 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004306/1.789, allocations: 92 kB / 0.9083 GB, free: 5.961 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005342/1.79, allocations: 216 kB / 0.9085 GB, free: 5.75 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005537/1.796, allocations: 1.853 MB / 0.9103 GB, free: 3.887 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009597/1.805, allocations: 2.503 MB / 0.9128 GB, free: 1.379 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3252/2.13, allocations: 14.78 MB / 0.9272 GB, free: 161.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007636/2.138, allocations: 0.6493 MB / 0.9278 GB, free: 161.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00203/2.14, allocations: 0.6165 MB / 0.9284 GB, free: 161.6 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 958 * Number of states: 0 () * Number of discrete variables: 53 (torque1.torqueArrow.arrowLine.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 (1322): * Single equations (assignments): 1309 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 42,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009681/2.15, allocations: 4.095 MB / 0.9324 GB, free: 160.1 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001503/2.151, allocations: 0.5974 MB / 0.933 GB, free: 160.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01822/2.17, allocations: 9.452 MB / 0.9423 GB, free: 156.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001552/2.17, allocations: 90.33 kB / 0.9423 GB, free: 156.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.373e-05/2.17, allocations: 7.844 kB / 0.9424 GB, free: 156.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.109e-05/2.17, allocations: 18.84 kB / 0.9424 GB, free: 156.6 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0375/2.207, allocations: 21.21 MB / 0.9631 GB, free: 149 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.334e-05/2.208, allocations: 11.44 kB / 0.9631 GB, free: 149 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003267/2.211, allocations: 0.7386 MB / 0.9638 GB, free: 149 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003618/2.214, allocations: 1.513 MB / 0.9653 GB, free: 148.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007486/2.215, allocations: 80.77 kB / 0.9654 GB, free: 148.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01322/2.228, allocations: 13.71 MB / 0.9788 GB, free: 137.9 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.45e-05/2.229, allocations: 19.72 kB / 0.9788 GB, free: 137.9 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02202/2.251, allocations: 15.15 MB / 0.9936 GB, free: 123.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001876/2.253, allocations: 0.6248 MB / 0.9942 GB, free: 122.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002166/2.255, allocations: 87.81 kB / 0.9943 GB, free: 122.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003692/2.258, allocations: 295.6 kB / 0.9946 GB, free: 122.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00101/2.259, allocations: 289.8 kB / 0.9948 GB, free: 122 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003629/2.26, allocations: 123.3 kB / 0.9949 GB, free: 121.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006059/2.266, allocations: 3.953 MB / 0.9988 GB, free: 118 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.91e-07/2.266, allocations: 0 / 0.9988 GB, free: 118 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009579/2.275, allocations: 1.983 MB / 1.001 GB, free: 116 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 39,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01931/2.295, allocations: 15.89 MB / 1.016 GB, free: 99.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01654/2.311, allocations: 11.81 MB / 1.028 GB, free: 88.14 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.532e-05/2.311, allocations: 4 kB / 1.028 GB, free: 88.13 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006506/2.318, allocations: 4.788 MB / 1.032 GB, free: 83.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005324/2.323, allocations: 0.7887 MB / 1.033 GB, free: 82.54 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1093/2.433, allocations: 73.99 MB / 1.106 GB, free: 2.559 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008673/2.441, allocations: 5.951 MB / 1.111 GB, free: 12.57 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.009815/2.451, allocations: 4.001 MB / 1.115 GB, free: 8.559 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006349/2.458, allocations: 3.932 MB / 1.119 GB, free: 4.625 MB / 0.5607 GB Notification: Performance of SimCode: time 8.92e-07/2.458, allocations: 4 kB / 1.119 GB, free: 4.621 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4538/2.911, allocations: 145.6 MB / 1.261 GB, free: 70.39 MB / 0.5607 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002124/2.912, allocations: 209.7 kB / 1.261 GB, free: 70.15 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.447/8.358, allocations: 0 / 1.261 GB, free: 70.15 MB / 0.5607 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_GearConstraint.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat