Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001128/0.001128, allocations: 119.9 kB / 18.42 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001212/0.001212, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2049/0.2049, allocations: 46.1 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 71.88 kB / 419 MB, free: 18.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.1323, allocations: 62.45 MB / 481.5 MB, free: 4.504 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.01542/0.1477, allocations: 13.49 MB / 495 MB, free: 6.961 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009842/0.1576, allocations: 4.555 MB / 499.5 MB, free: 2.391 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002893/0.1606, allocations: 95.69 kB / 499.6 MB, free: 2.297 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007397/0.168, allocations: 4.182 MB / 0.492 GB, free: 14.1 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005473/0.1735, allocations: 2.132 MB / 0.4941 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002006/0.1756, allocations: 0.9321 MB / 0.495 GB, free: 11.03 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007454/0.183, allocations: 6.113 MB / 0.5009 GB, free: 4.902 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2269/0.4099, allocations: 5.197 MB / 0.506 GB, free: 15.01 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005524/0.4155, allocations: 2.117 MB / 0.5081 GB, free: 14.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006643/0.4222, allocations: 2.799 MB / 0.5108 GB, free: 14.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00194/0.4242, allocations: 475 kB / 0.5113 GB, free: 14.65 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00396/0.4281, allocations: 1.336 MB / 0.5126 GB, free: 14.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003719/0.4319, allocations: 2.492 MB / 0.515 GB, free: 14.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005728/0.4376, allocations: 2.834 MB / 0.5178 GB, free: 13.46 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01302/0.4506, allocations: 9.029 MB / 0.5266 GB, free: 11.37 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.4507, allocations: 1.438 kB / 0.5266 GB, free: 11.37 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.4507, allocations: 0 / 0.5266 GB, free: 11.37 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003755/0.4511, allocations: 0 / 0.5266 GB, free: 11.37 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1731 * Number of variables: 1731 Notification: Performance of Generate backend data structure: time 0.01782/0.4689, allocations: 6.077 MB / 0.5325 GB, free: 7.648 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.469, allocations: 9.562 kB / 0.5325 GB, free: 7.648 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01063/0.4796, allocations: 2.58 MB / 0.5351 GB, free: 6.355 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01064/0.4903, allocations: 3.81 MB / 0.5388 GB, free: 4.199 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001661/0.4905, allocations: 296.7 kB / 0.5391 GB, free: 4.098 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001356/0.4918, allocations: 431.9 kB / 0.5395 GB, free: 3.977 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01963/0.5115, allocations: 11.54 MB / 0.5507 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001608/0.5117, allocations: 59.52 kB / 0.5508 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000492/0.5122, allocations: 188.9 kB / 0.551 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003064/0.5152, allocations: 2.032 MB / 0.553 GB, free: 8.988 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01952/0.5348, allocations: 9.926 MB / 0.5627 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06467/0.5995, allocations: 45.35 MB / 0.6069 GB, free: 1.168 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01147/0.611, allocations: 4.37 MB / 0.6112 GB, free: 12.66 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00361/0.6146, allocations: 2.459 MB / 0.6136 GB, free: 10.19 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01733/0.632, allocations: 9.862 MB / 0.6232 GB, free: 228 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.967e-05/0.6321, allocations: 51.56 kB / 0.6233 GB, free: 168 kB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 5.34e-06/0.6321, allocations: 0 / 0.6233 GB, free: 168 kB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.05294/0.6851, allocations: 19.91 MB / 0.6427 GB, free: 12.2 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001474/0.6853, allocations: 199.9 kB / 0.6429 GB, free: 11.96 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007235/0.6925, allocations: 4.689 MB / 0.6475 GB, free: 7.262 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004824/0.693, allocations: 53.7 kB / 0.6476 GB, free: 7.203 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002981/0.696, allocations: 3.56 MB / 0.651 GB, free: 3.645 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001314/0.6973, allocations: 0.7614 MB / 0.6518 GB, free: 2.891 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002044/0.6994, allocations: 1.34 MB / 0.6531 GB, free: 1.539 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.6995, allocations: 301.1 kB / 0.6534 GB, free: 1.242 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00384/0.7034, allocations: 2.402 MB / 0.6557 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006396/0.7098, allocations: 6.254 MB / 0.6618 GB, free: 6.746 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01131/0.7211, allocations: 9.29 MB / 0.6709 GB, free: 12.13 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001164/0.7213, allocations: 40 kB / 0.6709 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01883/0.7401, allocations: 9.77 MB / 0.6805 GB, free: 2.32 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001272/0.7402, allocations: 64 kB / 0.6805 GB, free: 2.258 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001712/0.7404, allocations: 140.1 kB / 0.6807 GB, free: 2.121 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004408/0.7448, allocations: 1.612 MB / 0.6822 GB, free: 0.5039 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004892/0.7498, allocations: 1.478 MB / 0.6837 GB, free: 15.02 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0125/0.7623, allocations: 10.26 MB / 0.6937 GB, free: 4.488 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005281/0.7676, allocations: 355.4 kB / 0.694 GB, free: 4.141 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001055/0.7687, allocations: 399 kB / 0.6944 GB, free: 3.754 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 614 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.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 (793): * Single equations (assignments): 788 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,31,77.8%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004874/0.7736, allocations: 2.458 MB / 0.6968 GB, free: 1.285 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009961/0.7746, allocations: 402.8 kB / 0.6972 GB, free: 0.8867 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008076/0.7826, allocations: 4.235 MB / 0.7013 GB, free: 12.63 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.118e-05/0.7827, allocations: 20 kB / 0.7014 GB, free: 12.61 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.552e-05/0.7827, allocations: 8 kB / 0.7014 GB, free: 12.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.178e-05/0.7827, allocations: 19.75 kB / 0.7014 GB, free: 12.59 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01885/0.8016, allocations: 9.671 MB / 0.7108 GB, free: 2.875 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.707e-05/0.8016, allocations: 7.984 kB / 0.7108 GB, free: 2.867 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001447/0.8031, allocations: 303.6 kB / 0.7111 GB, free: 2.57 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003854/0.807, allocations: 1.36 MB / 0.7125 GB, free: 1.203 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002389/0.8072, allocations: 32 kB / 0.7125 GB, free: 1.172 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2537/1.061, allocations: 9.38 MB / 0.7217 GB, free: 187.8 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/1.061, allocations: 3.875 kB / 0.7217 GB, free: 187.8 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01244/1.073, allocations: 6.963 MB / 0.7285 GB, free: 185.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001489/1.075, allocations: 450.4 kB / 0.7289 GB, free: 185.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005372/1.075, allocations: 32.39 kB / 0.7289 GB, free: 185.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00156/1.077, allocations: 121.8 kB / 0.729 GB, free: 185.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004224/1.077, allocations: 120.5 kB / 0.7291 GB, free: 185.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001414/1.078, allocations: 54.98 kB / 0.7292 GB, free: 185.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005038/1.083, allocations: 2.958 MB / 0.7321 GB, free: 184.1 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.31e-07/1.083, allocations: 0 / 0.7321 GB, free: 184.1 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005631/1.088, allocations: 1.176 MB / 0.7332 GB, free: 184 MB / 0.545 GB 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,27,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004291/1.089, allocations: 170.5 kB / 0.7334 GB, free: 183.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008275/1.097, allocations: 5.978 MB / 0.7392 GB, free: 181.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/1.097, allocations: 0 / 0.7392 GB, free: 181.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002586/1.1, allocations: 2.011 MB / 0.7412 GB, free: 180.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003075/1.103, allocations: 0.5411 MB / 0.7417 GB, free: 180.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01708/1.12, allocations: 11.04 MB / 0.7525 GB, free: 173.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003784/1.124, allocations: 3.813 MB / 0.7562 GB, free: 170.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004001/1.128, allocations: 1.981 MB / 0.7582 GB, free: 169.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006899/1.128, allocations: 264.9 kB / 0.7584 GB, free: 169.3 MB / 0.545 GB Notification: Performance of SimCode: time 9.12e-07/1.128, allocations: 4 kB / 0.7584 GB, free: 169.2 MB / 0.545 GB Notification: Performance of Templates: time 0.06527/1.194, allocations: 39.69 MB / 0.7972 GB, free: 130.9 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches