Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.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.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_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.0008155/0.0008155, allocations: 96.44 kB / 17 MB, free: 6.391 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.000817/0.000817, allocations: 183.5 kB / 17.89 MB, free: 5.922 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.33/1.33, allocations: 223.2 MB / 241.9 MB, free: 14.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2122/0.2122, allocations: 44.22 MB / 337.2 MB, free: 2.562 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000325/0.000325, allocations: 8 kB / 409.7 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1249, allocations: 61.93 MB / 471.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.3288/0.4537, allocations: 63.12 MB / 0.5222 GB, free: 9.859 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03456/0.4883, allocations: 13.31 MB / 0.5352 GB, free: 8.031 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0178/0.5062, allocations: 307.3 kB / 0.5355 GB, free: 7.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01312/0.5193, allocations: 3.285 MB / 0.5387 GB, free: 6.871 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03147/0.5508, allocations: 9.676 MB / 0.5482 GB, free: 2.113 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005132/0.556, allocations: 0.8096 MB / 0.549 GB, free: 1.633 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.08073/0.6367, allocations: 61.99 MB / 0.6095 GB, free: 7.438 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0112/0.648, allocations: 6.557 MB / 0.6159 GB, free: 0.8242 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00443/0.6525, allocations: 1.662 MB / 0.6175 GB, free: 15.16 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004713/0.6572, allocations: 2.531 MB / 0.62 GB, free: 12.61 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00133/0.6586, allocations: 180 kB / 0.6202 GB, free: 12.44 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003308/0.6619, allocations: 0.9831 MB / 0.6211 GB, free: 11.45 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00349/0.6654, allocations: 2.178 MB / 0.6233 GB, free: 9.27 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002377/0.6678, allocations: 1.049 MB / 0.6243 GB, free: 8.211 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009353/0.6772, allocations: 7.24 MB / 0.6314 GB, free: 0.9531 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.6772, allocations: 0 / 0.6314 GB, free: 0.9531 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.757e-06/0.6772, allocations: 0 / 0.6314 GB, free: 0.9531 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003845/0.6776, allocations: 0 / 0.6314 GB, free: 0.9531 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: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.0146/0.6922, allocations: 5.261 MB / 0.6365 GB, free: 11.62 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.244e-05/0.6923, allocations: 8.031 kB / 0.6365 GB, free: 11.61 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003037/0.6954, allocations: 0.8468 MB / 0.6373 GB, free: 10.76 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03271/0.7281, allocations: 6.144 MB / 0.6433 GB, free: 4.598 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01054/0.7387, allocations: 4.289 MB / 0.6475 GB, free: 260 kB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000359/0.7391, allocations: 299.8 kB / 0.6478 GB, free: 15.96 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002078/0.7411, allocations: 427.6 kB / 0.6482 GB, free: 15.54 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02577/0.7669, allocations: 11.6 MB / 0.6595 GB, free: 3.203 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003063/0.7673, allocations: 55.5 kB / 0.6596 GB, free: 3.148 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001424/0.7687, allocations: 183.9 kB / 0.6598 GB, free: 2.969 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003465/0.7722, allocations: 2.097 MB / 0.6618 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02046/0.7927, allocations: 9.812 MB / 0.6714 GB, free: 7.039 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3789/1.172, allocations: 45.38 MB / 0.7157 GB, free: 166.2 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01151/1.183, allocations: 4.236 MB / 0.7199 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004369/1.188, allocations: 2.349 MB / 0.7222 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01573/1.203, allocations: 9.428 MB / 0.7314 GB, free: 161.8 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.244e-05/1.203, allocations: 51.12 kB / 0.7314 GB, free: 161.8 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=171): time 5.931e-06/1.203, allocations: 0 / 0.7314 GB, free: 161.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=197): time 0.04449/1.248, allocations: 18.23 MB / 0.7492 GB, free: 154.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.941e-05/1.248, allocations: 203.9 kB / 0.7494 GB, free: 153.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006629/1.255, allocations: 4.696 MB / 0.754 GB, free: 150.1 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0004007/1.255, allocations: 53.7 kB / 0.754 GB, free: 150.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001899/1.257, allocations: 3.643 MB / 0.7576 GB, free: 146.4 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008701/1.258, allocations: 0.7528 MB / 0.7583 GB, free: 145.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002355/1.258, allocations: 124 kB / 0.7585 GB, free: 145.6 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002861/1.259, allocations: 0.582 MB / 0.759 GB, free: 145 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002782/1.261, allocations: 2.167 MB / 0.7611 GB, free: 142.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00464/1.266, allocations: 6.009 MB / 0.767 GB, free: 135.1 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004617/1.271, allocations: 3.535 MB / 0.7705 GB, free: 131.8 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.592e-05/1.271, allocations: 40 kB / 0.7705 GB, free: 131.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.01456/1.285, allocations: 8.747 MB / 0.779 GB, free: 123.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.181e-05/1.285, allocations: 64 kB / 0.7791 GB, free: 123 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001237/1.286, allocations: 136.9 kB / 0.7792 GB, free: 122.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002577/1.288, allocations: 1.1 MB / 0.7803 GB, free: 121.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004224/1.292, allocations: 1.427 MB / 0.7817 GB, free: 120.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008198/1.301, allocations: 8.187 MB / 0.7897 GB, free: 111.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005086/1.306, allocations: 348.3 kB / 0.79 GB, free: 111.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009762/1.307, allocations: 385.1 kB / 0.7904 GB, free: 111.2 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 617 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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 (756): * Single equations (assignments): 751 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004199/1.311, allocations: 2.478 MB / 0.7928 GB, free: 108.7 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009224/1.312, allocations: 414.7 kB / 0.7932 GB, free: 108.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005631/1.317, allocations: 3.491 MB / 0.7966 GB, free: 104.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.534e-05/1.318, allocations: 21.09 kB / 0.7966 GB, free: 104.8 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.452e-05/1.318, allocations: 19.38 kB / 0.7967 GB, free: 104.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.941e-05/1.318, allocations: 11.97 kB / 0.7967 GB, free: 104.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01476/1.332, allocations: 9.041 MB / 0.8055 GB, free: 95.66 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.881e-05/1.332, allocations: 4 kB / 0.8055 GB, free: 95.65 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00135/1.334, allocations: 299.6 kB / 0.8058 GB, free: 95.36 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002383/1.336, allocations: 0.8584 MB / 0.8066 GB, free: 94.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001558/1.336, allocations: 36.78 kB / 0.8067 GB, free: 94.46 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007491/1.344, allocations: 7.336 MB / 0.8138 GB, free: 86.86 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/1.344, allocations: 0 / 0.8138 GB, free: 86.86 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007939/1.352, allocations: 6.055 MB / 0.8197 GB, free: 80.77 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0013/1.353, allocations: 468 kB / 0.8202 GB, free: 80.29 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004522/1.354, allocations: 28 kB / 0.8202 GB, free: 80.26 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00138/1.355, allocations: 116.8 kB / 0.8203 GB, free: 80.15 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002927/1.355, allocations: 113.1 kB / 0.8204 GB, free: 80.04 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001171/1.355, allocations: 52.94 kB / 0.8205 GB, free: 79.99 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004327/1.36, allocations: 2.974 MB / 0.8234 GB, free: 77.02 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.61e-07/1.36, allocations: 0 / 0.8234 GB, free: 77.02 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006874/1.367, allocations: 1.144 MB / 0.8245 GB, free: 75.88 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (147): * Single equations (assignments): 142 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008074/1.375, allocations: 6.709 MB / 0.8311 GB, free: 69.13 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008495/1.383, allocations: 5.505 MB / 0.8364 GB, free: 63.62 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.448e-06/1.383, allocations: 7.984 kB / 0.8364 GB, free: 63.62 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002614/1.386, allocations: 1.883 MB / 0.8383 GB, free: 61.71 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004302/1.39, allocations: 0.563 MB / 0.8388 GB, free: 61.15 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07116/1.461, allocations: 41.18 MB / 0.879 GB, free: 15.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005482/1.467, allocations: 3.86 MB / 0.8828 GB, free: 11.91 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005097/1.472, allocations: 1.996 MB / 0.8848 GB, free: 9.902 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003261/1.475, allocations: 2.358 MB / 0.8871 GB, free: 7.543 MB / 0.5294 GB Notification: Performance of SimCode: time 1.512e-06/1.475, allocations: 0 / 0.8871 GB, free: 7.543 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3785/1.854, allocations: 89.94 MB / 0.9749 GB, free: 181.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002588/1.854, allocations: 213.1 kB / 0.9751 GB, free: 181.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.019/5.873, allocations: 0 / 0.9751 GB, free: 181.5 MB / 0.5606 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat does not exist to compare? outputFormat=mat