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: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 114.4 kB / 17.78 MB, free: 5.266 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.001181/0.001181, allocations: 187.8 kB / 18.71 MB, free: 4.344 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.302/1.302, allocations: 222.9 MB / 242.4 MB, free: 15.19 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.1964/0.1964, allocations: 44.18 MB / 336.7 MB, free: 2.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 59.91 kB / 470.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.372/0.3733, allocations: 60.82 MB / 0.5189 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.01366/0.387, allocations: 13.62 MB / 0.5322 GB, free: 9.84 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01049/0.3975, allocations: 4.537 MB / 0.5366 GB, free: 6.262 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002431/0.4, allocations: 98.72 kB / 0.5367 GB, free: 6.238 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007407/0.4074, allocations: 4.198 MB / 0.5408 GB, free: 3.441 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00598/0.4135, allocations: 2.185 MB / 0.543 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002271/0.4158, allocations: 0.9297 MB / 0.5439 GB, free: 1.223 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008433/0.4242, allocations: 6.075 MB / 0.5498 GB, free: 12.37 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00552/0.4298, allocations: 5.221 MB / 0.5549 GB, free: 7.086 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003989/0.4338, allocations: 2.134 MB / 0.557 GB, free: 4.945 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004247/0.438, allocations: 2.831 MB / 0.5598 GB, free: 2.105 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001034/0.4391, allocations: 476 kB / 0.5602 GB, free: 1.641 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002571/0.4417, allocations: 1.358 MB / 0.5615 GB, free: 288 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002333/0.444, allocations: 2.556 MB / 0.564 GB, free: 13.72 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002989/0.447, allocations: 2.879 MB / 0.5668 GB, free: 10.82 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009129/0.4562, allocations: 9.185 MB / 0.5758 GB, free: 1.609 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.323e-06/0.4562, allocations: 7.938 kB / 0.5758 GB, free: 1.602 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4562, allocations: 0 / 0.5758 GB, free: 1.602 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002532/0.4565, allocations: 4 kB / 0.5758 GB, free: 1.598 MB / 430.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.01283/0.4693, allocations: 6.13 MB / 0.5818 GB, free: 11.39 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.4694, allocations: 8.031 kB / 0.5818 GB, free: 11.39 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01126/0.4806, allocations: 2.583 MB / 0.5843 GB, free: 8.793 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008156/0.4888, allocations: 3.871 MB / 0.5881 GB, free: 4.867 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002485/0.4891, allocations: 300.2 kB / 0.5884 GB, free: 4.574 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001267/0.4904, allocations: 435.8 kB / 0.5888 GB, free: 4.148 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01911/0.5095, allocations: 11.73 MB / 0.6003 GB, free: 7.668 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000141/0.5097, allocations: 59.48 kB / 0.6003 GB, free: 7.609 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004712/0.5102, allocations: 183.9 kB / 0.6005 GB, free: 7.43 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003428/0.5136, allocations: 2.085 MB / 0.6025 GB, free: 5.336 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0182/0.5318, allocations: 10.1 MB / 0.6124 GB, free: 11.23 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06072/0.5925, allocations: 45.75 MB / 0.6571 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01113/0.6037, allocations: 4.374 MB / 0.6614 GB, free: 7.559 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003431/0.6072, allocations: 2.475 MB / 0.6638 GB, free: 5.074 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01553/0.6228, allocations: 9.855 MB / 0.6734 GB, free: 11.05 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.303e-05/0.6228, allocations: 47.56 kB / 0.6734 GB, free: 11 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=171): time 4.298e-06/0.6229, allocations: 0 / 0.6734 GB, free: 11 MB / 0.5294 GB Notification: Performance of matching and sorting (n=197): time 0.05742/0.6803, allocations: 19.96 MB / 0.6929 GB, free: 6.906 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001406/0.6805, allocations: 209.2 kB / 0.6931 GB, free: 6.656 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008329/0.6888, allocations: 4.717 MB / 0.6977 GB, free: 1.93 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0004036/0.6892, allocations: 53.7 kB / 0.6978 GB, free: 1.871 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002798/0.6921, allocations: 3.599 MB / 0.7013 GB, free: 14.22 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.00106/0.6931, allocations: 0.7637 MB / 0.7021 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002747/0.6959, allocations: 1.337 MB / 0.7034 GB, free: 12.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001003/0.696, allocations: 309 kB / 0.7037 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003788/0.6998, allocations: 2.41 MB / 0.706 GB, free: 9.379 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006896/0.7067, allocations: 6.27 MB / 0.7121 GB, free: 1.199 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01204/0.7188, allocations: 9.324 MB / 0.7212 GB, free: 5.98 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000143/0.719, allocations: 36 kB / 0.7213 GB, free: 5.945 MB / 0.5762 GB Notification: Performance of matching and sorting (n=858) (initialization): time 0.2928/1.012, allocations: 9.788 MB / 0.7308 GB, free: 176.5 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001516/1.012, allocations: 66.12 kB / 0.7309 GB, free: 176.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003299/1.012, allocations: 135.1 kB / 0.731 GB, free: 176.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004446/1.017, allocations: 1.611 MB / 0.7326 GB, free: 176.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004731/1.021, allocations: 1.489 MB / 0.7341 GB, free: 176.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01208/1.034, allocations: 10.26 MB / 0.7441 GB, free: 171.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004615/1.038, allocations: 368.4 kB / 0.7444 GB, free: 171.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001025/1.039, allocations: 395.9 kB / 0.7448 GB, free: 171.1 MB / 0.5762 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 (796): * Single equations (assignments): 791 * 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 {(3,31,77.8%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004152/1.043, allocations: 2.479 MB / 0.7472 GB, free: 170.1 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009019/1.044, allocations: 412.7 kB / 0.7476 GB, free: 170.1 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007385/1.052, allocations: 4.235 MB / 0.7518 GB, free: 168.6 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.827e-05/1.052, allocations: 19 kB / 0.7518 GB, free: 168.6 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.482e-05/1.052, allocations: 11.38 kB / 0.7518 GB, free: 168.6 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.27e-05/1.052, allocations: 14.94 kB / 0.7518 GB, free: 168.6 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01874/1.071, allocations: 9.714 MB / 0.7613 GB, free: 164.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.526e-05/1.071, allocations: 2.562 kB / 0.7613 GB, free: 164.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001365/1.072, allocations: 295.9 kB / 0.7616 GB, free: 164.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003575/1.076, allocations: 1.361 MB / 0.7629 GB, free: 163.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00019/1.076, allocations: 40.98 kB / 0.7629 GB, free: 163.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009214/1.085, allocations: 9.383 MB / 0.7721 GB, free: 154.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/1.085, allocations: 3.938 kB / 0.7721 GB, free: 154.3 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009026/1.094, allocations: 6.98 MB / 0.7789 GB, free: 147.6 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001112/1.095, allocations: 458.9 kB / 0.7794 GB, free: 147.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008162/1.096, allocations: 32 kB / 0.7794 GB, free: 147.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001731/1.098, allocations: 111.8 kB / 0.7795 GB, free: 147.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003118/1.098, allocations: 117.1 kB / 0.7796 GB, free: 147 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001237/1.098, allocations: 55.98 kB / 0.7797 GB, free: 146.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00379/1.102, allocations: 2.972 MB / 0.7826 GB, free: 143.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.2e-07/1.102, allocations: 0 / 0.7826 GB, free: 143.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004637/1.107, allocations: 1.204 MB / 0.7837 GB, free: 142.7 MB / 0.5762 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.0003626/1.107, allocations: 169.5 kB / 0.7839 GB, free: 142.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.007579/1.115, allocations: 5.983 MB / 0.7897 GB, free: 136.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/1.115, allocations: 4.188 kB / 0.7897 GB, free: 136.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002703/1.117, allocations: 2.013 MB / 0.7917 GB, free: 134.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003825/1.121, allocations: 0.5286 MB / 0.7922 GB, free: 134 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01613/1.137, allocations: 11.12 MB / 0.8031 GB, free: 122.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004106/1.142, allocations: 3.864 MB / 0.8069 GB, free: 119 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003714/1.145, allocations: 1.988 MB / 0.8088 GB, free: 117 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006098/1.146, allocations: 275.3 kB / 0.8091 GB, free: 116.7 MB / 0.5762 GB Notification: Performance of SimCode: time 9.12e-07/1.146, allocations: 0 / 0.8091 GB, free: 116.7 MB / 0.5762 GB Notification: Performance of Templates: time 0.06471/1.211, allocations: 42.13 MB / 0.8502 GB, free: 74.93 MB / 0.5762 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/GearConstraint/GearConstraint.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches