Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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_trunk_cpp_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_trunk_cpp_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001084/0.001084, allocations: 197.7 kB / 16.79 MB, free: 5.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.264/1.264, allocations: 226.5 MB / 244.1 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007239/0.000724, allocations: 96.31 kB / 296.1 MB, free: 6.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3113/0.3113, allocations: 44.82 MB / 393 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003453/0.0003454, allocations: 16 kB / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3242/0.3246, allocations: 62.95 MB / 0.5165 GB, free: 37.01 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1327/0.4573, allocations: 112.4 MB / 0.6263 GB, free: 8.93 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003573/0.4578, allocations: 83.95 kB / 0.6264 GB, free: 8.848 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6036/1.061, allocations: 161.2 MB / 0.7837 GB, free: 57.91 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.316e-06/1.061, allocations: 0 / 0.7837 GB, free: 57.91 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004889/1.062, allocations: 148 kB / 0.7839 GB, free: 57.77 MB / 490.7 MB 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.02728/1.089, allocations: 7.655 MB / 0.7914 GB, free: 50.02 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.919e-05/1.089, allocations: 8.031 kB / 0.7914 GB, free: 50.01 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03267/1.122, allocations: 8.401 MB / 0.7996 GB, free: 41.58 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0165/1.139, allocations: 6.718 MB / 0.8061 GB, free: 34.77 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005877/1.139, allocations: 0.61 MB / 0.8067 GB, free: 34.16 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004419/1.144, allocations: 0.8008 MB / 0.8075 GB, free: 33.36 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04658/1.19, allocations: 19.97 MB / 0.827 GB, free: 11.95 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006/1.191, allocations: 83.47 kB / 0.8271 GB, free: 11.87 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004392/1.195, allocations: 391.6 kB / 0.8275 GB, free: 11.48 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002698/1.198, allocations: 2.046 MB / 0.8295 GB, free: 9.43 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03507/1.233, allocations: 17.47 MB / 0.8465 GB, free: 7.934 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7481/1.981, allocations: 83.46 MB / 0.928 GB, free: 54.26 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01651/1.998, allocations: 7.73 MB / 0.9356 GB, free: 53 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008235/2.006, allocations: 4.978 MB / 0.9404 GB, free: 52.96 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002789/2.006, allocations: 62.42 kB / 0.9405 GB, free: 52.95 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.127e-05/2.006, allocations: 72.97 kB / 0.9406 GB, free: 52.91 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=429): time 1.077e-05/2.006, allocations: 3.531 kB / 0.9406 GB, free: 52.91 MB / 0.5262 GB Notification: Performance of matching and sorting (n=476): time 0.1062/2.113, allocations: 39.09 MB / 0.9787 GB, free: 45.95 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/2.113, allocations: 225.7 kB / 0.979 GB, free: 45.73 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01537/2.128, allocations: 6.345 MB / 0.9852 GB, free: 43.59 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.001026/2.129, allocations: 84.11 kB / 0.9852 GB, free: 43.51 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.005111/2.134, allocations: 5.578 MB / 0.9907 GB, free: 39.39 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.002596/2.137, allocations: 1.728 MB / 0.9924 GB, free: 38.11 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001834/2.139, allocations: 210.2 kB / 0.9926 GB, free: 37.95 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.001482/2.14, allocations: 0.7879 MB / 0.9933 GB, free: 37.44 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008896/2.149, allocations: 4.702 MB / 0.9979 GB, free: 35.89 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01385/2.163, allocations: 10.77 MB / 1.008 GB, free: 26.34 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02138/2.185, allocations: 16.92 MB / 1.025 GB, free: 14.24 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004474/2.185, allocations: 60.84 kB / 1.025 GB, free: 14.24 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1448) (initialization): time 0.03553/2.221, allocations: 16.61 MB / 1.041 GB, free: 1.051 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003661/2.221, allocations: 96.94 kB / 1.041 GB, free: 0.957 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004921/2.222, allocations: 215.7 kB / 1.042 GB, free: 0.75 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007086/2.229, allocations: 1.812 MB / 1.043 GB, free: 15.75 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01054/2.239, allocations: 2.522 MB / 1.046 GB, free: 13.58 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01975/2.259, allocations: 14.06 MB / 1.06 GB, free: 440 kB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0126/2.272, allocations: 0.69 MB / 1.06 GB, free: 0 / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007526/2.279, allocations: 0.896 MB / 1.061 GB, free: 0 / 0.5418 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 962 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1324): * Single equations (assignments): 1311 * 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.01372/2.293, allocations: 4.093 MB / 1.065 GB, free: 12.44 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002252/2.295, allocations: 0.608 MB / 1.066 GB, free: 11.83 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02187/2.317, allocations: 9.228 MB / 1.075 GB, free: 4.102 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001632/2.318, allocations: 87.89 kB / 1.075 GB, free: 4.02 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.244e-05/2.318, allocations: 8 kB / 1.075 GB, free: 4.012 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.323e-05/2.318, allocations: 30.73 kB / 1.075 GB, free: 4 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05292/2.371, allocations: 20.84 MB / 1.095 GB, free: 2.719 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.325e-05/2.371, allocations: 12 kB / 1.095 GB, free: 2.707 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003993/2.375, allocations: 0.7478 MB / 1.096 GB, free: 2.113 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004279/2.379, allocations: 1.367 MB / 1.097 GB, free: 1.137 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00105/2.38, allocations: 88.97 kB / 1.097 GB, free: 1.055 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3167/2.697, allocations: 12.9 MB / 1.11 GB, free: 136.9 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-05/2.697, allocations: 19.97 kB / 1.11 GB, free: 136.9 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03144/2.728, allocations: 14.75 MB / 1.124 GB, free: 135.8 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002289/2.731, allocations: 0.6235 MB / 1.125 GB, free: 135.7 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00259/2.733, allocations: 82.03 kB / 1.125 GB, free: 135.7 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005518/2.739, allocations: 299.7 kB / 1.125 GB, free: 135.7 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001547/2.741, allocations: 286.9 kB / 1.126 GB, free: 135.7 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007035/2.741, allocations: 129.3 kB / 1.126 GB, free: 135.7 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0102/2.751, allocations: 3.929 MB / 1.13 GB, free: 135.5 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.112e-06/2.751, allocations: 0 / 1.13 GB, free: 135.5 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01625/2.768, allocations: 1.978 MB / 1.131 GB, free: 135.5 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * 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 (359): * Single equations (assignments): 346 * 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.001738/2.77, allocations: 254.2 kB / 1.132 GB, free: 135.4 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.02614/2.796, allocations: 11.65 MB / 1.143 GB, free: 134.3 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.562e-05/2.796, allocations: 3.938 kB / 1.143 GB, free: 134.3 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.009759/2.806, allocations: 4.702 MB / 1.148 GB, free: 132.4 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02228/2.828, allocations: 0.7825 MB / 1.148 GB, free: 132 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0519/2.88, allocations: 24.23 MB / 1.172 GB, free: 120.1 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01074/2.891, allocations: 5.966 MB / 1.178 GB, free: 118.2 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002437/2.893, allocations: 0.5095 MB / 1.178 GB, free: 118.2 MB / 0.573 GB Notification: Performance of SimCode: time 1.142e-06/2.893, allocations: 0 / 1.178 GB, free: 118.2 MB / 0.573 GB Notification: Performance of Templates: time 0.5771/3.47, allocations: 263.6 MB / 1.436 GB, free: 75.46 MB / 0.573 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.GearConstraint --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/GearConstraint/GearConstraint.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches