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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008866/0.0008911, allocations: 178 kB / 17.4 MB, free: 4.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.251/1.251, allocations: 223.3 MB / 241.4 MB, free: 11.7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007785/0.0007785, allocations: 104.2 kB / 292.6 MB, free: 10.77 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003072/0.0003072, allocations: 11.94 kB / 352.3 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.213/0.2133, allocations: 50.4 MB / 402.7 MB, free: 32.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1137/0.3271, allocations: 99.63 MB / 0.4906 GB, free: 12.67 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000231/0.3273, allocations: 97.47 kB / 0.4907 GB, free: 12.57 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.398/0.7254, allocations: 102.7 MB / 0.591 GB, free: 22.38 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.7254, allocations: 0 / 0.591 GB, free: 22.38 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003346/0.7258, allocations: 108 kB / 0.5911 GB, free: 22.28 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.01653/0.7423, allocations: 5.375 MB / 0.5964 GB, free: 16.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.7424, allocations: 12.03 kB / 0.5964 GB, free: 16.81 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02021/0.7626, allocations: 5.25 MB / 0.6015 GB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01112/0.7737, allocations: 5.301 MB / 0.6067 GB, free: 6.188 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000318/0.7741, allocations: 390.7 kB / 0.6071 GB, free: 5.805 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002262/0.7764, allocations: 0.5157 MB / 0.6076 GB, free: 5.289 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02541/0.8018, allocations: 12.21 MB / 0.6195 GB, free: 7.93 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003541/0.8022, allocations: 75.5 kB / 0.6196 GB, free: 7.855 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001905/0.8041, allocations: 255.8 kB / 0.6198 GB, free: 7.605 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001634/0.8058, allocations: 1.066 MB / 0.6208 GB, free: 6.535 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02041/0.8262, allocations: 9.907 MB / 0.6305 GB, free: 12.61 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2392/1.065, allocations: 55.48 MB / 0.6847 GB, free: 42.57 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008403/1.074, allocations: 4.186 MB / 0.6888 GB, free: 41.9 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002177/1.076, allocations: 2.261 MB / 0.691 GB, free: 41.87 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01144/1.088, allocations: 9.28 MB / 0.7001 GB, free: 40.23 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/1.088, allocations: 52.75 kB / 0.7001 GB, free: 40.19 MB / 426.7 MB Notification: Performance of pre-optimization done (n=171): time 4.038e-06/1.088, allocations: 0 / 0.7001 GB, free: 40.19 MB / 426.7 MB Notification: Performance of matching and sorting (n=197): time 0.03921/1.127, allocations: 17.44 MB / 0.7171 GB, free: 36.64 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.268e-05/1.127, allocations: 201.9 kB / 0.7173 GB, free: 36.42 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005141/1.132, allocations: 4.658 MB / 0.7219 GB, free: 36.02 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000209/1.132, allocations: 56.11 kB / 0.7219 GB, free: 35.98 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001507/1.134, allocations: 3.654 MB / 0.7255 GB, free: 33.59 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005084/1.134, allocations: 0.7592 MB / 0.7262 GB, free: 33.04 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002145/1.135, allocations: 124.1 kB / 0.7264 GB, free: 32.94 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002354/1.135, allocations: 0.5797 MB / 0.7269 GB, free: 32.52 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002393/1.137, allocations: 2.092 MB / 0.729 GB, free: 31.83 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004259/1.141, allocations: 5.957 MB / 0.7348 GB, free: 25.98 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008813/1.15, allocations: 8.775 MB / 0.7433 GB, free: 19.25 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001069/1.15, allocations: 37.25 kB / 0.7434 GB, free: 19.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=822) (initialization): time 0.01491/1.165, allocations: 8.523 MB / 0.7517 GB, free: 16.23 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.043e-05/1.165, allocations: 63.47 kB / 0.7518 GB, free: 16.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001377/1.166, allocations: 142 kB / 0.7519 GB, free: 16.22 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002281/1.168, allocations: 0.9135 MB / 0.7528 GB, free: 16.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00435/1.172, allocations: 1.431 MB / 0.7542 GB, free: 15.44 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007069/1.179, allocations: 7.434 MB / 0.7615 GB, free: 8.527 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004947/1.184, allocations: 345.3 kB / 0.7618 GB, free: 8.223 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001188/1.186, allocations: 383.5 kB / 0.7621 GB, free: 7.855 MB / 426.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.004372/1.19, allocations: 2.49 MB / 0.7646 GB, free: 5.668 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007831/1.191, allocations: 414.6 kB / 0.765 GB, free: 5.258 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005061/1.196, allocations: 3.227 MB / 0.7681 GB, free: 2.609 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.608e-05/1.196, allocations: 22.66 kB / 0.7681 GB, free: 2.59 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.427e-05/1.196, allocations: 8 kB / 0.7682 GB, free: 2.582 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.786e-05/1.196, allocations: 8.859 kB / 0.7682 GB, free: 2.582 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0162/1.212, allocations: 8.666 MB / 0.7766 GB, free: 11.78 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.199e-05/1.212, allocations: 4.031 kB / 0.7766 GB, free: 11.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001381/1.214, allocations: 294.5 kB / 0.7769 GB, free: 11.54 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002075/1.216, allocations: 0.6874 MB / 0.7776 GB, free: 11.05 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001584/1.216, allocations: 42.12 kB / 0.7776 GB, free: 11.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007611/1.223, allocations: 6.564 MB / 0.784 GB, free: 4.883 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.614e-06/1.224, allocations: 0 / 0.784 GB, free: 4.883 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009331/1.233, allocations: 5.676 MB / 0.7896 GB, free: 15.96 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00128/1.234, allocations: 467.3 kB / 0.79 GB, free: 15.5 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004854/1.235, allocations: 28 kB / 0.79 GB, free: 15.47 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001404/1.236, allocations: 97.77 kB / 0.7901 GB, free: 15.4 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003364/1.236, allocations: 113.4 kB / 0.7903 GB, free: 15.33 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001247/1.237, allocations: 50.95 kB / 0.7903 GB, free: 15.29 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004992/1.242, allocations: 2.929 MB / 0.7932 GB, free: 12.88 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.5e-07/1.242, allocations: 4 kB / 0.7932 GB, free: 12.88 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005871/1.247, allocations: 1.139 MB / 0.7943 GB, free: 11.75 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.0004776/1.248, allocations: 176.6 kB / 0.7944 GB, free: 11.58 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009263/1.257, allocations: 5.355 MB / 0.7997 GB, free: 6.859 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/1.257, allocations: 0 / 0.7997 GB, free: 6.859 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002975/1.26, allocations: 1.813 MB / 0.8014 GB, free: 5.246 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00405/1.264, allocations: 0.5491 MB / 0.802 GB, free: 4.781 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02195/1.286, allocations: 12.78 MB / 0.8145 GB, free: 9.059 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005873/1.292, allocations: 3.868 MB / 0.8182 GB, free: 6.078 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.005365/1.298, allocations: 1.994 MB / 0.8202 GB, free: 4.59 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008431/1.299, allocations: 271.4 kB / 0.8204 GB, free: 4.324 MB / 474.7 MB Notification: Performance of SimCode: time 9.72e-07/1.299, allocations: 4 kB / 0.8204 GB, free: 4.32 MB / 474.7 MB Notification: Performance of Templates: time 0.2788/1.577, allocations: 39.45 MB / 0.859 GB, free: 125 MB / 490.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/jenkins1/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