Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001782/0.001782, allocations: 120 kB / 18.5 MB, free: 4.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002111/0.002111, allocations: 213.6 kB / 21.46 MB, free: 1.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.549/1.549, allocations: 230.2 MB / 254.5 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001877/0.001877, allocations: 67.89 kB / 373.8 MB, free: 9.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1036, allocations: 53.31 MB / 427.1 MB, free: 4.465 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.2604/0.364, allocations: 13.51 MB / 440.6 MB, free: 3.988 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01577/0.3798, allocations: 4.572 MB / 445.2 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003897/0.3837, allocations: 97.53 kB / 445.3 MB, free: 1.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01415/0.3978, allocations: 4.231 MB / 449.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01179/0.4096, allocations: 2.176 MB / 451.7 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004571/0.4142, allocations: 0.9355 MB / 452.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01622/0.4304, allocations: 6.118 MB / 458.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01129/0.4417, allocations: 4.332 MB / 463.1 MB, free: 8.668 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00787/0.4496, allocations: 2.137 MB / 465.2 MB, free: 7.445 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006348/0.4559, allocations: 3.006 MB / 468.3 MB, free: 5.574 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001917/0.4578, allocations: 471.9 kB / 468.7 MB, free: 5.574 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004445/0.4623, allocations: 1.376 MB / 470.1 MB, free: 5.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00416/0.4664, allocations: 2.558 MB / 472.6 MB, free: 3.172 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005128/0.4716, allocations: 2.84 MB / 475.5 MB, free: 324 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01353/0.4851, allocations: 9.056 MB / 484.5 MB, free: 7.223 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.4851, allocations: 0 / 484.5 MB, free: 7.223 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.967e-06/0.4851, allocations: 7.938 kB / 484.6 MB, free: 7.215 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002933/0.4854, allocations: 4 kB / 484.6 MB, free: 7.211 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.01522/0.5006, allocations: 6.227 MB / 490.8 MB, free: 0.8984 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.5007, allocations: 8.031 kB / 490.8 MB, free: 0.8906 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01282/0.5135, allocations: 2.618 MB / 493.4 MB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009291/0.5228, allocations: 3.82 MB / 497.2 MB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002878/0.5231, allocations: 296.1 kB / 497.5 MB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001335/0.5244, allocations: 428 kB / 497.9 MB, free: 9.688 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02199/0.5464, allocations: 11.56 MB / 0.4975 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001515/0.5465, allocations: 51.59 kB / 0.4976 GB, free: 13.33 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005278/0.5471, allocations: 187.9 kB / 0.4978 GB, free: 13.15 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003674/0.5507, allocations: 2.022 MB / 0.4998 GB, free: 11.11 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02005/0.5708, allocations: 9.945 MB / 0.5095 GB, free: 1.164 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06467/0.6355, allocations: 45.43 MB / 0.5538 GB, free: 2.41 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01208/0.6475, allocations: 4.22 MB / 0.558 GB, free: 14.04 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003669/0.6512, allocations: 2.299 MB / 0.5602 GB, free: 11.73 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0167/0.6679, allocations: 9.861 MB / 0.5698 GB, free: 1.711 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.264e-05/0.6679, allocations: 43.56 kB / 0.5699 GB, free: 1.66 MB / 478.1 MB Notification: Performance of pre-optimization done (n=171): time 3.677e-06/0.6679, allocations: 0 / 0.5699 GB, free: 1.66 MB / 478.1 MB Notification: Performance of matching and sorting (n=197): time 0.06087/0.7288, allocations: 20.17 MB / 0.5896 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001481/0.729, allocations: 205.2 kB / 0.5898 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007746/0.7367, allocations: 4.698 MB / 0.5943 GB, free: 8.449 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000441/0.7372, allocations: 53.7 kB / 0.5944 GB, free: 8.391 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003239/0.7404, allocations: 3.7 MB / 0.598 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001176/0.7416, allocations: 0.7908 MB / 0.5988 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002119/0.7437, allocations: 1.341 MB / 0.6001 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001358/0.7438, allocations: 309.1 kB / 0.6004 GB, free: 2.203 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004011/0.7478, allocations: 2.406 MB / 0.6027 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007578/0.7554, allocations: 6.248 MB / 0.6088 GB, free: 7.645 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2233/0.9787, allocations: 9.287 MB / 0.6179 GB, free: 153.2 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.098e-05/0.9788, allocations: 39 kB / 0.6179 GB, free: 153.2 MB / 0.5137 GB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01705/0.9958, allocations: 9.779 MB / 0.6275 GB, free: 151 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.757e-05/0.9959, allocations: 63.36 kB / 0.6276 GB, free: 151 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001486/0.9961, allocations: 134.7 kB / 0.6277 GB, free: 151 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004422/1, allocations: 1.605 MB / 0.6293 GB, free: 150.7 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004418/1.005, allocations: 1.489 MB / 0.6307 GB, free: 150.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01218/1.017, allocations: 10.26 MB / 0.6407 GB, free: 144.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004829/1.022, allocations: 368.7 kB / 0.6411 GB, free: 144.6 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007163/1.023, allocations: 393.5 kB / 0.6414 GB, free: 144.6 MB / 0.5137 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.003239/1.026, allocations: 2.446 MB / 0.6438 GB, free: 143.5 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000612/1.026, allocations: 426.1 kB / 0.6442 GB, free: 143.5 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007134/1.034, allocations: 4.218 MB / 0.6484 GB, free: 142.1 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.586e-05/1.034, allocations: 25.84 kB / 0.6484 GB, free: 142 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.585e-05/1.034, allocations: 6.5 kB / 0.6484 GB, free: 142 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.606e-05/1.034, allocations: 11.09 kB / 0.6484 GB, free: 142 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01605/1.05, allocations: 9.652 MB / 0.6578 GB, free: 138.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.796e-05/1.05, allocations: 0 / 0.6578 GB, free: 138.7 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001366/1.051, allocations: 297.7 kB / 0.6581 GB, free: 138.6 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003596/1.055, allocations: 1.36 MB / 0.6594 GB, free: 138.2 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001656/1.055, allocations: 33.16 kB / 0.6595 GB, free: 138.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008894/1.064, allocations: 9.4 MB / 0.6687 GB, free: 131 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/1.064, allocations: 2.734 kB / 0.6687 GB, free: 131 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008736/1.073, allocations: 6.973 MB / 0.6755 GB, free: 124.1 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009247/1.073, allocations: 480.4 kB / 0.6759 GB, free: 123.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000458/1.074, allocations: 38.25 kB / 0.676 GB, free: 123.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001498/1.075, allocations: 107.9 kB / 0.6761 GB, free: 123.4 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003609/1.076, allocations: 125.1 kB / 0.6762 GB, free: 123.3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001287/1.076, allocations: 52 kB / 0.6762 GB, free: 123.3 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003373/1.079, allocations: 2.96 MB / 0.6791 GB, free: 120.3 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.7e-07/1.079, allocations: 0 / 0.6791 GB, free: 120.3 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005373/1.085, allocations: 1.184 MB / 0.6803 GB, free: 119.1 MB / 0.5137 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.0004164/1.085, allocations: 170.8 kB / 0.6804 GB, free: 119 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008017/1.093, allocations: 5.736 MB / 0.686 GB, free: 113.2 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/1.093, allocations: 0 / 0.686 GB, free: 113.2 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002505/1.096, allocations: 1.874 MB / 0.6879 GB, free: 111.3 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002791/1.098, allocations: 0.5464 MB / 0.6884 GB, free: 110.8 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01446/1.113, allocations: 11.21 MB / 0.6994 GB, free: 99.59 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003067/1.116, allocations: 3.816 MB / 0.7031 GB, free: 95.76 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0036/1.119, allocations: 1.983 MB / 0.705 GB, free: 93.77 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000677/1.12, allocations: 271.4 kB / 0.7053 GB, free: 93.5 MB / 0.5137 GB Notification: Performance of SimCode: time 1.312e-06/1.12, allocations: 4 kB / 0.7053 GB, free: 93.5 MB / 0.5137 GB Notification: Performance of Templates: time 0.06782/1.188, allocations: 42.47 MB / 0.7468 GB, free: 51.27 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.8277807626873255]