Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008302/0.0008305, allocations: 96.92 kB / 17 MB, free: 6.086 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008512/0.0008513, allocations: 179.7 kB / 17.89 MB, free: 5.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.413/1.413, allocations: 223.2 MB / 241.9 MB, free: 332 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2295/0.2295, allocations: 44.22 MB / 337.2 MB, free: 2.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003319/0.000332, allocations: 15.98 kB / 409.7 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.15/0.1503, allocations: 61.92 MB / 471.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.3776/0.528, allocations: 74.04 MB / 0.5329 GB, free: 9.789 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04031/0.5684, allocations: 15.14 MB / 0.5477 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02158/0.59, allocations: 349.1 kB / 0.548 GB, free: 2.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01425/0.6043, allocations: 3.948 MB / 0.5519 GB, free: 15.3 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03811/0.6424, allocations: 11.46 MB / 0.5631 GB, free: 7.148 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0055/0.648, allocations: 0.8113 MB / 0.5639 GB, free: 6.336 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.08093/0.7289, allocations: 64.51 MB / 0.6269 GB, free: 5.746 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01232/0.7413, allocations: 7.795 MB / 0.6345 GB, free: 13.89 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005237/0.7466, allocations: 2.358 MB / 0.6368 GB, free: 11.53 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006237/0.7528, allocations: 3.668 MB / 0.6404 GB, free: 7.848 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001281/0.7542, allocations: 280 kB / 0.6406 GB, free: 7.574 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002636/0.7568, allocations: 1.03 MB / 0.6416 GB, free: 6.543 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003017/0.7598, allocations: 3.237 MB / 0.6448 GB, free: 3.297 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001879/0.7617, allocations: 1.598 MB / 0.6463 GB, free: 1.688 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01099/0.7727, allocations: 10.66 MB / 0.6568 GB, free: 6.996 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.7728, allocations: 0 / 0.6568 GB, free: 6.996 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.7728, allocations: 0 / 0.6568 GB, free: 6.996 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0004604/0.7732, allocations: 0 / 0.6568 GB, free: 6.996 MB / 494.1 MB 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.01765/0.7909, allocations: 7.446 MB / 0.664 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.464e-05/0.791, allocations: 12.03 kB / 0.664 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004556/0.7955, allocations: 1.398 MB / 0.6654 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04101/0.8365, allocations: 9.095 MB / 0.6743 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01393/0.8505, allocations: 5.383 MB / 0.6795 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005501/0.8511, allocations: 443.2 kB / 0.68 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0032/0.8543, allocations: 0.5737 MB / 0.6805 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03417/0.8885, allocations: 19.88 MB / 0.6999 GB, free: 9.539 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000204/0.8888, allocations: 71.36 kB / 0.7 GB, free: 9.469 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008738/0.8896, allocations: 283.7 kB / 0.7003 GB, free: 9.191 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006175/0.8958, allocations: 4.231 MB / 0.7044 GB, free: 4.953 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.578/1.474, allocations: 17.48 MB / 0.7215 GB, free: 182.3 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0819/1.556, allocations: 73.42 MB / 0.7932 GB, free: 119.6 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01369/1.569, allocations: 7.799 MB / 0.8008 GB, free: 111.5 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005407/1.575, allocations: 5.056 MB / 0.8057 GB, free: 106.5 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002157/1.575, allocations: 57.55 kB / 0.8058 GB, free: 106.4 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.678e-05/1.575, allocations: 82.56 kB / 0.8059 GB, free: 106.3 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=429): time 5.731e-06/1.575, allocations: 0 / 0.8059 GB, free: 106.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=476): time 0.08775/1.663, allocations: 40.28 MB / 0.8452 GB, free: 65.94 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.431e-05/1.663, allocations: 226.8 kB / 0.8454 GB, free: 65.67 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008347/1.671, allocations: 6.375 MB / 0.8517 GB, free: 59.29 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009436/1.672, allocations: 100.1 kB / 0.8517 GB, free: 59.19 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002933/1.675, allocations: 5.557 MB / 0.8572 GB, free: 53.63 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001869/1.677, allocations: 1.737 MB / 0.8589 GB, free: 51.91 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004688/1.678, allocations: 214.5 kB / 0.8591 GB, free: 51.7 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0004359/1.678, allocations: 0.781 MB / 0.8598 GB, free: 50.92 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005855/1.684, allocations: 4.773 MB / 0.8645 GB, free: 46.14 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008815/1.693, allocations: 10.83 MB / 0.8751 GB, free: 32.37 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009082/1.702, allocations: 7.142 MB / 0.8821 GB, free: 25.22 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001081/1.702, allocations: 60 kB / 0.8821 GB, free: 25.16 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1446) (initialization): time 0.02526/1.727, allocations: 16.8 MB / 0.8985 GB, free: 8.324 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001671/1.728, allocations: 100.2 kB / 0.8986 GB, free: 8.227 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002698/1.728, allocations: 212 kB / 0.8988 GB, free: 8.02 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004133/1.732, allocations: 1.846 MB / 0.9006 GB, free: 6.16 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007453/1.739, allocations: 2.515 MB / 0.9031 GB, free: 3.641 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2401/1.98, allocations: 14.78 MB / 0.9175 GB, free: 156.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008249/1.988, allocations: 0.6429 MB / 0.9181 GB, free: 156.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002163/1.99, allocations: 0.616 MB / 0.9187 GB, free: 156.4 MB / 0.5294 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.0102/2, allocations: 4.103 MB / 0.9227 GB, free: 154.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001899/2.002, allocations: 0.5987 MB / 0.9233 GB, free: 154.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01834/2.021, allocations: 9.45 MB / 0.9326 GB, free: 151.4 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001418/2.021, allocations: 91.52 kB / 0.9326 GB, free: 151.4 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-05/2.021, allocations: 15.06 kB / 0.9327 GB, free: 151.4 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.121e-05/2.021, allocations: 19.08 kB / 0.9327 GB, free: 151.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03822/2.059, allocations: 21.21 MB / 0.9534 GB, free: 143.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.535e-05/2.059, allocations: 7.75 kB / 0.9534 GB, free: 143.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003684/2.063, allocations: 0.7476 MB / 0.9541 GB, free: 143.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00378/2.067, allocations: 1.503 MB / 0.9556 GB, free: 143.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007881/2.068, allocations: 89.61 kB / 0.9557 GB, free: 143.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01314/2.081, allocations: 13.7 MB / 0.9691 GB, free: 131.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.939e-06/2.081, allocations: 19.88 kB / 0.9691 GB, free: 131.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01957/2.1, allocations: 15.14 MB / 0.9839 GB, free: 116.8 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001817/2.102, allocations: 0.6322 MB / 0.9845 GB, free: 116.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001404/2.104, allocations: 86.45 kB / 0.9846 GB, free: 116.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00303/2.107, allocations: 304.2 kB / 0.9848 GB, free: 115.9 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007965/2.107, allocations: 278.5 kB / 0.9851 GB, free: 115.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003019/2.108, allocations: 128.9 kB / 0.9852 GB, free: 115.5 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005621/2.113, allocations: 3.949 MB / 0.9891 GB, free: 111.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.41e-07/2.113, allocations: 0 / 0.9891 GB, free: 111.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009624/2.123, allocations: 1.994 MB / 0.991 GB, free: 109.5 MB / 0.5294 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.02008/2.143, allocations: 15.88 MB / 1.007 GB, free: 93.45 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01844/2.162, allocations: 11.81 MB / 1.018 GB, free: 81.7 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.638e-05/2.162, allocations: 4 kB / 1.018 GB, free: 81.69 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00705/2.169, allocations: 4.786 MB / 1.023 GB, free: 76.86 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006601/2.175, allocations: 0.7835 MB / 1.024 GB, free: 76.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1189/2.294, allocations: 74.01 MB / 1.096 GB, free: 12.09 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01407/2.308, allocations: 5.955 MB / 1.102 GB, free: 6.098 MB / 0.5451 GB Notification: Performance of simCode: alias equations: time 0.01363/2.322, allocations: 4 MB / 1.106 GB, free: 2.09 MB / 0.5451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2434/2.566, allocations: 3.931 MB / 1.109 GB, free: 171.5 MB / 0.5451 GB Notification: Performance of SimCode: time 1.473e-06/2.566, allocations: 2.812 kB / 1.109 GB, free: 171.5 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1907/2.756, allocations: 145.6 MB / 1.252 GB, free: 57.43 MB / 0.5451 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002321/2.757, allocations: 206.2 kB / 1.252 GB, free: 57.19 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.504/8.26, allocations: 0 / 1.252 GB, free: 57.19 MB / 0.5451 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_GearConstraint.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat