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.001/0.001, allocations: 196.2 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.248/1.248, allocations: 226.6 MB / 244.3 MB, free: 8.289 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006969/0.0006969, allocations: 101.8 kB / 296.4 MB, free: 7.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002161/0.0002162, allocations: 11.98 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1877/0.1879, allocations: 51.29 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.07687/0.2648, allocations: 63.09 MB / 470.6 MB, free: 12.58 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.02598/0.2909, allocations: 13.34 MB / 483.9 MB, free: 15.21 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009214/0.3001, allocations: 303.2 kB / 484.2 MB, free: 14.92 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008178/0.3083, allocations: 3.301 MB / 487.5 MB, free: 11.6 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02076/0.3291, allocations: 9.646 MB / 497.2 MB, free: 1.918 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003589/0.3327, allocations: 0.7958 MB / 498 MB, free: 1.121 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.225/0.5577, allocations: 62.09 MB / 0.5469 GB, free: 6.156 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006584/0.5644, allocations: 6.541 MB / 0.5533 GB, free: 1.547 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001806/0.5662, allocations: 1.666 MB / 0.5549 GB, free: 436 kB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002409/0.5686, allocations: 2.531 MB / 0.5574 GB, free: 14.63 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004163/0.569, allocations: 180 kB / 0.5576 GB, free: 14.46 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001615/0.5707, allocations: 0.9566 MB / 0.5585 GB, free: 13.68 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001565/0.5722, allocations: 2.176 MB / 0.5606 GB, free: 12.1 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007399/0.573, allocations: 1.045 MB / 0.5617 GB, free: 11.73 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00551/0.5785, allocations: 7.121 MB / 0.5686 GB, free: 5.566 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.5785, allocations: 3.984 kB / 0.5686 GB, free: 5.562 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.5785, allocations: 0 / 0.5686 GB, free: 5.562 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001269/0.5787, allocations: 0 / 0.5686 GB, free: 5.562 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: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.008542/0.5872, allocations: 5.116 MB / 0.5736 GB, free: 0.8203 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.329e-05/0.5873, allocations: 8.031 kB / 0.5736 GB, free: 0.8125 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01043/0.5977, allocations: 2.675 MB / 0.5762 GB, free: 14.24 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00624/0.604, allocations: 3.68 MB / 0.5798 GB, free: 11.57 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001557/0.6041, allocations: 304.1 kB / 0.5801 GB, free: 11.41 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006974/0.6048, allocations: 430.5 kB / 0.5805 GB, free: 11.13 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0156/0.6205, allocations: 11.72 MB / 0.592 GB, free: 2.074 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001095/0.6206, allocations: 48.41 kB / 0.592 GB, free: 2.051 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004176/0.621, allocations: 194.2 kB / 0.5922 GB, free: 1.996 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003058/0.6241, allocations: 2.081 MB / 0.5942 GB, free: 280 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01592/0.64, allocations: 10.08 MB / 0.6041 GB, free: 9.387 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04662/0.6867, allocations: 45.96 MB / 0.649 GB, free: 0.5547 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01017/0.6969, allocations: 4.36 MB / 0.6532 GB, free: 12.07 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003115/0.7, allocations: 2.472 MB / 0.6556 GB, free: 9.582 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01378/0.7138, allocations: 9.856 MB / 0.6653 GB, free: 15.64 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4e-05/0.7139, allocations: 55.56 kB / 0.6653 GB, free: 15.57 MB / 490.7 MB Notification: Performance of pre-optimization done (n=171): time 3.527e-06/0.7139, allocations: 2.531 kB / 0.6653 GB, free: 15.57 MB / 490.7 MB Notification: Performance of matching and sorting (n=197): time 0.2176/0.9315, allocations: 19.95 MB / 0.6848 GB, free: 194 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.4e-05/0.9316, allocations: 205.6 kB / 0.685 GB, free: 193.8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007093/0.9387, allocations: 4.688 MB / 0.6896 GB, free: 192.3 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003011/0.939, allocations: 53.61 kB / 0.6896 GB, free: 192.2 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001912/0.9409, allocations: 3.599 MB / 0.6931 GB, free: 189.5 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009861/0.9419, allocations: 0.7574 MB / 0.6939 GB, free: 188.9 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004553/0.9424, allocations: 136 kB / 0.694 GB, free: 188.8 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003205/0.9427, allocations: 0.5826 MB / 0.6946 GB, free: 188.4 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003207/0.946, allocations: 2.385 MB / 0.6969 GB, free: 187.6 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004291/0.9503, allocations: 6.255 MB / 0.703 GB, free: 181.6 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004371/0.9546, allocations: 3.778 MB / 0.7067 GB, free: 180.2 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.317e-05/0.9547, allocations: 44.38 kB / 0.7068 GB, free: 180.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=858) (initialization): time 0.01457/0.9693, allocations: 9.755 MB / 0.7163 GB, free: 172.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.526e-05/0.9695, allocations: 60 kB / 0.7163 GB, free: 172.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001416/0.9696, allocations: 136 kB / 0.7165 GB, free: 172.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003732/0.9733, allocations: 1.632 MB / 0.7181 GB, free: 170.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004117/0.9775, allocations: 1.494 MB / 0.7195 GB, free: 169.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009307/0.9868, allocations: 9.542 MB / 0.7288 GB, free: 159.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004496/0.9913, allocations: 367.3 kB / 0.7292 GB, free: 159 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008317/0.9922, allocations: 397.2 kB / 0.7296 GB, free: 158.6 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 617 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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 (796): * Single equations (assignments): 791 * 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 {(3,77.8%) 31,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003701/0.9959, allocations: 2.479 MB / 0.732 GB, free: 156.1 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008162/0.9967, allocations: 402.8 kB / 0.7324 GB, free: 155.7 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00681/1.004, allocations: 4.244 MB / 0.7365 GB, free: 151.4 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.021e-05/1.004, allocations: 20 kB / 0.7365 GB, free: 151.4 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.311e-05/1.004, allocations: 8 kB / 0.7365 GB, free: 151.4 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.879e-05/1.004, allocations: 11.92 kB / 0.7366 GB, free: 151.4 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01642/1.02, allocations: 9.772 MB / 0.7461 GB, free: 141.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.294e-05/1.02, allocations: 4.031 kB / 0.7461 GB, free: 141.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001312/1.021, allocations: 303.5 kB / 0.7464 GB, free: 141.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00354/1.025, allocations: 1.359 MB / 0.7477 GB, free: 139.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001825/1.025, allocations: 37.77 kB / 0.7478 GB, free: 139.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008669/1.034, allocations: 8.731 MB / 0.7563 GB, free: 130.9 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/1.034, allocations: 3.953 kB / 0.7563 GB, free: 130.9 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009295/1.043, allocations: 6.959 MB / 0.7631 GB, free: 123.9 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001583/1.045, allocations: 467.6 kB / 0.7635 GB, free: 123.4 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001243/1.046, allocations: 33.28 kB / 0.7636 GB, free: 123.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002085/1.048, allocations: 119.8 kB / 0.7637 GB, free: 123.3 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000318/1.049, allocations: 125.1 kB / 0.7638 GB, free: 123.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000135/1.049, allocations: 58.25 kB / 0.7638 GB, free: 123.1 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004558/1.053, allocations: 2.94 MB / 0.7667 GB, free: 120.2 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.2e-07/1.053, allocations: 0 / 0.7667 GB, free: 120.2 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005971/1.059, allocations: 1.205 MB / 0.7679 GB, free: 119 MB / 490.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.0005857/1.06, allocations: 173.4 kB / 0.7681 GB, free: 118.8 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00793/1.068, allocations: 5.952 MB / 0.7739 GB, free: 112.8 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/1.068, allocations: 4 kB / 0.7739 GB, free: 112.8 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002493/1.07, allocations: 2.004 MB / 0.7758 GB, free: 110.8 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003323/1.074, allocations: 0.5104 MB / 0.7763 GB, free: 110.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01715/1.091, allocations: 13.66 MB / 0.7897 GB, free: 96.59 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003733/1.095, allocations: 3.839 MB / 0.7934 GB, free: 92.72 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009909/1.096, allocations: 323.4 kB / 0.7937 GB, free: 92.41 MB / 490.7 MB Notification: Performance of SimCode: time 8.21e-07/1.096, allocations: 0 / 0.7937 GB, free: 92.41 MB / 490.7 MB Notification: Performance of Templates: time 0.2554/1.351, allocations: 112.3 MB / 0.9034 GB, free: 163.6 MB / 490.7 MB 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/jenkins/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