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.001367/0.001367, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.001446/0.001446, allocations: 213.7 kB / 24.54 MB, free: 4.016 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.474/1.474, allocations: 230.3 MB / 258 MB, free: 8.262 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.002023/0.002023, allocations: 63.89 kB / 378.8 MB, free: 2.816 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2748/0.2768, allocations: 53.36 MB / 432.1 MB, free: 7.102 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01595/0.2928, allocations: 13.54 MB / 445.7 MB, free: 9.508 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01194/0.3047, allocations: 4.587 MB / 450.2 MB, free: 4.906 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002309/0.307, allocations: 111.4 kB / 450.4 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008408/0.3154, allocations: 4.26 MB / 454.6 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005847/0.3213, allocations: 2.183 MB / 456.8 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002277/0.3236, allocations: 0.9359 MB / 457.7 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009194/0.3328, allocations: 6.136 MB / 463.9 MB, free: 7.25 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005185/0.3379, allocations: 3.729 MB / 467.6 MB, free: 3.457 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003932/0.3419, allocations: 2.154 MB / 469.8 MB, free: 1.297 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005137/0.347, allocations: 3.014 MB / 472.8 MB, free: 14.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001743/0.3488, allocations: 472 kB / 473.2 MB, free: 13.81 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003319/0.3521, allocations: 1.385 MB / 474.6 MB, free: 12.43 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003351/0.3554, allocations: 2.552 MB / 477.2 MB, free: 9.867 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004078/0.3595, allocations: 2.84 MB / 480 MB, free: 7.012 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01133/0.3708, allocations: 9.059 MB / 489.1 MB, free: 13.92 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.3708, allocations: 0 / 489.1 MB, free: 13.92 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3708, allocations: 0 / 489.1 MB, free: 13.92 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002827/0.3711, allocations: 4 kB / 489.1 MB, free: 13.91 MB / 398.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.01548/0.3866, allocations: 6.167 MB / 495.2 MB, free: 7.684 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.182e-05/0.3867, allocations: 8.031 kB / 495.2 MB, free: 7.676 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01237/0.399, allocations: 2.607 MB / 497.8 MB, free: 5.062 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008908/0.4079, allocations: 3.73 MB / 0.4898 GB, free: 1.285 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002853/0.4082, allocations: 308.1 kB / 0.4901 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001571/0.4098, allocations: 427.9 kB / 0.4905 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02314/0.4329, allocations: 11.55 MB / 0.5018 GB, free: 4.27 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001788/0.4331, allocations: 55.52 kB / 0.5019 GB, free: 4.215 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005803/0.4337, allocations: 191.9 kB / 0.502 GB, free: 4.027 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003669/0.4373, allocations: 2.022 MB / 0.504 GB, free: 1.996 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02099/0.4583, allocations: 9.939 MB / 0.5137 GB, free: 8.043 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.281/0.7394, allocations: 45.27 MB / 0.5579 GB, free: 70.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009606/0.749, allocations: 3.767 MB / 0.5616 GB, free: 69.49 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002462/0.7514, allocations: 2.301 MB / 0.5639 GB, free: 68.54 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01202/0.7635, allocations: 9.368 MB / 0.573 GB, free: 64.01 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.943e-05/0.7635, allocations: 49.94 kB / 0.573 GB, free: 63.96 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 5.17e-06/0.7635, allocations: 2.031 kB / 0.5731 GB, free: 63.96 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.04888/0.8124, allocations: 19.94 MB / 0.5925 GB, free: 46.58 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.031e-05/0.8124, allocations: 208.7 kB / 0.5927 GB, free: 46.34 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005025/0.8175, allocations: 4.695 MB / 0.5973 GB, free: 41.72 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003748/0.8178, allocations: 53.7 kB / 0.5974 GB, free: 41.66 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00143/0.8193, allocations: 3.695 MB / 0.601 GB, free: 38.22 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006726/0.8199, allocations: 0.798 MB / 0.6017 GB, free: 37.43 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001303/0.8212, allocations: 1.345 MB / 0.6031 GB, free: 36.08 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.094e-05/0.8213, allocations: 309.1 kB / 0.6034 GB, free: 35.77 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002635/0.8239, allocations: 2.41 MB / 0.6057 GB, free: 33.36 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003886/0.8278, allocations: 6.252 MB / 0.6118 GB, free: 25.26 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008558/0.8364, allocations: 9.285 MB / 0.6209 GB, free: 14.08 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.591e-05/0.8364, allocations: 36 kB / 0.6209 GB, free: 14.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.0163/0.8527, allocations: 9.776 MB / 0.6305 GB, free: 4.258 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001523/0.8529, allocations: 64 kB / 0.6305 GB, free: 4.195 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002555/0.8531, allocations: 136.9 kB / 0.6307 GB, free: 4.062 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004236/0.8574, allocations: 1.619 MB / 0.6322 GB, free: 2.438 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004455/0.8618, allocations: 1.482 MB / 0.6337 GB, free: 0.9531 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01548/0.8773, allocations: 10.06 MB / 0.6435 GB, free: 6.66 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00522/0.8825, allocations: 359.7 kB / 0.6438 GB, free: 6.309 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001219/0.8838, allocations: 396 kB / 0.6442 GB, free: 5.922 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.005124/0.8889, allocations: 2.454 MB / 0.6466 GB, free: 3.453 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001188/0.8901, allocations: 425.1 kB / 0.647 GB, free: 3.035 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009739/0.8998, allocations: 4.22 MB / 0.6511 GB, free: 14.8 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-05/0.8999, allocations: 20 kB / 0.6512 GB, free: 14.78 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.532e-05/0.8999, allocations: 8 kB / 0.6512 GB, free: 14.77 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.736e-05/0.8999, allocations: 11.97 kB / 0.6512 GB, free: 14.76 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02361/0.9235, allocations: 9.625 MB / 0.6606 GB, free: 5.105 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.497e-05/0.9236, allocations: 4 kB / 0.6606 GB, free: 5.102 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001636/0.9252, allocations: 291.6 kB / 0.6609 GB, free: 4.816 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004404/0.9296, allocations: 1.364 MB / 0.6622 GB, free: 3.445 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002737/0.9299, allocations: 39.98 kB / 0.6622 GB, free: 3.406 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01367/0.9435, allocations: 9.187 MB / 0.6712 GB, free: 9.996 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.9435, allocations: 0 / 0.6712 GB, free: 9.996 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01375/0.9573, allocations: 6.976 MB / 0.678 GB, free: 3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001514/0.9588, allocations: 401.2 kB / 0.6784 GB, free: 2.605 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00103/0.9598, allocations: 32 kB / 0.6784 GB, free: 2.574 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002236/0.9621, allocations: 115.8 kB / 0.6785 GB, free: 2.461 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004465/0.9625, allocations: 129 kB / 0.6787 GB, free: 2.332 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001781/0.9627, allocations: 51.98 kB / 0.6787 GB, free: 2.281 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006223/0.9689, allocations: 2.96 MB / 0.6816 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of sort global known variables: time 8e-08/0.9689, allocations: 0 / 0.6816 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.007065/0.976, allocations: 1.187 MB / 0.6828 GB, free: 14.14 MB / 0.4981 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.0007712/0.9768, allocations: 166.9 kB / 0.6829 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01188/0.9886, allocations: 5.733 MB / 0.6885 GB, free: 8.238 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.724e-06/0.9886, allocations: 0 / 0.6885 GB, free: 8.238 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003991/0.9926, allocations: 1.879 MB / 0.6904 GB, free: 6.336 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004566/0.9972, allocations: 0.5443 MB / 0.6909 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02577/1.023, allocations: 11.31 MB / 0.7019 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007723/1.031, allocations: 3.815 MB / 0.7057 GB, free: 6.582 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.006087/1.037, allocations: 1.98 MB / 0.7076 GB, free: 4.594 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001239/1.038, allocations: 263.4 kB / 0.7078 GB, free: 4.336 MB / 0.5137 GB Notification: Performance of SimCode: time 1.703e-06/1.038, allocations: 4 kB / 0.7078 GB, free: 4.332 MB / 0.5137 GB Notification: Performance of Templates: time 0.3212/1.359, allocations: 46.59 MB / 0.7533 GB, free: 189.6 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.173034329898655]