Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.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) 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(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_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.001502/0.001502, allocations: 107.4 kB / 17.06 MB, free: 5.82 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.001686/0.001686, allocations: 195.9 kB / 18 MB, free: 4.965 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.36/1.36, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009801/0.0009801, allocations: 43.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2554/0.2564, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01433/0.2708, allocations: 13.58 MB / 413.8 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00919/0.28, allocations: 4.543 MB / 418.4 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002591/0.2827, allocations: 95.69 kB / 418.4 MB, free: 6.535 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007635/0.2904, allocations: 4.213 MB / 422.7 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005893/0.2963, allocations: 2.226 MB / 424.9 MB, free: 76 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002188/0.2985, allocations: 0.9283 MB / 425.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008385/0.3069, allocations: 6.06 MB / 431.9 MB, free: 9.074 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006288/0.3133, allocations: 5.215 MB / 437.1 MB, free: 3.793 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004098/0.3174, allocations: 2.146 MB / 439.2 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004151/0.3216, allocations: 2.824 MB / 442.1 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001011/0.3226, allocations: 476 kB / 442.5 MB, free: 14.34 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002612/0.3252, allocations: 1.358 MB / 443.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002951/0.3282, allocations: 2.564 MB / 446.4 MB, free: 10.41 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004907/0.3331, allocations: 2.937 MB / 449.4 MB, free: 7.461 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01131/0.3445, allocations: 9.347 MB / 458.7 MB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/0.3445, allocations: 0 / 458.7 MB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3445, allocations: 4 kB / 458.7 MB, free: 14.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002572/0.3448, allocations: 0 / 458.7 MB, free: 14.07 MB / 382.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.0142/0.359, allocations: 6.48 MB / 465.2 MB, free: 7.512 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/0.3591, allocations: 12.03 kB / 465.2 MB, free: 7.5 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001496/0.3606, allocations: 0.8431 MB / 466.1 MB, free: 6.648 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04384/0.4044, allocations: 6.09 MB / 472.2 MB, free: 0.5469 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01455/0.419, allocations: 4.439 MB / 476.6 MB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000425/0.4195, allocations: 308.2 kB / 476.9 MB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002257/0.4218, allocations: 435.6 kB / 477.3 MB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0326/0.4544, allocations: 11.61 MB / 488.9 MB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003116/0.4548, allocations: 51.59 kB / 489 MB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001362/0.4562, allocations: 187.9 kB / 489.2 MB, free: 14.74 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003902/0.4601, allocations: 2.093 MB / 491.3 MB, free: 12.64 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02104/0.4812, allocations: 9.839 MB / 0.4894 GB, free: 2.789 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06461/0.5458, allocations: 45.27 MB / 0.5336 GB, free: 4.137 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2121/0.758, allocations: 4.235 MB / 0.5377 GB, free: 128.5 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003733/0.7618, allocations: 2.346 MB / 0.54 GB, free: 128.1 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0148/0.7766, allocations: 9.452 MB / 0.5492 GB, free: 123.7 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.839e-05/0.7767, allocations: 53.69 kB / 0.5493 GB, free: 123.6 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 5.27e-06/0.7767, allocations: 0.75 kB / 0.5493 GB, free: 123.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.04419/0.8209, allocations: 18.52 MB / 0.5674 GB, free: 111.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.404e-05/0.821, allocations: 205.2 kB / 0.5676 GB, free: 111.6 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005464/0.8265, allocations: 4.725 MB / 0.5722 GB, free: 107 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003546/0.8269, allocations: 57.7 kB / 0.5722 GB, free: 106.9 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001916/0.8288, allocations: 3.785 MB / 0.5759 GB, free: 103.4 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008713/0.8297, allocations: 0.7855 MB / 0.5767 GB, free: 102.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001522/0.8312, allocations: 1.274 MB / 0.5779 GB, free: 101.4 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.942e-05/0.8313, allocations: 301.1 kB / 0.5782 GB, free: 101.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002511/0.8338, allocations: 2.187 MB / 0.5804 GB, free: 98.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003859/0.8377, allocations: 6.032 MB / 0.5862 GB, free: 91.02 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007237/0.845, allocations: 8.929 MB / 0.595 GB, free: 80.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.438e-05/0.8451, allocations: 42.34 kB / 0.595 GB, free: 80.16 MB / 462.1 MB Notification: Performance of matching and sorting (n=818) (initialization): time 0.01386/0.859, allocations: 8.812 MB / 0.6036 GB, free: 71.34 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.49e-05/0.8591, allocations: 64.06 kB / 0.6037 GB, free: 71.27 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001534/0.8593, allocations: 136 kB / 0.6038 GB, free: 71.14 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002786/0.862, allocations: 1.074 MB / 0.6049 GB, free: 70.06 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004181/0.8663, allocations: 1.427 MB / 0.6062 GB, free: 68.63 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008473/0.8747, allocations: 8.856 MB / 0.6149 GB, free: 59.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004691/0.8795, allocations: 343.3 kB / 0.6152 GB, free: 59.17 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008336/0.8803, allocations: 384 kB / 0.6156 GB, free: 58.79 MB / 462.1 MB 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,33,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003163/0.8835, allocations: 2.482 MB / 0.618 GB, free: 56.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006915/0.8842, allocations: 434.2 kB / 0.6184 GB, free: 55.87 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005321/0.8895, allocations: 3.491 MB / 0.6218 GB, free: 52.37 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-05/0.8896, allocations: 20 kB / 0.6219 GB, free: 52.35 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.8896, allocations: 8 kB / 0.6219 GB, free: 52.34 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.619e-05/0.8896, allocations: 7.969 kB / 0.6219 GB, free: 52.33 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0142/0.9038, allocations: 8.997 MB / 0.6307 GB, free: 43.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.288e-05/0.9039, allocations: 4 kB / 0.6307 GB, free: 43.29 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001374/0.9053, allocations: 309.1 kB / 0.631 GB, free: 42.99 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002474/0.9078, allocations: 0.8484 MB / 0.6318 GB, free: 42.14 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001928/0.908, allocations: 39.98 kB / 0.6318 GB, free: 42.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007406/0.9154, allocations: 7.9 MB / 0.6395 GB, free: 33.92 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.9154, allocations: 8.062 kB / 0.6395 GB, free: 33.91 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007696/0.9231, allocations: 6.076 MB / 0.6455 GB, free: 27.81 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001091/0.9242, allocations: 482.1 kB / 0.6459 GB, free: 27.32 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005979/0.9249, allocations: 28 kB / 0.646 GB, free: 27.29 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0016/0.9265, allocations: 95.88 kB / 0.6461 GB, free: 27.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003515/0.9268, allocations: 121.1 kB / 0.6462 GB, free: 27.08 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000127/0.927, allocations: 55.92 kB / 0.6462 GB, free: 27.02 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004066/0.931, allocations: 2.985 MB / 0.6491 GB, free: 24.04 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.9311, allocations: 3.938 kB / 0.6491 GB, free: 24.04 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005074/0.9361, allocations: 1.144 MB / 0.6503 GB, free: 22.89 MB / 462.1 MB 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,27,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008081/0.9442, allocations: 6.736 MB / 0.6568 GB, free: 16.12 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007553/0.9518, allocations: 5.556 MB / 0.6623 GB, free: 10.56 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/0.9519, allocations: 0 / 0.6623 GB, free: 10.56 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002651/0.9545, allocations: 1.889 MB / 0.6641 GB, free: 8.648 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003399/0.958, allocations: 0.5846 MB / 0.6647 GB, free: 8.07 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07563/1.034, allocations: 51.36 MB / 0.7148 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005029/1.039, allocations: 3.868 MB / 0.7186 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004565/1.043, allocations: 1.989 MB / 0.7206 GB, free: 8.773 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003357/1.047, allocations: 2.362 MB / 0.7229 GB, free: 6.41 MB / 0.5137 GB Notification: Performance of SimCode: time 1.062e-06/1.047, allocations: 0 / 0.7229 GB, free: 6.41 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3343/1.381, allocations: 83.41 MB / 0.8043 GB, free: 115.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.58/26.96, allocations: 1.375 kB / 0.8043 GB, free: 115.2 MB / 0.5137 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches