Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_3_2_3_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.0008986/0.0008985, allocations: 88.19 kB / 15.7 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 175.2 kB / 16.58 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.549/1.549, allocations: 205.4 MB / 222.8 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3466/0.3466, allocations: 43.55 MB / 314.6 MB, free: 8.758 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005014/0.0005015, allocations: 18.97 kB / 384 MB, free: 7.914 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1225, allocations: 58.87 MB / 442.9 MB, free: 12.94 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.2555/0.378, allocations: 74.63 MB / 0.5054 GB, free: 1.926 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03108/0.4091, allocations: 15.23 MB / 0.5203 GB, free: 7.539 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01338/0.4226, allocations: 355.8 kB / 0.5206 GB, free: 7.484 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01347/0.4361, allocations: 3.953 MB / 0.5245 GB, free: 6.102 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03383/0.4699, allocations: 11.53 MB / 0.5357 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00544/0.4754, allocations: 0.8126 MB / 0.5365 GB, free: 15.29 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.04824/0.5237, allocations: 37.5 MB / 0.5731 GB, free: 10.63 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01295/0.5366, allocations: 7.857 MB / 0.5808 GB, free: 2.746 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005133/0.5418, allocations: 2.421 MB / 0.5832 GB, free: 324 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005743/0.5476, allocations: 3.801 MB / 0.5869 GB, free: 12.5 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001673/0.5493, allocations: 288 kB / 0.5872 GB, free: 12.22 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003273/0.5526, allocations: 1.022 MB / 0.5882 GB, free: 11.2 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004129/0.5567, allocations: 3.323 MB / 0.5914 GB, free: 7.863 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002766/0.5595, allocations: 1.649 MB / 0.593 GB, free: 6.203 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01121/0.5707, allocations: 10.98 MB / 0.6037 GB, free: 11.2 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.5708, allocations: 0 / 0.6037 GB, free: 11.2 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.5708, allocations: 0 / 0.6037 GB, free: 11.2 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0004944/0.5713, allocations: 0 / 0.6037 GB, free: 11.2 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3112 * Number of variables: 3112 Notification: Performance of Generate backend data structure: time 0.01546/0.5868, allocations: 7.619 MB / 0.6112 GB, free: 3.496 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.5868, allocations: 19.97 kB / 0.6112 GB, free: 3.477 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003991/0.5908, allocations: 1.436 MB / 0.6126 GB, free: 2.031 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04109/0.6319, allocations: 9.122 MB / 0.6215 GB, free: 8.883 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01263/0.6446, allocations: 5.768 MB / 0.6271 GB, free: 3.031 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005259/0.6452, allocations: 451.5 kB / 0.6276 GB, free: 2.59 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002618/0.6478, allocations: 0.5816 MB / 0.6281 GB, free: 2.008 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4119/1.06, allocations: 20.39 MB / 0.648 GB, free: 132.1 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001783/1.06, allocations: 71.86 kB / 0.6481 GB, free: 132.1 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007083/1.061, allocations: 285.5 kB / 0.6484 GB, free: 132 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005356/1.066, allocations: 4.347 MB / 0.6526 GB, free: 131.2 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03373/1.1, allocations: 17.93 MB / 0.6701 GB, free: 125.6 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08865/1.188, allocations: 75.06 MB / 0.7434 GB, free: 58.74 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01453/1.203, allocations: 8.038 MB / 0.7513 GB, free: 50.46 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005949/1.209, allocations: 5.226 MB / 0.7564 GB, free: 45.22 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003684/1.209, allocations: 62.7 kB / 0.7564 GB, free: 45.18 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.107e-05/1.21, allocations: 81.17 kB / 0.7565 GB, free: 45.09 MB / 494.1 MB Notification: Performance of pre-optimization done (n=450): time 9.308e-06/1.21, allocations: 0 / 0.7565 GB, free: 45.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=497): time 0.09406/1.304, allocations: 41.35 MB / 0.7969 GB, free: 3.66 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/1.304, allocations: 227 kB / 0.7971 GB, free: 3.395 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00925/1.313, allocations: 6.494 MB / 0.8035 GB, free: 12.9 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.0009785/1.314, allocations: 95.66 kB / 0.8036 GB, free: 12.8 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.004112/1.318, allocations: 5.695 MB / 0.8091 GB, free: 7.109 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.002847/1.321, allocations: 1.797 MB / 0.8109 GB, free: 5.328 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008072/1.322, allocations: 225.3 kB / 0.8111 GB, free: 5.109 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0007604/1.323, allocations: 0.7934 MB / 0.8119 GB, free: 4.309 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007836/1.33, allocations: 4.937 MB / 0.8167 GB, free: 15.37 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01308/1.344, allocations: 11.11 MB / 0.8275 GB, free: 1.266 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2657/1.609, allocations: 7.359 MB / 0.8347 GB, free: 145.3 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001384/1.609, allocations: 60.53 kB / 0.8348 GB, free: 145.3 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.02726/1.637, allocations: 17.26 MB / 0.8516 GB, free: 140.7 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001798/1.637, allocations: 100.4 kB / 0.8517 GB, free: 140.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003516/1.637, allocations: 217.3 kB / 0.8519 GB, free: 140.7 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004678/1.642, allocations: 1.857 MB / 0.8537 GB, free: 140.3 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009114/1.651, allocations: 2.595 MB / 0.8563 GB, free: 140 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01474/1.666, allocations: 14.67 MB / 0.8706 GB, free: 131 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008203/1.674, allocations: 0.6663 MB / 0.8713 GB, free: 130.8 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002239/1.676, allocations: 0.6319 MB / 0.8719 GB, free: 130.7 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 975 * Number of states: 0 () * Number of discrete variables: 51 (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 (1360): * Single equations (assignments): 1347 * 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.008057/1.684, allocations: 4.186 MB / 0.876 GB, free: 128.9 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001224/1.686, allocations: 0.6258 MB / 0.8766 GB, free: 128.9 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01524/1.701, allocations: 9.826 MB / 0.8862 GB, free: 125.2 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001269/1.701, allocations: 95.09 kB / 0.8863 GB, free: 125.2 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.626e-05/1.701, allocations: 8.375 kB / 0.8863 GB, free: 125.2 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-05/1.701, allocations: 22.78 kB / 0.8863 GB, free: 125.2 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0358/1.737, allocations: 21.92 MB / 0.9077 GB, free: 112.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-05/1.737, allocations: 12 kB / 0.9077 GB, free: 112.8 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003131/1.74, allocations: 0.7813 MB / 0.9085 GB, free: 112.2 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003491/1.744, allocations: 1.51 MB / 0.9099 GB, free: 111.1 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003913/1.744, allocations: 87.84 kB / 0.91 GB, free: 111 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01255/1.757, allocations: 13.7 MB / 0.9234 GB, free: 98.27 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-05/1.757, allocations: 23.42 kB / 0.9234 GB, free: 98.25 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02082/1.778, allocations: 15.73 MB / 0.9388 GB, free: 82.84 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004018/1.782, allocations: 1.399 MB / 0.9402 GB, free: 81.41 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001765/1.783, allocations: 87.16 kB / 0.9402 GB, free: 81.33 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003958/1.787, allocations: 311.6 kB / 0.9405 GB, free: 81.02 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008839/1.788, allocations: 297.9 kB / 0.9408 GB, free: 80.73 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004778/1.789, allocations: 133.6 kB / 0.941 GB, free: 80.6 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.006401/1.795, allocations: 4.03 MB / 0.9449 GB, free: 76.58 MB / 0.5138 GB Notification: Performance of sort global known variables: time 5.01e-07/1.795, allocations: 0 / 0.9449 GB, free: 76.58 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01094/1.806, allocations: 2.054 MB / 0.9469 GB, free: 74.54 MB / 0.5138 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 (381): * Single equations (assignments): 368 * 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.0239/1.83, allocations: 16.48 MB / 0.963 GB, free: 57.83 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01772/1.848, allocations: 12.22 MB / 0.9749 GB, free: 45.61 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.646e-05/1.848, allocations: 4 kB / 0.9749 GB, free: 45.61 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.006551/1.854, allocations: 4.964 MB / 0.9798 GB, free: 40.59 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007011/1.861, allocations: 0.7964 MB / 0.9805 GB, free: 39.83 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.363/2.225, allocations: 76.43 MB / 1.055 GB, free: 154.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01182/2.236, allocations: 6.093 MB / 1.061 GB, free: 152.8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.01273/2.249, allocations: 4.096 MB / 1.065 GB, free: 152.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00707/2.256, allocations: 4.019 MB / 1.069 GB, free: 149.4 MB / 0.5294 GB Notification: Performance of SimCode: time 1.263e-06/2.256, allocations: 0 / 1.069 GB, free: 149.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1938/2.45, allocations: 149.3 MB / 1.215 GB, free: 17.82 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000152/2.45, allocations: 201.8 kB / 1.215 GB, free: 17.59 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.778/8.228, allocations: 0 / 1.215 GB, free: 17.59 MB / 0.5294 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_GearConstraint.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat