Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001275/0.001275, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001531/0.001531, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.622/1.622, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2915/0.2915, allocations: 46.09 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001535, allocations: 75.88 kB / 480.8 MB, free: 4.562 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3547/0.3563, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.01451/0.3708, allocations: 13.5 MB / 0.5437 GB, free: 2.801 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01111/0.382, allocations: 4.539 MB / 0.5481 GB, free: 15.22 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003068/0.3851, allocations: 93.84 kB / 0.5482 GB, free: 15.2 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008005/0.3931, allocations: 4.187 MB / 0.5523 GB, free: 11.4 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00617/0.3994, allocations: 2.179 MB / 0.5544 GB, free: 9.211 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002676/0.4021, allocations: 0.936 MB / 0.5554 GB, free: 8.273 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009261/0.4114, allocations: 6.124 MB / 0.5613 GB, free: 2.137 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007945/0.4193, allocations: 5.209 MB / 0.5664 GB, free: 12.86 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00427/0.4237, allocations: 2.119 MB / 0.5685 GB, free: 10.74 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004578/0.4283, allocations: 2.804 MB / 0.5712 GB, free: 7.926 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001636/0.4299, allocations: 472 kB / 0.5717 GB, free: 7.465 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003428/0.4334, allocations: 1.342 MB / 0.573 GB, free: 6.121 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003131/0.4366, allocations: 2.517 MB / 0.5754 GB, free: 3.598 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005088/0.4417, allocations: 2.898 MB / 0.5783 GB, free: 0.6836 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01218/0.4539, allocations: 9.2 MB / 0.5873 GB, free: 7.445 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.4539, allocations: 0 / 0.5873 GB, free: 7.445 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4539, allocations: 0 / 0.5873 GB, free: 7.445 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003668/0.4543, allocations: 0 / 0.5873 GB, free: 7.445 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1731 * Number of variables: 1731 Notification: Performance of Generate backend data structure: time 0.01695/0.4713, allocations: 6.418 MB / 0.5935 GB, free: 0.9453 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.103e-05/0.4714, allocations: 8.031 kB / 0.5935 GB, free: 0.9375 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002469/0.4738, allocations: 0.8345 MB / 0.5944 GB, free: 96 kB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03604/0.5099, allocations: 6.088 MB / 0.6003 GB, free: 9.988 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01064/0.5206, allocations: 4.232 MB / 0.6044 GB, free: 5.703 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003123/0.5209, allocations: 302.2 kB / 0.6047 GB, free: 5.41 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001787/0.5227, allocations: 423.8 kB / 0.6051 GB, free: 4.996 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02345/0.5462, allocations: 11.42 MB / 0.6163 GB, free: 8.832 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002797/0.5465, allocations: 63.52 kB / 0.6163 GB, free: 8.77 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001419/0.548, allocations: 187.8 kB / 0.6165 GB, free: 8.586 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003498/0.5515, allocations: 2.026 MB / 0.6185 GB, free: 6.555 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02033/0.5718, allocations: 9.682 MB / 0.6279 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06085/0.6327, allocations: 44.85 MB / 0.6717 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01089/0.6437, allocations: 4.245 MB / 0.6759 GB, free: 10.26 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003326/0.6471, allocations: 2.342 MB / 0.6782 GB, free: 7.906 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01692/0.664, allocations: 9.432 MB / 0.6874 GB, free: 14.31 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.587e-05/0.6641, allocations: 59.5 kB / 0.6874 GB, free: 14.24 MB / 0.545 GB Notification: Performance of pre-optimization done (n=171): time 5.39e-06/0.6641, allocations: 0 / 0.6874 GB, free: 14.24 MB / 0.545 GB Notification: Performance of matching and sorting (n=197): time 0.0516/0.7157, allocations: 18.46 MB / 0.7055 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001476/0.7159, allocations: 201.2 kB / 0.7057 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007047/0.723, allocations: 4.71 MB / 0.7103 GB, free: 6.746 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0004267/0.7235, allocations: 57.7 kB / 0.7103 GB, free: 6.684 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002616/0.7261, allocations: 3.74 MB / 0.714 GB, free: 2.91 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009707/0.7271, allocations: 0.7872 MB / 0.7147 GB, free: 2.117 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001811/0.7289, allocations: 1.278 MB / 0.716 GB, free: 0.8281 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.824e-05/0.729, allocations: 301.1 kB / 0.7163 GB, free: 0.5312 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2619/0.9909, allocations: 2.184 MB / 0.7184 GB, free: 164.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00559/0.9966, allocations: 6.008 MB / 0.7243 GB, free: 158.5 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00895/1.006, allocations: 8.892 MB / 0.733 GB, free: 151 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002054/1.006, allocations: 38.09 kB / 0.733 GB, free: 151 MB / 0.5606 GB Notification: Performance of matching and sorting (n=815) (initialization): time 0.01558/1.021, allocations: 8.778 MB / 0.7416 GB, free: 147.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.61e-05/1.022, allocations: 62.72 kB / 0.7416 GB, free: 147.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001426/1.022, allocations: 134.4 kB / 0.7418 GB, free: 147.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00292/1.025, allocations: 1.079 MB / 0.7428 GB, free: 147.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004254/1.029, allocations: 1.421 MB / 0.7442 GB, free: 147.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008708/1.038, allocations: 8.851 MB / 0.7528 GB, free: 139.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004575/1.042, allocations: 347.2 kB / 0.7532 GB, free: 139.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007603/1.043, allocations: 380 kB / 0.7535 GB, free: 139.1 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 614 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.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 (753): * Single equations (assignments): 748 * 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.003244/1.046, allocations: 2.45 MB / 0.7559 GB, free: 136.7 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006631/1.047, allocations: 438.5 kB / 0.7563 GB, free: 136.5 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005442/1.052, allocations: 3.495 MB / 0.7598 GB, free: 133 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.023e-05/1.052, allocations: 20 kB / 0.7598 GB, free: 133 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.136e-05/1.052, allocations: 12 kB / 0.7598 GB, free: 132.9 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.779e-05/1.053, allocations: 7.969 kB / 0.7598 GB, free: 132.9 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01343/1.066, allocations: 8.939 MB / 0.7685 GB, free: 124 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.454e-05/1.066, allocations: 0 / 0.7685 GB, free: 124 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001368/1.067, allocations: 303.5 kB / 0.7688 GB, free: 123.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002453/1.07, allocations: 0.8438 MB / 0.7696 GB, free: 122.9 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002327/1.07, allocations: 39.98 kB / 0.7697 GB, free: 122.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007548/1.078, allocations: 7.924 MB / 0.7774 GB, free: 114.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/1.078, allocations: 7.938 kB / 0.7774 GB, free: 114.7 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007921/1.086, allocations: 6.074 MB / 0.7834 GB, free: 108.8 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001151/1.087, allocations: 481.2 kB / 0.7838 GB, free: 108.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006349/1.087, allocations: 28 kB / 0.7838 GB, free: 108.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001622/1.089, allocations: 103.9 kB / 0.7839 GB, free: 108.1 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004024/1.09, allocations: 117.1 kB / 0.7841 GB, free: 108 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001348/1.09, allocations: 51.98 kB / 0.7841 GB, free: 108 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004082/1.094, allocations: 2.977 MB / 0.787 GB, free: 105 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.51e-07/1.094, allocations: 0 / 0.787 GB, free: 105 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005911/1.1, allocations: 1.122 MB / 0.7881 GB, free: 103.9 MB / 0.5606 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 (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.008263/1.108, allocations: 6.736 MB / 0.7947 GB, free: 97.13 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.008241/1.116, allocations: 5.537 MB / 0.8001 GB, free: 91.59 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.295e-06/1.116, allocations: 0 / 0.8001 GB, free: 91.59 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002625/1.119, allocations: 1.886 MB / 0.8019 GB, free: 89.68 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003792/1.123, allocations: 0.5777 MB / 0.8025 GB, free: 89.12 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07116/1.194, allocations: 51.15 MB / 0.8524 GB, free: 31.97 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004908/1.199, allocations: 3.819 MB / 0.8562 GB, free: 28.11 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004403/1.203, allocations: 1.992 MB / 0.8581 GB, free: 26.11 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003115/1.207, allocations: 2.323 MB / 0.8604 GB, free: 23.79 MB / 0.5606 GB Notification: Performance of SimCode: time 1.623e-06/1.207, allocations: 0 / 0.8604 GB, free: 23.79 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1348/1.341, allocations: 83.03 MB / 0.9415 GB, free: 5.195 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.97/28.31, allocations: 8 kB / 0.9415 GB, free: 5.188 MB / 0.6231 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches