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.0009285/0.0009285, allocations: 95.09 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00103/0.00103, allocations: 207 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.289/1.289, allocations: 227.7 MB / 247.5 MB, free: 9.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1923/0.1923, allocations: 46.19 MB / 345.9 MB, free: 11.15 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002473/0.0002474, allocations: 11.98 kB / 420.2 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1062, allocations: 63.56 MB / 483.7 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.2705/0.3768, allocations: 63.92 MB / 0.5348 GB, free: 7.398 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02722/0.404, allocations: 13.09 MB / 0.5476 GB, free: 15.68 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01249/0.4165, allocations: 288.9 kB / 0.5479 GB, free: 15.64 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001931/0.4185, allocations: 0.4963 MB / 0.5484 GB, free: 15.44 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005817/0.4243, allocations: 2.012 MB / 0.5503 GB, free: 14.23 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0021/0.4265, allocations: 0.8646 MB / 0.5512 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01009/0.4366, allocations: 8.797 MB / 0.5598 GB, free: 8.832 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01112/0.4477, allocations: 7.322 MB / 0.5669 GB, free: 1.43 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003241/0.451, allocations: 1.513 MB / 0.5684 GB, free: 15.91 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003999/0.455, allocations: 2.527 MB / 0.5709 GB, free: 13.38 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001051/0.4561, allocations: 180 kB / 0.571 GB, free: 13.2 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002767/0.4589, allocations: 1.115 MB / 0.5721 GB, free: 12.08 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003093/0.462, allocations: 2.17 MB / 0.5742 GB, free: 9.906 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004447/0.4665, allocations: 2.463 MB / 0.5766 GB, free: 7.422 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008133/0.4746, allocations: 7.003 MB / 0.5835 GB, free: 412 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.4747, allocations: 0 / 0.5835 GB, free: 412 kB / 414.1 MB Notification: Performance of FrontEnd: time 3.356e-06/0.4747, allocations: 0 / 0.5835 GB, free: 412 kB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003337/0.475, allocations: 0 / 0.5835 GB, free: 412 kB / 414.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.01183/0.4869, allocations: 4.992 MB / 0.5884 GB, free: 11.34 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/0.487, allocations: 8.875 kB / 0.5884 GB, free: 11.33 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01266/0.4996, allocations: 2.638 MB / 0.5909 GB, free: 8.684 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007932/0.5076, allocations: 3.746 MB / 0.5946 GB, free: 4.883 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003011/0.5079, allocations: 296.1 kB / 0.5949 GB, free: 4.594 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001505/0.5094, allocations: 435.9 kB / 0.5953 GB, free: 4.168 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0219/0.5314, allocations: 11.57 MB / 0.6066 GB, free: 7.852 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002331/0.5316, allocations: 59.48 kB / 0.6066 GB, free: 7.793 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001199/0.5329, allocations: 183.9 kB / 0.6068 GB, free: 7.613 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003616/0.5365, allocations: 2.03 MB / 0.6088 GB, free: 5.578 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01972/0.5562, allocations: 9.963 MB / 0.6185 GB, free: 11.6 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05686/0.6131, allocations: 45.56 MB / 0.663 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01122/0.6244, allocations: 4.37 MB / 0.6673 GB, free: 8.156 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00344/0.6279, allocations: 2.483 MB / 0.6697 GB, free: 5.664 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01624/0.6441, allocations: 9.84 MB / 0.6793 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.18e-05/0.6442, allocations: 47.56 kB / 0.6794 GB, free: 11.61 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=171): time 6.863e-06/0.6443, allocations: 0 / 0.6794 GB, free: 11.61 MB / 0.5137 GB Notification: Performance of matching and sorting (n=197): time 0.05637/0.7006, allocations: 19.93 MB / 0.6988 GB, free: 7.551 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/0.7008, allocations: 205.2 kB / 0.699 GB, free: 7.309 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00818/0.709, allocations: 4.693 MB / 0.7036 GB, free: 2.605 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0004643/0.7095, allocations: 57.7 kB / 0.7037 GB, free: 2.543 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.2199/0.9294, allocations: 3.553 MB / 0.7071 GB, free: 181.9 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001404/0.9308, allocations: 0.7681 MB / 0.7079 GB, free: 181.6 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001957/0.9328, allocations: 0.5646 MB / 0.7084 GB, free: 181.6 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.125e-05/0.9329, allocations: 303 kB / 0.7087 GB, free: 181.3 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00541/0.9383, allocations: 2.41 MB / 0.7111 GB, free: 181.3 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007162/0.9455, allocations: 6.259 MB / 0.7172 GB, free: 175.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01131/0.9568, allocations: 9.302 MB / 0.7263 GB, free: 167.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002733/0.9571, allocations: 39.25 kB / 0.7263 GB, free: 167.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01963/0.9768, allocations: 9.782 MB / 0.7359 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001707/0.977, allocations: 63.53 kB / 0.7359 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000216/0.9772, allocations: 134.8 kB / 0.7361 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004311/0.9815, allocations: 1.612 MB / 0.7376 GB, free: 163.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004596/0.9862, allocations: 1.482 MB / 0.7391 GB, free: 163.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01075/0.9969, allocations: 9.554 MB / 0.7484 GB, free: 158.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00502/1.002, allocations: 376.5 kB / 0.7488 GB, free: 157.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001126/1.003, allocations: 389.8 kB / 0.7491 GB, free: 157.4 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.004247/1.007, allocations: 2.463 MB / 0.7515 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000836/1.008, allocations: 402.8 kB / 0.7519 GB, free: 154.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007743/1.016, allocations: 4.251 MB / 0.7561 GB, free: 151.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.051e-05/1.016, allocations: 24 kB / 0.7561 GB, free: 151.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.969e-05/1.016, allocations: 4 kB / 0.7561 GB, free: 151.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.922e-05/1.016, allocations: 11.97 kB / 0.7561 GB, free: 151.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01737/1.034, allocations: 9.727 MB / 0.7656 GB, free: 141.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.416e-05/1.034, allocations: 0 / 0.7656 GB, free: 141.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001476/1.035, allocations: 308 kB / 0.7659 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003875/1.039, allocations: 1.355 MB / 0.7672 GB, free: 139.7 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002866/1.039, allocations: 31.98 kB / 0.7673 GB, free: 139.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009297/1.049, allocations: 8.749 MB / 0.7758 GB, free: 130.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/1.049, allocations: 0 / 0.7758 GB, free: 130.7 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009862/1.058, allocations: 6.991 MB / 0.7826 GB, free: 123.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001041/1.06, allocations: 467.7 kB / 0.7831 GB, free: 123.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000837/1.06, allocations: 28 kB / 0.7831 GB, free: 123.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001869/1.062, allocations: 123.8 kB / 0.7832 GB, free: 123 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000367/1.063, allocations: 129 kB / 0.7834 GB, free: 122.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001243/1.063, allocations: 47.98 kB / 0.7834 GB, free: 122.9 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00375/1.067, allocations: 2.96 MB / 0.7863 GB, free: 119.9 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.31e-07/1.067, allocations: 0 / 0.7863 GB, free: 119.9 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004956/1.072, allocations: 1.187 MB / 0.7874 GB, free: 118.7 MB / 0.5294 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.0003981/1.072, allocations: 166.6 kB / 0.7876 GB, free: 118.6 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007745/1.08, allocations: 5.973 MB / 0.7934 GB, free: 112.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/1.08, allocations: 0 / 0.7934 GB, free: 112.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002544/1.082, allocations: 2.018 MB / 0.7954 GB, free: 110.6 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003499/1.086, allocations: 0.507 MB / 0.7959 GB, free: 110.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01733/1.103, allocations: 14.09 MB / 0.8097 GB, free: 95.91 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003614/1.107, allocations: 3.8 MB / 0.8134 GB, free: 92.08 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001077/1.108, allocations: 311.4 kB / 0.8137 GB, free: 91.78 MB / 0.5294 GB Notification: Performance of SimCode: time 9.02e-07/1.108, allocations: 4 kB / 0.8137 GB, free: 91.77 MB / 0.5294 GB Notification: Performance of Templates: time 0.3337/1.442, allocations: 110.7 MB / 0.9218 GB, free: 163.6 MB / 0.5294 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 -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