Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.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: translateModel(ModelicaTest.MultiBody.Joints.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.Joints.GearConstraint") translateModel(ModelicaTest.MultiBody.Joints.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.Joints.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001785/0.001785, allocations: 174.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 221.5 MB / 230.7 MB, free: 7.57 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.0009458/0.0009457, allocations: 86.97 kB / 281.6 MB, free: 5.332 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1938/0.1938, allocations: 44.15 MB / 376.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.583e-05/2.565e-05, allocations: 4.219 kB / 444.6 MB, free: 15.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1725/0.1725, allocations: 61.91 MB / 0.4947 GB, free: 1.258 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.439/0.6116, allocations: 110.8 MB / 0.6029 GB, free: 1.648 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002493/0.6119, allocations: 75.97 kB / 0.603 GB, free: 1.574 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7201/1.332, allocations: 158.8 MB / 0.7581 GB, free: 100.3 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.743e-06/1.332, allocations: 0 / 0.7581 GB, free: 100.3 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003711/1.332, allocations: 160.2 kB / 0.7583 GB, free: 100.3 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3026 * Number of variables: 3026 Notification: Performance of Generate backend data structure: time 0.02578/1.358, allocations: 7.345 MB / 0.7654 GB, free: 97.11 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.568e-05/1.358, allocations: 11.36 kB / 0.7654 GB, free: 97.11 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04025/1.399, allocations: 10.02 MB / 0.7752 GB, free: 95.88 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02136/1.42, allocations: 8.019 MB / 0.7831 GB, free: 92.54 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005841/1.421, allocations: 261.6 kB / 0.7833 GB, free: 92.54 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005034/1.426, allocations: 486.7 kB / 0.7838 GB, free: 92.52 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0226/1.448, allocations: 12.78 MB / 0.7962 GB, free: 80.68 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04521/1.494, allocations: 18.37 MB / 0.8142 GB, free: 60.88 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005817/1.494, allocations: 87.12 kB / 0.8143 GB, free: 60.8 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004079/1.498, allocations: 44 kB / 0.8143 GB, free: 60.75 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002748/1.501, allocations: 2.057 MB / 0.8163 GB, free: 58.7 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09749/1.599, allocations: 79.65 MB / 0.8941 GB, free: 9.41 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009861/1.608, allocations: 7.838 MB / 0.9018 GB, free: 1.215 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.3207/1.929, allocations: 4.823 MB / 0.9065 GB, free: 123.8 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003124/1.93, allocations: 58.34 kB / 0.9065 GB, free: 123.8 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.084e-05/1.93, allocations: 76.34 kB / 0.9066 GB, free: 123.8 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=431): time 7.504e-06/1.93, allocations: 0 / 0.9066 GB, free: 123.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=479): time 0.08089/2.011, allocations: 37.93 MB / 0.9436 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.968e-05/2.011, allocations: 227.8 kB / 0.9439 GB, free: 118.5 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008358/2.019, allocations: 5.057 MB / 0.9488 GB, free: 116.7 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001231/2.02, allocations: 25.7 kB / 0.9488 GB, free: 116.6 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003818/2.024, allocations: 5.716 MB / 0.9544 GB, free: 112.3 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002377/2.027, allocations: 1.697 MB / 0.9561 GB, free: 111 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000754/2.027, allocations: 0 / 0.9561 GB, free: 111 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000631/2.028, allocations: 0.8039 MB / 0.9568 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005249/2.033, allocations: 4.5 MB / 0.9612 GB, free: 108.9 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009029/2.042, allocations: 10.86 MB / 0.9718 GB, free: 98.78 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01003/2.052, allocations: 7.012 MB / 0.9787 GB, free: 96.65 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003611/2.053, allocations: 63.41 kB / 0.9788 GB, free: 96.65 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1517) (initialization): time 0.03085/2.084, allocations: 15.39 MB / 0.9938 GB, free: 91.07 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003517/2.084, allocations: 100 kB / 0.9939 GB, free: 90.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004714/2.084, allocations: 224 kB / 0.9941 GB, free: 90.76 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004209/2.089, allocations: 1.704 MB / 0.9958 GB, free: 89.43 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009393/2.098, allocations: 2.65 MB / 0.9983 GB, free: 87.15 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01296/2.111, allocations: 13.24 MB / 1.011 GB, free: 74.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008471/2.12, allocations: 458.6 kB / 1.012 GB, free: 74.42 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002609/2.122, allocations: 0.6481 MB / 1.012 GB, free: 73.79 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1028 * Number of states: 0 () * Number of discrete variables: 53 (fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixed.color[3],fixed.color[2],fixed.color[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],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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1393): * Single equations (assignments): 1380 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 42,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003734/2.126, allocations: 0.6618 MB / 1.013 GB, free: 73.12 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001996/2.128, allocations: 0.5745 MB / 1.014 GB, free: 72.54 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0161/2.144, allocations: 8.789 MB / 1.022 GB, free: 65.22 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001265/2.144, allocations: 97.94 kB / 1.022 GB, free: 65.13 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.334e-05/2.144, allocations: 12 kB / 1.022 GB, free: 65.12 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.318e-05/2.144, allocations: 22.52 kB / 1.022 GB, free: 65.12 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03853/2.183, allocations: 19.09 MB / 1.041 GB, free: 49.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.394e-05/2.183, allocations: 12 kB / 1.041 GB, free: 49.09 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00394/2.187, allocations: 0.748 MB / 1.042 GB, free: 48.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003827/2.191, allocations: 1.341 MB / 1.043 GB, free: 47.53 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009397/2.192, allocations: 23.89 kB / 1.043 GB, free: 47.51 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01154/2.203, allocations: 12.14 MB / 1.055 GB, free: 36.09 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.377e-05/2.203, allocations: 19.88 kB / 1.055 GB, free: 36.07 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02058/2.224, allocations: 16.01 MB / 1.07 GB, free: 21.05 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001881/2.226, allocations: 0.5815 MB / 1.071 GB, free: 20.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002085/2.228, allocations: 19.61 kB / 1.071 GB, free: 20.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004275/2.232, allocations: 239.9 kB / 1.071 GB, free: 20.31 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001069/2.233, allocations: 283.5 kB / 1.072 GB, free: 20.12 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007027/2.234, allocations: 124.9 kB / 1.072 GB, free: 20 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.008403/2.243, allocations: 3.352 MB / 1.075 GB, free: 17.11 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.42e-07/2.243, allocations: 4 kB / 1.075 GB, free: 17.1 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01303/2.256, allocations: 1.709 MB / 1.077 GB, free: 15.4 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (362): * Single equations (assignments): 349 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 39,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001388/2.257, allocations: 180.9 kB / 1.077 GB, free: 15.23 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01672/2.274, allocations: 11.09 MB / 1.088 GB, free: 5.09 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.345e-05/2.274, allocations: 4 kB / 1.088 GB, free: 5.086 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006955/2.281, allocations: 4.5 MB / 1.092 GB, free: 0.9609 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004691/2.286, allocations: 0.5479 MB / 1.093 GB, free: 500 kB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3252/2.611, allocations: 16.63 MB / 1.109 GB, free: 118.5 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01324/2.624, allocations: 6.121 MB / 1.115 GB, free: 117.6 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01239/2.637, allocations: 4.189 MB / 1.119 GB, free: 117.5 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001753/2.638, allocations: 428 kB / 1.119 GB, free: 117.5 MB / 0.5417 GB Notification: Performance of SimCode: time 9.02e-07/2.638, allocations: 3.719 kB / 1.119 GB, free: 117.5 MB / 0.5417 GB Notification: Performance of Templates: time 0.1103/2.749, allocations: 60.25 MB / 1.178 GB, free: 110 MB / 0.5417 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/GearConstraint/GearConstraint.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches