Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.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) 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(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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001586/0.001586, allocations: 183.4 kB / 8.135 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.29/1.29, allocations: 221.4 MB / 229.9 MB, free: 3.074 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.0009192/0.000919, allocations: 101.9 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.041e-06/6.071e-06, allocations: 0 / 336.5 MB, free: 9.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2559, allocations: 50.4 MB / 386.9 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1186/0.3746, allocations: 98.68 MB / 485.6 MB, free: 4.121 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002274/0.3748, allocations: 87.89 kB / 485.7 MB, free: 4.035 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.4165/0.7913, allocations: 100.6 MB / 0.5726 GB, free: 36.08 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003745/0.7918, allocations: 104 kB / 0.5727 GB, free: 35.98 MB / 378.7 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.01556/0.8073, allocations: 5.074 MB / 0.5776 GB, free: 30.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.8074, allocations: 8.031 kB / 0.5776 GB, free: 30.83 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02569/0.8331, allocations: 6.528 MB / 0.584 GB, free: 24.28 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01855/0.8517, allocations: 6.488 MB / 0.5904 GB, free: 17.73 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003615/0.8521, allocations: 164 kB / 0.5905 GB, free: 17.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003001/0.8551, allocations: 315.8 kB / 0.5908 GB, free: 17.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01408/0.8692, allocations: 7.458 MB / 0.5981 GB, free: 9.797 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02454/0.8938, allocations: 11.13 MB / 0.609 GB, free: 13.52 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004863/0.8943, allocations: 75.3 kB / 0.609 GB, free: 13.45 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002319/0.8967, allocations: 35.94 kB / 0.6091 GB, free: 13.41 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001733/0.8984, allocations: 1.14 MB / 0.6102 GB, free: 12.27 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2226/1.121, allocations: 55.79 MB / 0.6647 GB, free: 90.44 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003909/1.125, allocations: 3.429 MB / 0.668 GB, free: 89.79 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00245/1.127, allocations: 2.4 MB / 0.6704 GB, free: 89.76 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01074/1.138, allocations: 7.557 MB / 0.6777 GB, free: 87.89 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.868e-05/1.138, allocations: 58.2 kB / 0.6778 GB, free: 87.85 MB / 426.7 MB Notification: Performance of pre-optimization done (n=171): time 5.46e-06/1.138, allocations: 0 / 0.6778 GB, free: 87.85 MB / 426.7 MB Notification: Performance of matching and sorting (n=198): time 0.03411/1.172, allocations: 17.67 MB / 0.6951 GB, free: 84.64 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.321e-05/1.173, allocations: 201.2 kB / 0.6952 GB, free: 84.42 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005478/1.178, allocations: 3.634 MB / 0.6988 GB, free: 84.04 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003573/1.178, allocations: 25.7 kB / 0.6988 GB, free: 84.01 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001594/1.18, allocations: 3.339 MB / 0.7021 GB, free: 82.03 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006968/1.181, allocations: 0.7425 MB / 0.7028 GB, free: 81.59 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000212/1.181, allocations: 0 / 0.7028 GB, free: 81.59 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002767/1.181, allocations: 0.5801 MB / 0.7034 GB, free: 81.28 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00244/1.184, allocations: 2.021 MB / 0.7053 GB, free: 81.26 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00407/1.188, allocations: 5.977 MB / 0.7112 GB, free: 76.12 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004563/1.192, allocations: 3.491 MB / 0.7146 GB, free: 76.08 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.259e-05/1.192, allocations: 41.77 kB / 0.7146 GB, free: 76.08 MB / 426.7 MB Notification: Performance of matching and sorting (n=847) (initialization): time 0.01623/1.209, allocations: 7.723 MB / 0.7222 GB, free: 74.26 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/1.209, allocations: 4.469 kB / 0.7222 GB, free: 74.26 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002312/1.209, allocations: 141.7 kB / 0.7223 GB, free: 74.26 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002808/1.212, allocations: 0.9081 MB / 0.7232 GB, free: 74.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005247/1.217, allocations: 1.478 MB / 0.7246 GB, free: 73.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007537/1.225, allocations: 6.871 MB / 0.7314 GB, free: 69.63 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006222/1.231, allocations: 206.7 kB / 0.7315 GB, free: 69.61 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001417/1.232, allocations: 397 kB / 0.7319 GB, free: 69.56 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 645 * Number of states: 0 () * Number of discrete variables: 47 (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 (785): * Single equations (assignments): 780 * 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.001136/1.233, allocations: 471.3 kB / 0.7324 GB, free: 69.18 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008357/1.234, allocations: 385.3 kB / 0.7327 GB, free: 68.97 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005454/1.24, allocations: 3.082 MB / 0.7358 GB, free: 67.89 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.995e-05/1.24, allocations: 18.72 kB / 0.7358 GB, free: 67.89 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.575e-05/1.24, allocations: 10.5 kB / 0.7358 GB, free: 67.89 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.698e-05/1.24, allocations: 6.703 kB / 0.7358 GB, free: 67.89 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01362/1.253, allocations: 7.571 MB / 0.7432 GB, free: 63.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.17e-05/1.254, allocations: 4 kB / 0.7432 GB, free: 63.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001539/1.255, allocations: 286 kB / 0.7435 GB, free: 63.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002188/1.257, allocations: 0.6646 MB / 0.7441 GB, free: 62.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00018/1.257, allocations: 11.19 kB / 0.7441 GB, free: 62.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006204/1.264, allocations: 6.046 MB / 0.75 GB, free: 57.02 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.04e-06/1.264, allocations: 0 / 0.75 GB, free: 57.02 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007596/1.271, allocations: 5.713 MB / 0.7556 GB, free: 51.93 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002035/1.273, allocations: 414.6 kB / 0.756 GB, free: 51.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007151/1.274, allocations: 3.75 kB / 0.756 GB, free: 51.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001488/1.276, allocations: 45.08 kB / 0.756 GB, free: 51.47 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002601/1.276, allocations: 100.5 kB / 0.7561 GB, free: 51.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001357/1.276, allocations: 44 kB / 0.7562 GB, free: 51.37 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.003911/1.28, allocations: 2.475 MB / 0.7586 GB, free: 49.21 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006243/1.286, allocations: 0.9692 MB / 0.7595 GB, free: 48.25 MB / 426.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 (148): * Single equations (assignments): 143 * 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.0004919/1.287, allocations: 146 kB / 0.7597 GB, free: 48.11 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007652/1.294, allocations: 5.052 MB / 0.7646 GB, free: 43.53 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/1.295, allocations: 0 / 0.7646 GB, free: 43.53 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002422/1.297, allocations: 1.697 MB / 0.7663 GB, free: 41.98 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002694/1.3, allocations: 451.5 kB / 0.7667 GB, free: 41.61 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01805/1.318, allocations: 8.858 MB / 0.7754 GB, free: 33.76 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006106/1.324, allocations: 4.263 MB / 0.7795 GB, free: 30.49 MB / 426.7 MB Notification: Performance of SimCode: time 1.684e-06/1.324, allocations: 0 / 0.7795 GB, free: 30.49 MB / 426.7 MB Notification: Performance of Templates: time 0.234/1.558, allocations: 40.11 MB / 0.8187 GB, free: 110 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches