Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002553/0.002553, allocations: 183.6 kB / 8.154 MB, free: 2.203 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.947/1.947, allocations: 205.2 MB / 213.7 MB, free: 13.94 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001263/0.001263, allocations: 93.66 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.368e-06/9.988e-06, allocations: 0 / 314.3 MB, free: 9.062 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2439/0.2439, allocations: 47.56 MB / 361.8 MB, free: 45.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1554/0.3993, allocations: 97.74 MB / 459.6 MB, free: 4.312 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003204/0.3997, allocations: 87.94 kB / 459.7 MB, free: 4.227 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.5979/0.9976, allocations: 103.3 MB / 0.5498 GB, free: 87.88 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004437/0.9981, allocations: 112.2 kB / 0.5499 GB, free: 87.87 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1846 * Number of variables: 1846 Notification: Performance of Generate backend data structure: time 0.02446/1.023, allocations: 5.228 MB / 0.555 GB, free: 84.41 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.155e-05/1.023, allocations: 12.67 kB / 0.555 GB, free: 84.4 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04815/1.071, allocations: 6.57 MB / 0.5614 GB, free: 78.3 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02622/1.097, allocations: 6.893 MB / 0.5682 GB, free: 71.41 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003338/1.097, allocations: 179.9 kB / 0.5683 GB, free: 71.24 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002837/1.1, allocations: 319.9 kB / 0.5686 GB, free: 70.93 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02165/1.122, allocations: 7.799 MB / 0.5762 GB, free: 63.12 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03264/1.155, allocations: 11.57 MB / 0.5875 GB, free: 50.41 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005339/1.155, allocations: 79.28 kB / 0.5876 GB, free: 50.33 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003455/1.159, allocations: 32 kB / 0.5876 GB, free: 50.3 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003332/1.162, allocations: 1.211 MB / 0.5888 GB, free: 49.09 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1243/1.287, allocations: 57.29 MB / 0.6448 GB, free: 6.184 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01173/1.298, allocations: 3.609 MB / 0.6483 GB, free: 2.438 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2064/1.505, allocations: 2.561 MB / 0.6508 GB, free: 132.5 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02963/1.535, allocations: 7.993 MB / 0.6586 GB, free: 130.6 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.795e-05/1.535, allocations: 54.47 kB / 0.6587 GB, free: 130.6 MB / 410.7 MB Notification: Performance of pre-optimization done (n=192): time 9.117e-06/1.535, allocations: 0 / 0.6587 GB, free: 130.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=218): time 0.08689/1.622, allocations: 18.06 MB / 0.6763 GB, free: 127.6 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001183/1.622, allocations: 204.6 kB / 0.6765 GB, free: 127.3 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01044/1.632, allocations: 3.74 MB / 0.6801 GB, free: 126.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005552/1.633, allocations: 25.7 kB / 0.6802 GB, free: 126.9 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002816/1.636, allocations: 3.371 MB / 0.6835 GB, free: 124.6 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001529/1.637, allocations: 0.8081 MB / 0.6843 GB, free: 124.1 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000866/1.638, allocations: 0 / 0.6843 GB, free: 124.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0006143/1.639, allocations: 0.6047 MB / 0.6848 GB, free: 123.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00605/1.645, allocations: 2.179 MB / 0.687 GB, free: 123.3 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009081/1.654, allocations: 6.269 MB / 0.6931 GB, free: 117 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009023/1.663, allocations: 3.704 MB / 0.6967 GB, free: 115.9 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001737/1.663, allocations: 45.41 kB / 0.6968 GB, free: 115.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.02518/1.688, allocations: 8.038 MB / 0.7046 GB, free: 113.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.714e-05/1.689, allocations: 4.438 kB / 0.7046 GB, free: 113.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003333/1.689, allocations: 150.5 kB / 0.7048 GB, free: 113.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004881/1.694, allocations: 0.8877 MB / 0.7056 GB, free: 113.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01133/1.705, allocations: 1.551 MB / 0.7071 GB, free: 113.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01475/1.72, allocations: 6.911 MB / 0.7139 GB, free: 108.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006671/1.727, allocations: 204.2 kB / 0.7141 GB, free: 108.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001822/1.729, allocations: 419.1 kB / 0.7145 GB, free: 108.8 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 668 * Number of states: 0 () * Number of discrete variables: 45 (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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (828): * Single equations (assignments): 823 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002539/1.731, allocations: 396.5 kB / 0.7149 GB, free: 108.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001121/1.732, allocations: 403.4 kB / 0.7152 GB, free: 108.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0118/1.744, allocations: 3.427 MB / 0.7186 GB, free: 107.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001144/1.744, allocations: 22.47 kB / 0.7186 GB, free: 107.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.584e-05/1.744, allocations: 10.41 kB / 0.7186 GB, free: 107.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.634e-05/1.744, allocations: 11.2 kB / 0.7186 GB, free: 107.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03326/1.778, allocations: 8.218 MB / 0.7267 GB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.282e-05/1.778, allocations: 0 / 0.7267 GB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005508/1.783, allocations: 330.3 kB / 0.727 GB, free: 100.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006417/1.79, allocations: 0.6668 MB / 0.7276 GB, free: 99.96 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007063/1.791, allocations: 6.906 kB / 0.7276 GB, free: 99.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01643/1.807, allocations: 6.044 MB / 0.7335 GB, free: 94.25 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.236e-05/1.807, allocations: 7.938 kB / 0.7335 GB, free: 94.24 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02354/1.831, allocations: 6.247 MB / 0.7396 GB, free: 88.65 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004177/1.835, allocations: 0.7026 MB / 0.7403 GB, free: 87.98 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00245/1.838, allocations: 6.641 kB / 0.7403 GB, free: 87.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00618/1.844, allocations: 61.2 kB / 0.7404 GB, free: 87.93 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001099/1.845, allocations: 97.33 kB / 0.7405 GB, free: 87.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005903/1.846, allocations: 55.84 kB / 0.7405 GB, free: 87.83 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.01054/1.856, allocations: 2.548 MB / 0.743 GB, free: 85.6 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.015/1.871, allocations: 1.013 MB / 0.744 GB, free: 84.6 MB / 410.7 MB 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (169): * Single equations (assignments): 164 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001312/1.873, allocations: 154.2 kB / 0.7442 GB, free: 84.45 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.02038/1.893, allocations: 5.419 MB / 0.7494 GB, free: 79.52 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.069e-05/1.893, allocations: 0 / 0.7494 GB, free: 79.52 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00724/1.9, allocations: 1.868 MB / 0.7513 GB, free: 77.79 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004688/1.905, allocations: 434.4 kB / 0.7517 GB, free: 77.43 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03543/1.941, allocations: 9.973 MB / 0.7614 GB, free: 68.52 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01336/1.954, allocations: 4.434 MB / 0.7658 GB, free: 65.15 MB / 410.7 MB Notification: Performance of SimCode: time 1.793e-06/1.954, allocations: 0 / 0.7658 GB, free: 65.15 MB / 410.7 MB Notification: Performance of Templates: time 0.362/2.316, allocations: 111.2 MB / 0.8743 GB, free: 98.25 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches