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.001144/0.001144, allocations: 110.8 kB / 17.33 MB, free: 6.023 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.001147/0.001147, allocations: 193.3 kB / 18.25 MB, free: 5.117 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.463/1.463, allocations: 222.9 MB / 241.9 MB, free: 13.71 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.2132/0.2132, allocations: 44.17 MB / 336.2 MB, free: 2.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001651/0.001652, allocations: 63.64 kB / 407.9 MB, free: 27.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1355/0.1372, allocations: 60.83 MB / 468.7 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.3133/0.4506, allocations: 69.57 MB / 0.5257 GB, free: 9.965 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.05049/0.5012, allocations: 13.84 MB / 0.5392 GB, free: 4.453 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0232/0.5244, allocations: 304.3 kB / 0.5395 GB, free: 4.406 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01061/0.5351, allocations: 4.06 MB / 0.5434 GB, free: 3.078 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009668/0.5449, allocations: 2.037 MB / 0.5454 GB, free: 1.895 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003823/0.5487, allocations: 0.8699 MB / 0.5463 GB, free: 1.363 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01116/0.5599, allocations: 6.464 MB / 0.5526 GB, free: 14.2 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007055/0.567, allocations: 5.51 MB / 0.558 GB, free: 9.211 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003729/0.5708, allocations: 2.181 MB / 0.5601 GB, free: 7.023 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00442/0.5752, allocations: 3.124 MB / 0.5632 GB, free: 3.891 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009085/0.5761, allocations: 472 kB / 0.5636 GB, free: 3.43 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002886/0.579, allocations: 1.381 MB / 0.565 GB, free: 2.047 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002405/0.5815, allocations: 2.58 MB / 0.5675 GB, free: 15.46 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002829/0.5843, allocations: 2.918 MB / 0.5703 GB, free: 12.53 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01016/0.5945, allocations: 8.988 MB / 0.5791 GB, free: 3.512 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.5945, allocations: 0 / 0.5791 GB, free: 3.512 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.5945, allocations: 0 / 0.5791 GB, free: 3.512 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002391/0.5948, allocations: 0 / 0.5791 GB, free: 3.512 MB / 414.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.01329/0.6081, allocations: 6.134 MB / 0.5851 GB, free: 13.3 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.6081, allocations: 12.03 kB / 0.5851 GB, free: 13.29 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01172/0.6199, allocations: 2.571 MB / 0.5876 GB, free: 10.71 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008175/0.6281, allocations: 3.805 MB / 0.5913 GB, free: 6.852 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002162/0.6283, allocations: 304.2 kB / 0.5916 GB, free: 6.555 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001085/0.6294, allocations: 439.9 kB / 0.592 GB, free: 6.125 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02107/0.6505, allocations: 11.73 MB / 0.6035 GB, free: 9.652 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001611/0.6507, allocations: 63.41 kB / 0.6036 GB, free: 9.59 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005437/0.6512, allocations: 191.9 kB / 0.6037 GB, free: 9.402 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003417/0.6547, allocations: 2.085 MB / 0.6058 GB, free: 7.312 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02115/0.6758, allocations: 10.09 MB / 0.6156 GB, free: 13.2 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0669/0.7428, allocations: 45.97 MB / 0.6605 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01174/0.7546, allocations: 4.363 MB / 0.6648 GB, free: 9.332 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00359/0.7582, allocations: 2.47 MB / 0.6672 GB, free: 6.852 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01748/0.7757, allocations: 9.855 MB / 0.6768 GB, free: 12.83 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.815e-05/0.7758, allocations: 55.5 kB / 0.6769 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=171): time 4.97e-06/0.7758, allocations: 0 / 0.6769 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of matching and sorting (n=197): time 0.05881/0.8346, allocations: 19.95 MB / 0.6964 GB, free: 8.691 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001188/0.8348, allocations: 205.2 kB / 0.6966 GB, free: 8.449 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00708/0.8419, allocations: 4.709 MB / 0.7012 GB, free: 3.73 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005746/0.8425, allocations: 57.7 kB / 0.7012 GB, free: 3.668 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003392/0.8459, allocations: 3.591 MB / 0.7047 GB, free: 28 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.2806/1.127, allocations: 0.7573 MB / 0.7055 GB, free: 191.1 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00258/1.129, allocations: 1.348 MB / 0.7068 GB, free: 191 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.075e-05/1.129, allocations: 306 kB / 0.7071 GB, free: 190.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004191/1.133, allocations: 2.41 MB / 0.7094 GB, free: 190.3 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006277/1.14, allocations: 6.275 MB / 0.7155 GB, free: 184.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01176/1.151, allocations: 9.325 MB / 0.7247 GB, free: 176.6 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002572/1.152, allocations: 39.91 kB / 0.7247 GB, free: 176.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=858) (initialization): time 0.02023/1.172, allocations: 9.793 MB / 0.7343 GB, free: 173.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001209/1.172, allocations: 68.88 kB / 0.7343 GB, free: 173.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001893/1.172, allocations: 143.6 kB / 0.7345 GB, free: 173.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004332/1.177, allocations: 1.615 MB / 0.736 GB, free: 173 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004824/1.182, allocations: 1.487 MB / 0.7375 GB, free: 172.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01186/1.193, allocations: 10.26 MB / 0.7475 GB, free: 165.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006431/1.2, allocations: 358.7 kB / 0.7478 GB, free: 165.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001635/1.202, allocations: 391.9 kB / 0.7482 GB, free: 165.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 (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.005757/1.207, allocations: 2.477 MB / 0.7506 GB, free: 163.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001302/1.209, allocations: 414.3 kB / 0.751 GB, free: 162.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008548/1.217, allocations: 4.236 MB / 0.7552 GB, free: 158.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.625e-05/1.217, allocations: 20 kB / 0.7552 GB, free: 158.8 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.758e-05/1.217, allocations: 8 kB / 0.7552 GB, free: 158.8 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-05/1.217, allocations: 11.95 kB / 0.7552 GB, free: 158.8 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01988/1.237, allocations: 9.774 MB / 0.7648 GB, free: 149 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.109e-05/1.237, allocations: 0 / 0.7648 GB, free: 149 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001514/1.239, allocations: 303.6 kB / 0.765 GB, free: 148.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003847/1.243, allocations: 1.366 MB / 0.7664 GB, free: 147.3 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003332/1.243, allocations: 28 kB / 0.7664 GB, free: 147.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009747/1.253, allocations: 9.394 MB / 0.7756 GB, free: 137.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/1.253, allocations: 4.031 kB / 0.7756 GB, free: 137.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00989/1.263, allocations: 6.97 MB / 0.7824 GB, free: 130.6 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001409/1.264, allocations: 455.7 kB / 0.7828 GB, free: 130.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00113/1.265, allocations: 35.98 kB / 0.7829 GB, free: 130.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002224/1.268, allocations: 115.8 kB / 0.783 GB, free: 130 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000455/1.268, allocations: 117.1 kB / 0.7831 GB, free: 129.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001428/1.268, allocations: 55.98 kB / 0.7831 GB, free: 129.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004219/1.273, allocations: 2.968 MB / 0.786 GB, free: 126.9 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.272e-06/1.273, allocations: 4 kB / 0.786 GB, free: 126.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006773/1.279, allocations: 1.201 MB / 0.7872 GB, free: 125.7 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 (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.000524/1.28, allocations: 170.7 kB / 0.7874 GB, free: 125.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0112/1.291, allocations: 7.034 MB / 0.7942 GB, free: 118.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/1.291, allocations: 192 / 0.7942 GB, free: 118.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002695/1.294, allocations: 2.013 MB / 0.7962 GB, free: 116.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003267/1.297, allocations: 0.5491 MB / 0.7967 GB, free: 115.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01908/1.316, allocations: 13.66 MB / 0.8101 GB, free: 102.2 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003836/1.32, allocations: 3.856 MB / 0.8139 GB, free: 98.33 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004439/1.325, allocations: 1.992 MB / 0.8158 GB, free: 96.33 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007447/1.325, allocations: 273 kB / 0.8161 GB, free: 96.07 MB / 0.5294 GB Notification: Performance of SimCode: time 9.91e-07/1.325, allocations: 0 / 0.8161 GB, free: 96.07 MB / 0.5294 GB Notification: Performance of Templates: time 0.08189/1.407, allocations: 45.47 MB / 0.8605 GB, free: 50.84 MB / 0.5294 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