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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002707/0.002707, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.645/3.645, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001975/0.001975, allocations: 102.8 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 8 kB / 327 MB, free: 15.1 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1871/0.1884, allocations: 47.58 MB / 374.5 MB, free: 15.43 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.7883/0.9769, allocations: 60.08 MB / 434.6 MB, free: 15.98 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0628/1.04, allocations: 14.02 MB / 448.6 MB, free: 2.164 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02035/1.06, allocations: 303.2 kB / 448.9 MB, free: 1.867 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01698/1.077, allocations: 3.006 MB / 451.9 MB, free: 14.84 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05354/1.131, allocations: 8.603 MB / 460.5 MB, free: 6.223 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008297/1.139, allocations: 0.7924 MB / 461.3 MB, free: 5.43 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.1035/1.243, allocations: 26.83 MB / 488.2 MB, free: 10.58 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02296/1.266, allocations: 6.576 MB / 494.7 MB, free: 3.945 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005826/1.272, allocations: 1.402 MB / 496.1 MB, free: 2.539 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006555/1.278, allocations: 1.846 MB / 498 MB, free: 0.6875 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00226/1.281, allocations: 192 kB / 498.2 MB, free: 0.5 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005667/1.286, allocations: 0.952 MB / 499.1 MB, free: 15.55 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006357/1.293, allocations: 2.096 MB / 0.4895 GB, free: 13.45 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003951/1.297, allocations: 1.096 MB / 0.4905 GB, free: 12.34 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02022/1.317, allocations: 7.544 MB / 0.4979 GB, free: 4.773 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.246e-06/1.317, allocations: 0 / 0.4979 GB, free: 4.773 MB / 378.7 MB Notification: Performance of FrontEnd: time 6.312e-06/1.317, allocations: 0 / 0.4979 GB, free: 4.773 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0005023/1.318, allocations: 4 kB / 0.4979 GB, free: 4.77 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: 1846 * Number of variables: 1846 Notification: Performance of Generate backend data structure: time 0.03228/1.35, allocations: 5.551 MB / 0.5033 GB, free: 15.14 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.348e-05/1.35, allocations: 8.031 kB / 0.5033 GB, free: 15.13 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1284/1.479, allocations: 8.044 MB / 0.5112 GB, free: 7.07 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02107/1.5, allocations: 4.255 MB / 0.5154 GB, free: 2.758 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007397/1.501, allocations: 312.1 kB / 0.5156 GB, free: 2.449 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003446/1.504, allocations: 451.6 kB / 0.5161 GB, free: 2.008 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05774/1.562, allocations: 12.24 MB / 0.528 GB, free: 4.996 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004653/1.562, allocations: 51.53 kB / 0.5281 GB, free: 4.945 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002969/1.565, allocations: 195.8 kB / 0.5283 GB, free: 4.754 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01032/1.576, allocations: 2.203 MB / 0.5304 GB, free: 2.547 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4932/2.069, allocations: 10.42 MB / 0.5406 GB, free: 129.2 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1274/2.197, allocations: 47.17 MB / 0.5867 GB, free: 92.44 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02773/2.224, allocations: 4.49 MB / 0.591 GB, free: 87.81 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03939/2.264, allocations: 10.12 MB / 0.6009 GB, free: 77.61 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.654e-05/2.264, allocations: 59.8 kB / 0.601 GB, free: 77.54 MB / 410.7 MB Notification: Performance of pre-optimization done (n=192): time 8.596e-06/2.264, allocations: 3.938 kB / 0.601 GB, free: 77.54 MB / 410.7 MB Notification: Performance of matching and sorting (n=218): time 0.1368/2.401, allocations: 19.85 MB / 0.6204 GB, free: 57.59 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/2.401, allocations: 205.2 kB / 0.6206 GB, free: 57.35 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01774/2.419, allocations: 5.059 MB / 0.6255 GB, free: 52.29 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007654/2.42, allocations: 58.41 kB / 0.6256 GB, free: 52.23 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004984/2.425, allocations: 3.62 MB / 0.6291 GB, free: 48.61 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002017/2.427, allocations: 0.8327 MB / 0.6299 GB, free: 47.79 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001185/2.428, allocations: 128 kB / 0.63 GB, free: 47.66 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0008556/2.429, allocations: 0.5876 MB / 0.6306 GB, free: 47.07 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009257/2.438, allocations: 2.34 MB / 0.6329 GB, free: 44.72 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.013/2.451, allocations: 6.269 MB / 0.639 GB, free: 36.49 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01126/2.463, allocations: 3.749 MB / 0.6427 GB, free: 32.74 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001768/2.463, allocations: 40 kB / 0.6427 GB, free: 32.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=856) (initialization): time 0.03786/2.501, allocations: 9.039 MB / 0.6515 GB, free: 23.65 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001868/2.501, allocations: 64 kB / 0.6516 GB, free: 23.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003472/2.501, allocations: 140.5 kB / 0.6517 GB, free: 23.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007668/2.509, allocations: 1.093 MB / 0.6528 GB, free: 22.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01259/2.522, allocations: 1.509 MB / 0.6543 GB, free: 20.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02393/2.546, allocations: 8.403 MB / 0.6625 GB, free: 12.17 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01397/2.56, allocations: 367.4 kB / 0.6628 GB, free: 11.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00216/2.562, allocations: 397.5 kB / 0.6632 GB, free: 11.43 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (794): * Single equations (assignments): 789 * 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.01059/2.573, allocations: 2.557 MB / 0.6657 GB, free: 8.855 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001868/2.575, allocations: 426.5 kB / 0.6661 GB, free: 8.434 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01854/2.593, allocations: 3.9 MB / 0.6699 GB, free: 4.512 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.501e-05/2.593, allocations: 20.7 kB / 0.6699 GB, free: 4.492 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.438e-05/2.593, allocations: 8 kB / 0.67 GB, free: 4.484 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.331e-05/2.593, allocations: 19.95 kB / 0.67 GB, free: 4.465 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04773/2.641, allocations: 9.773 MB / 0.6795 GB, free: 10.67 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-05/2.641, allocations: 4 kB / 0.6795 GB, free: 10.67 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004989/2.646, allocations: 347.5 kB / 0.6798 GB, free: 10.33 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007533/2.654, allocations: 0.8573 MB / 0.6807 GB, free: 9.465 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007324/2.655, allocations: 32.62 kB / 0.6807 GB, free: 9.434 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02579/2.681, allocations: 7.533 MB / 0.6881 GB, free: 1.633 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.465e-05/2.681, allocations: 7.953 kB / 0.6881 GB, free: 1.625 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4998/3.181, allocations: 6.756 MB / 0.6947 GB, free: 131 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004679/3.185, allocations: 0.7697 MB / 0.6954 GB, free: 130.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00234/3.188, allocations: 42.89 kB / 0.6955 GB, free: 130.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006064/3.194, allocations: 115.7 kB / 0.6956 GB, free: 130.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001498/3.195, allocations: 132.1 kB / 0.6957 GB, free: 130.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006856/3.196, allocations: 59.61 kB / 0.6958 GB, free: 130.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0143/3.211, allocations: 3.233 MB / 0.6989 GB, free: 129.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.643e-06/3.211, allocations: 0 / 0.6989 GB, free: 129.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01482/3.225, allocations: 1.229 MB / 0.7001 GB, free: 129.5 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 () * Number of clocked 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.001487/3.227, allocations: 191.2 kB / 0.7003 GB, free: 129.4 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02472/3.252, allocations: 5.917 MB / 0.7061 GB, free: 127.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.223e-05/3.252, allocations: 0 / 0.7061 GB, free: 127.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008515/3.26, allocations: 2.076 MB / 0.7081 GB, free: 126.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007362/3.268, allocations: 0.5301 MB / 0.7086 GB, free: 126.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05219/3.32, allocations: 14.12 MB / 0.7224 GB, free: 119 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01458/3.335, allocations: 4.122 MB / 0.7264 GB, free: 117.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003389/3.338, allocations: 334.7 kB / 0.7268 GB, free: 117.2 MB / 426.7 MB Notification: Performance of SimCode: time 2.314e-06/3.338, allocations: 4 kB / 0.7268 GB, free: 117.2 MB / 426.7 MB Notification: Performance of Templates: time 0.3151/3.653, allocations: 113 MB / 0.8371 GB, free: 5.988 MB / 426.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