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.001907/0.001907, allocations: 107.1 kB / 20.44 MB, free: 1.195 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.001548/0.001548, allocations: 212.9 kB / 23.73 MB, free: 4.406 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.467/1.467, allocations: 230.5 MB / 257.4 MB, free: 7.785 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.001981/0.001981, allocations: 67.89 kB / 378.2 MB, free: 2.414 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2734/0.2754, allocations: 53.41 MB / 431.6 MB, free: 6.531 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01568/0.2911, allocations: 11.73 MB / 443.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01086/0.302, allocations: 4.37 MB / 447.7 MB, free: 6.371 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002638/0.3046, allocations: 111.4 kB / 447.8 MB, free: 6.262 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008172/0.3128, allocations: 4.066 MB / 451.9 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006341/0.3191, allocations: 2.202 MB / 454.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002338/0.3215, allocations: 0.9321 MB / 455 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008637/0.3301, allocations: 6.128 MB / 461.2 MB, free: 8.902 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005137/0.3352, allocations: 4 MB / 465.2 MB, free: 4.836 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003292/0.3385, allocations: 2.154 MB / 467.3 MB, free: 2.676 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004056/0.3426, allocations: 2.815 MB / 470.1 MB, free: 15.85 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008501/0.3434, allocations: 468 kB / 470.6 MB, free: 15.39 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002433/0.3459, allocations: 1.249 MB / 471.8 MB, free: 14.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00252/0.3484, allocations: 2.563 MB / 474.4 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002532/0.3509, allocations: 2.125 MB / 476.5 MB, free: 9.438 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01124/0.3621, allocations: 9.103 MB / 485.6 MB, free: 308 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.493e-06/0.3622, allocations: 0 / 485.6 MB, free: 308 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.3622, allocations: 3.938 kB / 485.6 MB, free: 304 kB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002483/0.3624, allocations: 0 / 485.6 MB, free: 304 kB / 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.01464/0.377, allocations: 6.155 MB / 491.8 MB, free: 10.07 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.616e-05/0.3771, allocations: 15.98 kB / 491.8 MB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01192/0.389, allocations: 2.614 MB / 494.4 MB, free: 7.438 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009616/0.3986, allocations: 3.742 MB / 498.2 MB, free: 3.648 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003235/0.399, allocations: 300.1 kB / 498.5 MB, free: 3.355 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001748/0.4007, allocations: 431.8 kB / 498.9 MB, free: 2.934 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02166/0.4224, allocations: 11.59 MB / 0.4985 GB, free: 6.582 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001497/0.4225, allocations: 59.52 kB / 0.4986 GB, free: 6.523 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000497/0.423, allocations: 191.9 kB / 0.4988 GB, free: 6.336 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003602/0.4266, allocations: 2.022 MB / 0.5007 GB, free: 4.305 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01948/0.4461, allocations: 9.908 MB / 0.5104 GB, free: 10.38 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2762/0.7223, allocations: 41.52 MB / 0.551 GB, free: 71.52 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01019/0.7325, allocations: 3.774 MB / 0.5546 GB, free: 71.14 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002688/0.7351, allocations: 2.303 MB / 0.5569 GB, free: 70.19 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01365/0.7488, allocations: 8.744 MB / 0.5654 GB, free: 66.39 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.205e-05/0.7488, allocations: 54.06 kB / 0.5655 GB, free: 66.34 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 7.424e-06/0.7488, allocations: 0 / 0.5655 GB, free: 66.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.04572/0.7946, allocations: 20 MB / 0.585 GB, free: 49.43 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.731e-05/0.7946, allocations: 201.2 kB / 0.5852 GB, free: 49.18 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004367/0.799, allocations: 4.43 MB / 0.5895 GB, free: 44.89 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002703/0.7993, allocations: 59.08 kB / 0.5896 GB, free: 44.83 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001406/0.8007, allocations: 3.718 MB / 0.5932 GB, free: 41.33 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000571/0.8012, allocations: 0.7968 MB / 0.594 GB, free: 40.54 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001297/0.8025, allocations: 1.341 MB / 0.5953 GB, free: 39.19 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.105e-05/0.8026, allocations: 307.9 kB / 0.5956 GB, free: 38.89 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00268/0.8053, allocations: 2.406 MB / 0.5979 GB, free: 36.48 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004043/0.8093, allocations: 6.296 MB / 0.6041 GB, free: 28.32 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008085/0.8174, allocations: 9.294 MB / 0.6132 GB, free: 17.22 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001313/0.8175, allocations: 43.94 kB / 0.6132 GB, free: 17.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01562/0.8331, allocations: 9.741 MB / 0.6227 GB, free: 7.426 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.141e-05/0.8332, allocations: 64 kB / 0.6228 GB, free: 7.363 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001035/0.8333, allocations: 132 kB / 0.6229 GB, free: 7.234 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00391/0.8372, allocations: 1.62 MB / 0.6245 GB, free: 5.609 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004303/0.8415, allocations: 1.482 MB / 0.6259 GB, free: 4.125 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01341/0.8549, allocations: 9.897 MB / 0.6356 GB, free: 10.02 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004827/0.8598, allocations: 359.6 kB / 0.636 GB, free: 9.672 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008618/0.8606, allocations: 392 kB / 0.6363 GB, free: 9.289 MB / 462.1 MB 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.00428/0.8649, allocations: 2.458 MB / 0.6387 GB, free: 6.816 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009527/0.8659, allocations: 385.4 kB / 0.6391 GB, free: 6.438 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009186/0.875, allocations: 4.181 MB / 0.6432 GB, free: 2.238 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.123e-05/0.8751, allocations: 20 kB / 0.6432 GB, free: 2.219 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.629e-05/0.8751, allocations: 8 kB / 0.6432 GB, free: 2.211 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-05/0.8751, allocations: 7.969 kB / 0.6432 GB, free: 2.203 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02055/0.8957, allocations: 8.323 MB / 0.6513 GB, free: 9.875 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.529e-05/0.8957, allocations: 4.031 kB / 0.6513 GB, free: 9.871 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00171/0.8974, allocations: 303.5 kB / 0.6516 GB, free: 9.574 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004533/0.902, allocations: 1.353 MB / 0.653 GB, free: 8.215 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003105/0.9023, allocations: 32 kB / 0.653 GB, free: 8.184 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01403/0.9163, allocations: 9.04 MB / 0.6618 GB, free: 14.94 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.625e-06/0.9163, allocations: 7.938 kB / 0.6618 GB, free: 14.93 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0131/0.9294, allocations: 6.925 MB / 0.6686 GB, free: 7.984 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001369/0.9308, allocations: 357.2 kB / 0.6689 GB, free: 7.633 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004789/0.9312, allocations: 32 kB / 0.669 GB, free: 7.602 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001553/0.9328, allocations: 115.8 kB / 0.6691 GB, free: 7.488 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004047/0.9332, allocations: 125.3 kB / 0.6692 GB, free: 7.367 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000149/0.9334, allocations: 51.98 kB / 0.6692 GB, free: 7.316 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004437/0.9378, allocations: 2.608 MB / 0.6718 GB, free: 4.699 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.9378, allocations: 0 / 0.6718 GB, free: 4.699 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0058/0.9436, allocations: 1.183 MB / 0.6729 GB, free: 3.52 MB / 494.1 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 (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.0004754/0.9441, allocations: 166.9 kB / 0.6731 GB, free: 3.348 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01052/0.9546, allocations: 5.741 MB / 0.6787 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.275e-06/0.9546, allocations: 4 kB / 0.6787 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003564/0.9582, allocations: 1.875 MB / 0.6805 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003075/0.9612, allocations: 476.8 kB / 0.681 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02385/0.9851, allocations: 11.26 MB / 0.692 GB, free: 15.92 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005358/0.9904, allocations: 3.301 MB / 0.6952 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004881/0.9953, allocations: 1.935 MB / 0.6971 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00079/0.9961, allocations: 251.4 kB / 0.6973 GB, free: 10.39 MB / 0.5137 GB Notification: Performance of SimCode: time 1.092e-06/0.9961, allocations: 0 / 0.6973 GB, free: 10.39 MB / 0.5137 GB Notification: Performance of Templates: time 0.3232/1.319, allocations: 43.41 MB / 0.7397 GB, free: 191.9 MB / 0.545 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: 7.184528572484851]