Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001324/0.001324, allocations: 106.5 kB / 17.74 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 183.1 kB / 18.67 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.413/1.413, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 47.92 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2322/0.2337, allocations: 49.44 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01628/0.25, allocations: 13.62 MB / 415 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01075/0.2607, allocations: 4.551 MB / 419.6 MB, free: 6.621 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001557/0.2623, allocations: 91.75 kB / 419.7 MB, free: 6.531 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007658/0.2699, allocations: 4.248 MB / 423.9 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004877/0.2748, allocations: 2.233 MB / 426.1 MB, free: 32 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001872/0.2767, allocations: 0.9321 MB / 427.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008052/0.2847, allocations: 6.064 MB / 433.1 MB, free: 9.023 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005522/0.2903, allocations: 4.349 MB / 437.5 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003373/0.2936, allocations: 2.146 MB / 439.6 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004145/0.2978, allocations: 2.824 MB / 442.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00117/0.299, allocations: 476 kB / 442.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002561/0.3015, allocations: 1.362 MB / 444.3 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002763/0.3043, allocations: 2.602 MB / 446.9 MB, free: 11.19 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003661/0.3079, allocations: 2.883 MB / 449.8 MB, free: 8.289 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01136/0.3193, allocations: 9.223 MB / 459 MB, free: 15.03 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.3193, allocations: 0 / 459 MB, free: 15.03 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3193, allocations: 0 / 459 MB, free: 15.03 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002419/0.3195, allocations: 0 / 459 MB, free: 15.03 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: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.01349/0.333, allocations: 6.285 MB / 465.3 MB, free: 8.664 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.3331, allocations: 8.031 kB / 465.3 MB, free: 8.656 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01261/0.3457, allocations: 2.614 MB / 467.9 MB, free: 6.035 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009588/0.3553, allocations: 3.892 MB / 471.8 MB, free: 2.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002965/0.3556, allocations: 304.2 kB / 472.1 MB, free: 1.793 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001523/0.3571, allocations: 427.9 kB / 472.5 MB, free: 1.375 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02224/0.3793, allocations: 11.74 MB / 484.2 MB, free: 4.891 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001687/0.3795, allocations: 55.53 kB / 484.3 MB, free: 4.836 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005369/0.38, allocations: 187.9 kB / 484.5 MB, free: 4.652 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003872/0.3839, allocations: 2.089 MB / 486.6 MB, free: 2.555 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0204/0.4043, allocations: 10.09 MB / 496.7 MB, free: 8.449 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06283/0.4671, allocations: 45.84 MB / 0.5298 GB, free: 9.219 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01172/0.4789, allocations: 4.216 MB / 0.5339 GB, free: 4.863 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003507/0.4824, allocations: 2.299 MB / 0.5362 GB, free: 2.555 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2085/0.6908, allocations: 9.866 MB / 0.5458 GB, free: 126.4 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.781e-05/0.6909, allocations: 54.88 kB / 0.5458 GB, free: 126.4 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 4.659e-06/0.6909, allocations: 0.8125 kB / 0.5458 GB, free: 126.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.04587/0.7367, allocations: 20.23 MB / 0.5656 GB, free: 114.7 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.054e-05/0.7368, allocations: 201.2 kB / 0.5658 GB, free: 114.4 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004665/0.7415, allocations: 4.717 MB / 0.5704 GB, free: 109.8 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000189/0.7417, allocations: 49.7 kB / 0.5704 GB, free: 109.7 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001573/0.7432, allocations: 3.748 MB / 0.5741 GB, free: 106.4 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005188/0.7438, allocations: 0.7896 MB / 0.5749 GB, free: 105.6 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001316/0.7451, allocations: 1.353 MB / 0.5762 GB, free: 104.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.551e-05/0.7451, allocations: 301.1 kB / 0.5765 GB, free: 104 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002619/0.7477, allocations: 2.41 MB / 0.5788 GB, free: 101.5 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003894/0.7516, allocations: 6.277 MB / 0.585 GB, free: 93.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0069/0.7585, allocations: 9.32 MB / 0.5941 GB, free: 82.18 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.712e-05/0.7586, allocations: 36 kB / 0.5941 GB, free: 82.14 MB / 462.1 MB Notification: Performance of matching and sorting (n=858) (initialization): time 0.01289/0.7715, allocations: 9.794 MB / 0.6037 GB, free: 72.34 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.887e-05/0.7715, allocations: 68.06 kB / 0.6037 GB, free: 72.28 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.559e-05/0.7716, allocations: 138.7 kB / 0.6039 GB, free: 72.14 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003869/0.7755, allocations: 1.616 MB / 0.6054 GB, free: 70.52 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003943/0.7794, allocations: 1.493 MB / 0.6069 GB, free: 69.03 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01028/0.7897, allocations: 10.26 MB / 0.6169 GB, free: 58.49 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004315/0.794, allocations: 359.4 kB / 0.6173 GB, free: 58.14 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004675/0.7945, allocations: 400.9 kB / 0.6176 GB, free: 57.75 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 617 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.arrowLine.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 (796): * Single equations (assignments): 791 * 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.002684/0.7972, allocations: 2.485 MB / 0.6201 GB, free: 55.26 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005539/0.7977, allocations: 433.1 kB / 0.6205 GB, free: 54.84 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006829/0.8046, allocations: 4.216 MB / 0.6246 GB, free: 50.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.478e-05/0.8046, allocations: 27.94 kB / 0.6246 GB, free: 50.57 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/0.8046, allocations: 11.98 kB / 0.6246 GB, free: 50.56 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.34e-05/0.8046, allocations: 7.969 kB / 0.6246 GB, free: 50.55 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01441/0.819, allocations: 9.703 MB / 0.6341 GB, free: 40.81 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.04e-05/0.819, allocations: 0 / 0.6341 GB, free: 40.81 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001395/0.8204, allocations: 307.6 kB / 0.6344 GB, free: 40.51 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00362/0.824, allocations: 1.358 MB / 0.6357 GB, free: 39.14 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000154/0.8242, allocations: 31.83 kB / 0.6358 GB, free: 39.12 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009199/0.8334, allocations: 9.403 MB / 0.645 GB, free: 29.45 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.8334, allocations: 4 kB / 0.645 GB, free: 29.44 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009/0.8424, allocations: 6.97 MB / 0.6518 GB, free: 22.44 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009582/0.8434, allocations: 482 kB / 0.6522 GB, free: 21.95 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000425/0.8438, allocations: 35.52 kB / 0.6523 GB, free: 21.91 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001511/0.8453, allocations: 111.8 kB / 0.6524 GB, free: 21.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003386/0.8456, allocations: 121.1 kB / 0.6525 GB, free: 21.68 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001213/0.8458, allocations: 52 kB / 0.6525 GB, free: 21.63 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003223/0.849, allocations: 2.964 MB / 0.6554 GB, free: 18.67 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.849, allocations: 5.406 kB / 0.6554 GB, free: 18.67 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004569/0.8535, allocations: 1.203 MB / 0.6566 GB, free: 17.46 MB / 462.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.0003925/0.8539, allocations: 178 kB / 0.6568 GB, free: 17.29 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007275/0.8612, allocations: 5.735 MB / 0.6624 GB, free: 11.55 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.8612, allocations: 3.938 kB / 0.6624 GB, free: 11.55 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002472/0.8637, allocations: 1.89 MB / 0.6642 GB, free: 9.637 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002743/0.8664, allocations: 0.5455 MB / 0.6648 GB, free: 9.102 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01498/0.8814, allocations: 11.3 MB / 0.6758 GB, free: 13.75 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004615/0.886, allocations: 3.868 MB / 0.6796 GB, free: 9.852 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004643/0.8907, allocations: 1.988 MB / 0.6815 GB, free: 7.855 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007509/0.8914, allocations: 267.4 kB / 0.6818 GB, free: 7.598 MB / 478.1 MB Notification: Performance of SimCode: time 8.62e-07/0.8914, allocations: 7.938 kB / 0.6818 GB, free: 7.59 MB / 478.1 MB Notification: Performance of Templates: time 0.08626/0.9777, allocations: 42.41 MB / 0.7232 GB, free: 13.45 MB / 0.5137 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches