Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.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) 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(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_trunk_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00155/0.001549, allocations: 203 kB / 18.07 MB, free: 3.645 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.442/1.442, allocations: 226.5 MB / 245.4 MB, free: 8.109 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009601/0.0009599, allocations: 103.9 kB / 297.4 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003258/0.000326, allocations: 8 kB / 357.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2475/0.2479, allocations: 51.29 MB / 408.7 MB, free: 27.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1185/0.3665, allocations: 100.2 MB / 0.4969 GB, free: 7.406 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002651/0.3668, allocations: 91.95 kB / 0.497 GB, free: 7.316 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4326/0.7994, allocations: 103.9 MB / 0.5984 GB, free: 12.38 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.7994, allocations: 0 / 0.5984 GB, free: 12.38 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003234/0.7997, allocations: 104 kB / 0.5985 GB, free: 12.27 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.0163/0.816, allocations: 5.43 MB / 0.6038 GB, free: 6.766 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.8161, allocations: 12.03 kB / 0.6039 GB, free: 6.754 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02101/0.8371, allocations: 5.278 MB / 0.609 GB, free: 1.461 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01246/0.8496, allocations: 5.115 MB / 0.614 GB, free: 12.29 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004165/0.8501, allocations: 386.7 kB / 0.6144 GB, free: 11.91 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002385/0.8525, allocations: 0.5196 MB / 0.6149 GB, free: 11.39 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03096/0.8835, allocations: 12.21 MB / 0.6268 GB, free: 14.03 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003567/0.8839, allocations: 75.44 kB / 0.6269 GB, free: 13.96 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002324/0.8862, allocations: 255.8 kB / 0.6271 GB, free: 13.71 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001865/0.8881, allocations: 1.062 MB / 0.6282 GB, free: 12.64 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02499/0.9131, allocations: 9.911 MB / 0.6378 GB, free: 2.715 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3278/1.241, allocations: 55.49 MB / 0.692 GB, free: 52.67 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01032/1.251, allocations: 4.184 MB / 0.6961 GB, free: 52.01 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003084/1.254, allocations: 2.266 MB / 0.6983 GB, free: 51.97 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01643/1.271, allocations: 9.261 MB / 0.7074 GB, free: 50.41 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.358e-05/1.271, allocations: 54.83 kB / 0.7074 GB, free: 50.37 MB / 442.7 MB Notification: Performance of pre-optimization done (n=171): time 4.899e-06/1.271, allocations: 0 / 0.7074 GB, free: 50.37 MB / 442.7 MB Notification: Performance of matching and sorting (n=197): time 0.04929/1.32, allocations: 17.43 MB / 0.7244 GB, free: 46.81 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.019e-05/1.321, allocations: 206.1 kB / 0.7246 GB, free: 46.59 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008561/1.329, allocations: 4.655 MB / 0.7292 GB, free: 46.19 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004645/1.33, allocations: 55.08 kB / 0.7292 GB, free: 46.16 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00269/1.332, allocations: 3.657 MB / 0.7328 GB, free: 44.32 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00112/1.333, allocations: 0.7636 MB / 0.7336 GB, free: 43.84 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004071/1.334, allocations: 127 kB / 0.7337 GB, free: 43.74 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003294/1.334, allocations: 0.5748 MB / 0.7342 GB, free: 43.32 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003226/1.337, allocations: 2.084 MB / 0.7363 GB, free: 42.64 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005652/1.343, allocations: 5.959 MB / 0.7421 GB, free: 36.78 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01013/1.353, allocations: 8.784 MB / 0.7507 GB, free: 30.05 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001587/1.354, allocations: 40.97 kB / 0.7507 GB, free: 30.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=822) (initialization): time 0.01972/1.373, allocations: 8.516 MB / 0.759 GB, free: 27.12 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001284/1.373, allocations: 62.44 kB / 0.7591 GB, free: 27.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002422/1.374, allocations: 138.7 kB / 0.7592 GB, free: 27.12 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002701/1.376, allocations: 0.9097 MB / 0.7601 GB, free: 26.94 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005128/1.382, allocations: 1.441 MB / 0.7615 GB, free: 26.76 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008563/1.39, allocations: 7.44 MB / 0.7688 GB, free: 21.39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006128/1.396, allocations: 337.2 kB / 0.7691 GB, free: 21.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001519/1.398, allocations: 387.2 kB / 0.7695 GB, free: 20.72 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (760): * Single equations (assignments): 755 * 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.006341/1.404, allocations: 2.48 MB / 0.7719 GB, free: 18.54 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001022/1.405, allocations: 414.7 kB / 0.7723 GB, free: 18.13 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006163/1.412, allocations: 3.219 MB / 0.7754 GB, free: 15.49 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.544e-05/1.412, allocations: 24.78 kB / 0.7755 GB, free: 15.47 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.528e-05/1.412, allocations: 4 kB / 0.7755 GB, free: 15.46 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.499e-05/1.412, allocations: 14.8 kB / 0.7755 GB, free: 15.46 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01819/1.43, allocations: 8.601 MB / 0.7839 GB, free: 8.441 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.147e-05/1.43, allocations: 4 kB / 0.7839 GB, free: 8.438 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001538/1.431, allocations: 297.9 kB / 0.7842 GB, free: 8.199 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002058/1.434, allocations: 0.6908 MB / 0.7848 GB, free: 7.707 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002739/1.434, allocations: 33.41 kB / 0.7849 GB, free: 7.676 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007738/1.442, allocations: 6.561 MB / 0.7913 GB, free: 1.547 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/1.442, allocations: 4 kB / 0.7913 GB, free: 1.543 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01195/1.454, allocations: 5.681 MB / 0.7968 GB, free: 12.57 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001689/1.455, allocations: 451.9 kB / 0.7973 GB, free: 12.12 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001036/1.456, allocations: 32.86 kB / 0.7973 GB, free: 12.09 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001825/1.458, allocations: 92.64 kB / 0.7974 GB, free: 12.03 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003853/1.459, allocations: 119.6 kB / 0.7975 GB, free: 11.95 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001487/1.459, allocations: 51.14 kB / 0.7975 GB, free: 11.91 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006533/1.465, allocations: 2.932 MB / 0.8004 GB, free: 9.5 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.02e-07/1.465, allocations: 0 / 0.8004 GB, free: 9.5 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007987/1.473, allocations: 1.135 MB / 0.8015 GB, free: 8.371 MB / 458.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 () * 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 (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.0007551/1.474, allocations: 188.3 kB / 0.8017 GB, free: 8.195 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01091/1.485, allocations: 5.353 MB / 0.8069 GB, free: 3.469 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.768e-06/1.485, allocations: 0 / 0.8069 GB, free: 3.469 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003251/1.488, allocations: 1.804 MB / 0.8087 GB, free: 1.863 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005037/1.494, allocations: 0.5479 MB / 0.8092 GB, free: 1.402 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02716/1.521, allocations: 13.39 MB / 0.8223 GB, free: 5.191 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007052/1.528, allocations: 3.86 MB / 0.8261 GB, free: 2.215 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001311/1.529, allocations: 318.9 kB / 0.8264 GB, free: 1.914 MB / 474.7 MB Notification: Performance of SimCode: time 1.092e-06/1.529, allocations: 0 / 0.8264 GB, free: 1.914 MB / 474.7 MB Notification: Performance of Templates: time 0.3913/1.921, allocations: 111.6 MB / 0.9354 GB, free: 114.2 MB / 0.4948 GB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches