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.001192/0.001192, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001295/0.001295, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.4 MB / 246.9 MB, free: 9.035 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2181/0.2181, allocations: 46.11 MB / 344.3 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 78.53 kB / 417.5 MB, free: 20.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1198, allocations: 62.44 MB / 479.9 MB, free: 5.691 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.292/0.4119, allocations: 65.53 MB / 0.5327 GB, free: 6.883 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03397/0.4459, allocations: 13.15 MB / 0.5455 GB, free: 14.65 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01612/0.462, allocations: 296.4 kB / 0.5458 GB, free: 14.6 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00806/0.4702, allocations: 4.191 MB / 0.5499 GB, free: 12.35 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00645/0.4767, allocations: 2.007 MB / 0.5519 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002433/0.4791, allocations: 0.851 MB / 0.5527 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01091/0.4901, allocations: 8.8 MB / 0.5613 GB, free: 4.102 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007384/0.4975, allocations: 5.094 MB / 0.5663 GB, free: 14.96 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003792/0.5013, allocations: 1.877 MB / 0.5681 GB, free: 13.08 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004838/0.5062, allocations: 2.987 MB / 0.571 GB, free: 10.09 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001426/0.5076, allocations: 332 kB / 0.5713 GB, free: 9.762 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003423/0.5111, allocations: 1.26 MB / 0.5726 GB, free: 8.5 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003467/0.5145, allocations: 2.381 MB / 0.5749 GB, free: 6.113 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005038/0.5196, allocations: 2.719 MB / 0.5775 GB, free: 3.379 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008461/0.5281, allocations: 7.173 MB / 0.5845 GB, free: 12.19 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.5281, allocations: 0 / 0.5845 GB, free: 12.19 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.679e-06/0.5281, allocations: 0 / 0.5845 GB, free: 12.19 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003562/0.5285, allocations: 3.938 kB / 0.5846 GB, free: 12.19 MB / 430.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.01716/0.5457, allocations: 6.068 MB / 0.5905 GB, free: 6.047 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.5457, allocations: 8.875 kB / 0.5905 GB, free: 6.039 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01213/0.5579, allocations: 2.595 MB / 0.593 GB, free: 3.434 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009488/0.5674, allocations: 3.738 MB / 0.5967 GB, free: 15.64 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003649/0.5678, allocations: 300.1 kB / 0.597 GB, free: 15.35 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001991/0.5698, allocations: 428 kB / 0.5974 GB, free: 14.93 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02763/0.5975, allocations: 11.55 MB / 0.6086 GB, free: 2.629 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003298/0.5978, allocations: 55.44 kB / 0.6087 GB, free: 2.574 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001629/0.5995, allocations: 187.9 kB / 0.6089 GB, free: 2.391 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003756/0.6032, allocations: 2.03 MB / 0.6109 GB, free: 364 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0216/0.6249, allocations: 9.932 MB / 0.6206 GB, free: 6.406 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06572/0.6906, allocations: 45.54 MB / 0.665 GB, free: 7.504 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01143/0.7021, allocations: 4.366 MB / 0.6693 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003503/0.7057, allocations: 2.473 MB / 0.6717 GB, free: 0.5156 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01765/0.7234, allocations: 9.843 MB / 0.6813 GB, free: 6.508 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.885e-05/0.7235, allocations: 51.5 kB / 0.6814 GB, free: 6.449 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=171): time 5.43e-06/0.7235, allocations: 4 kB / 0.6814 GB, free: 6.445 MB / 0.5137 GB Notification: Performance of matching and sorting (n=197): time 0.06044/0.7839, allocations: 19.91 MB / 0.7008 GB, free: 2.41 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001653/0.7841, allocations: 197.2 kB / 0.701 GB, free: 2.172 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009132/0.7933, allocations: 4.697 MB / 0.7056 GB, free: 13.46 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0004836/0.7938, allocations: 53.7 kB / 0.7056 GB, free: 13.41 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003168/0.797, allocations: 3.556 MB / 0.7091 GB, free: 9.801 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001213/0.7982, allocations: 0.7637 MB / 0.7099 GB, free: 9.027 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003419/0.8017, allocations: 1.336 MB / 0.7112 GB, free: 7.68 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001113/0.8018, allocations: 301.1 kB / 0.7115 GB, free: 7.383 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004214/0.806, allocations: 2.41 MB / 0.7138 GB, free: 4.969 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2108/1.017, allocations: 6.242 MB / 0.7199 GB, free: 191.3 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01021/1.027, allocations: 9.296 MB / 0.729 GB, free: 184.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000176/1.027, allocations: 37.81 kB / 0.729 GB, free: 184.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01768/1.045, allocations: 9.773 MB / 0.7386 GB, free: 181.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001266/1.045, allocations: 61.91 kB / 0.7386 GB, free: 181.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002162/1.045, allocations: 138.7 kB / 0.7388 GB, free: 181.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004681/1.05, allocations: 1.616 MB / 0.7403 GB, free: 181 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004557/1.055, allocations: 1.483 MB / 0.7418 GB, free: 180.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01061/1.065, allocations: 9.534 MB / 0.7511 GB, free: 175.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004796/1.07, allocations: 362.4 kB / 0.7514 GB, free: 175.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00107/1.071, allocations: 393 kB / 0.7518 GB, free: 175.4 MB / 0.545 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.004374/1.076, allocations: 2.453 MB / 0.7542 GB, free: 174.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009284/1.077, allocations: 411.6 kB / 0.7546 GB, free: 174.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00752/1.084, allocations: 4.234 MB / 0.7587 GB, free: 172.9 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.826e-05/1.084, allocations: 22.44 kB / 0.7588 GB, free: 172.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.115e-05/1.084, allocations: 11.31 kB / 0.7588 GB, free: 172.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.709e-05/1.084, allocations: 11.58 kB / 0.7588 GB, free: 172.9 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01769/1.102, allocations: 9.716 MB / 0.7683 GB, free: 165.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.797e-05/1.102, allocations: 4 kB / 0.7683 GB, free: 165.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001444/1.103, allocations: 299.5 kB / 0.7686 GB, free: 164.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003737/1.107, allocations: 1.36 MB / 0.7699 GB, free: 163.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002395/1.107, allocations: 36 kB / 0.7699 GB, free: 163.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009019/1.117, allocations: 8.729 MB / 0.7784 GB, free: 154.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/1.117, allocations: 5.297 kB / 0.7784 GB, free: 154.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009568/1.126, allocations: 6.978 MB / 0.7853 GB, free: 147.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001004/1.127, allocations: 451.7 kB / 0.7857 GB, free: 147.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008454/1.128, allocations: 32.88 kB / 0.7857 GB, free: 147.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001906/1.13, allocations: 115.8 kB / 0.7858 GB, free: 147 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003851/1.13, allocations: 128.5 kB / 0.786 GB, free: 146.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001484/1.131, allocations: 52 kB / 0.786 GB, free: 146.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004576/1.135, allocations: 2.965 MB / 0.7889 GB, free: 143.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.3e-07/1.135, allocations: 0 / 0.7889 GB, free: 143.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005993/1.141, allocations: 1.18 MB / 0.79 GB, free: 142.7 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.0005575/1.142, allocations: 169.2 kB / 0.7902 GB, free: 142.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008414/1.15, allocations: 5.954 MB / 0.796 GB, free: 136.6 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/1.15, allocations: 192 / 0.796 GB, free: 136.6 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002863/1.153, allocations: 2.014 MB / 0.798 GB, free: 134.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004/1.157, allocations: 0.5058 MB / 0.7985 GB, free: 134 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01965/1.177, allocations: 13.98 MB / 0.8121 GB, free: 120 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004982/1.182, allocations: 3.8 MB / 0.8159 GB, free: 116.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00117/1.183, allocations: 311.4 kB / 0.8161 GB, free: 115.9 MB / 0.545 GB Notification: Performance of SimCode: time 7.91e-07/1.183, allocations: 6.953 kB / 0.8162 GB, free: 115.9 MB / 0.545 GB Notification: Performance of Templates: time 0.3099/1.493, allocations: 111.7 MB / 0.9253 GB, free: 179.6 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 -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