Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001687/0.001687, allocations: 180.5 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.601/1.601, allocations: 221.3 MB / 236 MB, free: 2.961 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001002/0.001002, allocations: 88.05 kB / 287 MB, free: 232 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2316/0.2316, allocations: 44.15 MB / 382 MB, free: 14.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.897e-05/3.9e-05, allocations: 8.156 kB / 451.9 MB, free: 9.312 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1502/0.1502, allocations: 61.92 MB / 0.5018 GB, free: 11.34 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.528/0.6783, allocations: 110.5 MB / 0.6098 GB, free: 10.64 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002321/0.6786, allocations: 79.95 kB / 0.6098 GB, free: 10.56 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.048/1.727, allocations: 281 MB / 0.8843 GB, free: 19.4 MB / 0.5105 GB Notification: Performance of FrontEnd: time 4.278e-06/1.727, allocations: 0 / 0.8843 GB, free: 19.4 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.001539/1.728, allocations: 279.9 kB / 0.8845 GB, free: 19.12 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5288 * Number of variables: 5288 Notification: Performance of Generate backend data structure: time 0.0535/1.782, allocations: 12.87 MB / 0.8971 GB, free: 6.152 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 7.688e-05/1.782, allocations: 8.031 kB / 0.8971 GB, free: 6.145 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01929/1.801, allocations: 2.615 MB / 0.8997 GB, free: 3.516 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07692/1.878, allocations: 18.46 MB / 0.9177 GB, free: 1.008 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4993/2.378, allocations: 14.08 MB / 0.9314 GB, free: 60.93 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001694/2.379, allocations: 1.07 MB / 0.9325 GB, free: 60.89 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01063/2.39, allocations: 1.418 MB / 0.9339 GB, free: 60.88 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1035/2.494, allocations: 35.32 MB / 0.9683 GB, free: 55.29 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001245/2.495, allocations: 129.3 kB / 0.9685 GB, free: 55.28 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008875/2.504, allocations: 0.6531 MB / 0.9691 GB, free: 55.28 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005778/2.51, allocations: 3.596 MB / 0.9726 GB, free: 55.25 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06951/2.579, allocations: 31.7 MB / 1.004 GB, free: 50.88 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2065/2.786, allocations: 137.2 MB / 1.138 GB, free: 5.605 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4913/3.277, allocations: 16.09 MB / 1.153 GB, free: 115.9 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01463/3.292, allocations: 9.236 MB / 1.162 GB, free: 115.8 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06804/3.36, allocations: 34.5 MB / 1.196 GB, free: 113.4 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.475e-05/3.36, allocations: 93.8 kB / 1.196 GB, free: 113.4 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=705): time 1.722e-05/3.36, allocations: 0 / 1.196 GB, free: 113.4 MB / 0.5886 GB Notification: Performance of matching and sorting (n=787): time 0.2024/3.562, allocations: 68.63 MB / 1.263 GB, free: 95.82 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001519/3.563, allocations: 308.1 kB / 1.263 GB, free: 95.54 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02186/3.585, allocations: 9.08 MB / 1.272 GB, free: 92.3 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.001957/3.587, allocations: 131.9 kB / 1.272 GB, free: 92.19 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.008489/3.595, allocations: 9.584 MB / 1.282 GB, free: 84.88 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.004521/3.6, allocations: 2.85 MB / 1.285 GB, free: 82.77 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003373/3.603, allocations: 340.5 kB / 1.285 GB, free: 82.5 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.002522/3.606, allocations: 1.083 MB / 1.286 GB, free: 81.66 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01456/3.62, allocations: 7.805 MB / 1.294 GB, free: 74.61 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02309/3.643, allocations: 17.14 MB / 1.31 GB, free: 54.38 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02051/3.664, allocations: 11.66 MB / 1.322 GB, free: 45.04 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0006992/3.665, allocations: 96 kB / 1.322 GB, free: 44.95 MB / 0.5886 GB Notification: Performance of matching and sorting (n=2328) (initialization): time 0.05951/3.724, allocations: 26.61 MB / 1.348 GB, free: 22.28 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002552/3.725, allocations: 147.9 kB / 1.348 GB, free: 22.14 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005598/3.725, allocations: 327.8 kB / 1.348 GB, free: 21.82 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006908/3.732, allocations: 2.395 MB / 1.351 GB, free: 19.95 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01646/3.749, allocations: 4.131 MB / 1.355 GB, free: 16.43 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4483/4.197, allocations: 14.56 MB / 1.369 GB, free: 93.59 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01822/4.215, allocations: 1.06 MB / 1.37 GB, free: 93.59 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005407/4.221, allocations: 0.967 MB / 1.371 GB, free: 93.59 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1479 * Number of states: 0 () * Number of discrete variables: 97 (torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedFrame3.color_x[3],fixedFrame3.color_x[2],fixedFrame3.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],gc2.fixedTranslation2.color[3],gc2.fixedTranslation2.color[2],gc2.fixedTranslation2.color[1],gc2.fixedTranslation1.color[3],gc2.fixedTranslation1.color[2],gc2.fixedTranslation1.color[1],gc2.actuatedRevolute_b.cylinderColor[3],gc2.actuatedRevolute_b.cylinderColor[2],gc2.actuatedRevolute_b.cylinderColor[1],gc2.actuatedRevolute_a.cylinderColor[3],gc2.actuatedRevolute_a.cylinderColor[2],gc2.actuatedRevolute_a.cylinderColor[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],gc1.fixedTranslation2.color[3],gc1.fixedTranslation2.color[2],gc1.fixedTranslation2.color[1],gc1.fixedTranslation1.color[3],gc1.fixedTranslation1.color[2],gc1.fixedTranslation1.color[1],gc1.actuatedRevolute_b.cylinderColor[3],gc1.actuatedRevolute_b.cylinderColor[2],gc1.actuatedRevolute_b.cylinderColor[1],gc1.actuatedRevolute_a.cylinderColor[3],gc1.actuatedRevolute_a.cylinderColor[2],gc1.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2132): * Single equations (assignments): 2115 * Array equations: 15 * 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 {(3,77.8%) 36,(3,77.8%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007117/4.228, allocations: 1.383 MB / 1.372 GB, free: 93.46 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0031/4.231, allocations: 0.9823 MB / 1.373 GB, free: 93.46 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03771/4.269, allocations: 15.07 MB / 1.388 GB, free: 93.07 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003658/4.269, allocations: 163.3 kB / 1.388 GB, free: 93.07 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-05/4.269, allocations: 13.41 kB / 1.388 GB, free: 93.07 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001926/4.269, allocations: 33.77 kB / 1.388 GB, free: 93.07 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08337/4.353, allocations: 33.33 MB / 1.421 GB, free: 91.54 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.867e-05/4.353, allocations: 5.625 kB / 1.421 GB, free: 91.54 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007826/4.361, allocations: 1.314 MB / 1.422 GB, free: 91.54 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006472/4.367, allocations: 1.772 MB / 1.424 GB, free: 91.52 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002136/4.369, allocations: 120.4 kB / 1.424 GB, free: 91.52 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01759/4.387, allocations: 12.92 MB / 1.436 GB, free: 85.49 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.701e-05/4.387, allocations: 9.281 kB / 1.436 GB, free: 85.49 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04322/4.43, allocations: 25.28 MB / 1.461 GB, free: 75.12 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005517/4.436, allocations: 0.9696 MB / 1.462 GB, free: 74.84 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004732/4.441, allocations: 119.3 kB / 1.462 GB, free: 74.76 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008242/4.449, allocations: 0.5044 MB / 1.463 GB, free: 74.68 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002474/4.452, allocations: 426.8 kB / 1.463 GB, free: 74.62 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001729/4.453, allocations: 181.1 kB / 1.463 GB, free: 74.58 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.01555/4.469, allocations: 6.268 MB / 1.469 GB, free: 72.49 MB / 0.5886 GB Notification: Performance of sort global known variables: time 9.42e-07/4.469, allocations: 0.9375 kB / 1.469 GB, free: 72.49 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.02161/4.491, allocations: 3.321 MB / 1.472 GB, free: 72.13 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 4 (gc1.actuatedRevolute_b.phi,gc1.actuatedRevolute_b.w,gc2.actuatedRevolute_b.phi,gc2.actuatedRevolute_b.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (611): * Single equations (assignments): 594 * Array equations: 15 * 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%) 32,(1,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03969/4.53, allocations: 26.74 MB / 1.499 GB, free: 60.12 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.03109/4.561, allocations: 18.75 MB / 1.517 GB, free: 44.59 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.385e-05/4.561, allocations: 0 / 1.517 GB, free: 44.59 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.01229/4.574, allocations: 7.279 MB / 1.524 GB, free: 38.1 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01026/4.584, allocations: 1.256 MB / 1.525 GB, free: 37.07 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1179/4.702, allocations: 33.13 MB / 1.558 GB, free: 8.199 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02644/4.728, allocations: 10.29 MB / 1.568 GB, free: 0.7617 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.04296/4.771, allocations: 8.061 MB / 1.575 GB, free: 0 / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.4906/5.262, allocations: 8.185 MB / 1.583 GB, free: 97.57 MB / 0.5886 GB Notification: Performance of SimCode: time 1.734e-06/5.262, allocations: 0 / 1.583 GB, free: 97.57 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8348/6.097, allocations: 231.6 MB / 1.81 GB, free: 53.06 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001461/6.097, allocations: 187.8 kB / 1.81 GB, free: 52.84 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.17/18.27, allocations: 1.281 kB / 1.81 GB, free: 52.84 MB / 0.6198 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat does not exist to compare? outputFormat=mat