Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_4.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009992/0.0009992, allocations: 94.5 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009236/0.0009236, allocations: 205.4 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.416/1.416, allocations: 228 MB / 247.1 MB, free: 9.523 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.0002793/0.0002793, allocations: 8.875 kB / 308 MB, free: 480 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1009, allocations: 51.53 MB / 359.6 MB, free: 12.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.2373/0.3383, allocations: 63.88 MB / 423.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03372/0.3721, allocations: 13.1 MB / 436.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01234/0.3845, allocations: 287.3 kB / 436.8 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002035/0.3865, allocations: 0.4936 MB / 437.3 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006271/0.3928, allocations: 2.02 MB / 439.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002397/0.3952, allocations: 0.8504 MB / 440.2 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01248/0.4077, allocations: 8.8 MB / 449 MB, free: 1.035 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01336/0.4212, allocations: 7.327 MB / 456.3 MB, free: 9.633 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003864/0.4251, allocations: 1.506 MB / 457.8 MB, free: 8.121 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004802/0.4299, allocations: 2.523 MB / 460.4 MB, free: 5.59 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001163/0.4311, allocations: 180 kB / 460.5 MB, free: 5.414 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003047/0.4342, allocations: 1.119 MB / 461.6 MB, free: 4.293 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003229/0.4374, allocations: 2.174 MB / 463.8 MB, free: 2.113 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003721/0.4412, allocations: 2.459 MB / 466.3 MB, free: 15.63 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01055/0.4517, allocations: 8.409 MB / 474.7 MB, free: 7.195 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.4518, allocations: 0 / 474.7 MB, free: 7.195 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4518, allocations: 0 / 474.7 MB, free: 7.195 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002319/0.452, allocations: 4 kB / 474.7 MB, free: 7.191 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.01218/0.4642, allocations: 4.984 MB / 479.7 MB, free: 2.137 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.958e-05/0.4643, allocations: 12.03 kB / 479.7 MB, free: 2.125 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01338/0.4777, allocations: 2.638 MB / 482.3 MB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008821/0.4865, allocations: 3.73 MB / 486.1 MB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003118/0.4869, allocations: 304.1 kB / 486.4 MB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001295/0.4882, allocations: 424 kB / 486.8 MB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02237/0.5106, allocations: 11.56 MB / 498.3 MB, free: 14.67 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001553/0.5108, allocations: 55.42 kB / 498.4 MB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005138/0.5113, allocations: 191.9 kB / 498.6 MB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003715/0.515, allocations: 2.022 MB / 0.4889 GB, free: 12.39 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02093/0.536, allocations: 9.959 MB / 0.4986 GB, free: 2.418 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2448/0.7808, allocations: 45.55 MB / 0.5431 GB, free: 117.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01083/0.7917, allocations: 4.385 MB / 0.5473 GB, free: 116.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002991/0.7947, allocations: 2.478 MB / 0.5498 GB, free: 116.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.013/0.8077, allocations: 9.83 MB / 0.5594 GB, free: 111.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.746e-05/0.8078, allocations: 58.78 kB / 0.5594 GB, free: 111.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 5.38e-06/0.8078, allocations: 1.5 kB / 0.5594 GB, free: 111.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.04816/0.856, allocations: 19.93 MB / 0.5789 GB, free: 102.6 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.189e-05/0.8561, allocations: 199.2 kB / 0.5791 GB, free: 102.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005115/0.8612, allocations: 4.693 MB / 0.5837 GB, free: 97.64 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002458/0.8614, allocations: 54.88 kB / 0.5837 GB, free: 97.58 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001576/0.863, allocations: 3.559 MB / 0.5872 GB, free: 94.02 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005604/0.8636, allocations: 0.7654 MB / 0.5879 GB, free: 93.27 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005409/0.8641, allocations: 0.567 MB / 0.5885 GB, free: 92.69 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.064e-05/0.8642, allocations: 305.1 kB / 0.5888 GB, free: 92.39 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002803/0.867, allocations: 2.408 MB / 0.5911 GB, free: 89.98 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004033/0.871, allocations: 6.256 MB / 0.5972 GB, free: 82 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007346/0.8784, allocations: 9.298 MB / 0.6063 GB, free: 70.95 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.737e-05/0.8785, allocations: 40 kB / 0.6064 GB, free: 70.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01398/0.8925, allocations: 9.789 MB / 0.6159 GB, free: 61.11 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.784e-05/0.8925, allocations: 71.03 kB / 0.616 GB, free: 61.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.84e-05/0.8926, allocations: 136 kB / 0.6161 GB, free: 60.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003975/0.8966, allocations: 1.61 MB / 0.6177 GB, free: 59.29 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003946/0.9006, allocations: 1.482 MB / 0.6191 GB, free: 57.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0101/0.9107, allocations: 9.547 MB / 0.6285 GB, free: 47.99 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004535/0.9152, allocations: 371.4 kB / 0.6288 GB, free: 47.62 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004869/0.9157, allocations: 389.3 kB / 0.6292 GB, free: 47.25 MB / 446.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.003669/0.9194, allocations: 2.466 MB / 0.6316 GB, free: 44.77 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006962/0.9201, allocations: 406.8 kB / 0.632 GB, free: 44.37 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007209/0.9273, allocations: 4.243 MB / 0.6361 GB, free: 40.11 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-05/0.9274, allocations: 24.78 kB / 0.6362 GB, free: 40.08 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-05/0.9274, allocations: 8 kB / 0.6362 GB, free: 40.07 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.407e-05/0.9274, allocations: 7.969 kB / 0.6362 GB, free: 40.07 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01409/0.9415, allocations: 9.736 MB / 0.6457 GB, free: 30.29 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.656e-06/0.9415, allocations: 192 / 0.6457 GB, free: 30.29 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001362/0.9429, allocations: 307.6 kB / 0.646 GB, free: 29.99 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003737/0.9467, allocations: 1.358 MB / 0.6473 GB, free: 28.63 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001287/0.9468, allocations: 39.98 kB / 0.6473 GB, free: 28.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009067/0.9559, allocations: 8.739 MB / 0.6559 GB, free: 19.59 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.9559, allocations: 12.06 kB / 0.6559 GB, free: 19.58 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009308/0.9652, allocations: 6.979 MB / 0.6627 GB, free: 12.57 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009633/0.9662, allocations: 463.7 kB / 0.6631 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004145/0.9666, allocations: 36.78 kB / 0.6632 GB, free: 12.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00148/0.9681, allocations: 115.8 kB / 0.6633 GB, free: 11.94 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000322/0.9684, allocations: 127.3 kB / 0.6634 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001223/0.9686, allocations: 55.94 kB / 0.6635 GB, free: 11.77 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003503/0.9721, allocations: 2.956 MB / 0.6663 GB, free: 8.812 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.9721, allocations: 0 / 0.6663 GB, free: 8.812 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004474/0.9766, allocations: 1.182 MB / 0.6675 GB, free: 7.633 MB / 446.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.0003566/0.9769, allocations: 170 kB / 0.6677 GB, free: 7.461 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007686/0.9846, allocations: 5.966 MB / 0.6735 GB, free: 1.496 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.9847, allocations: 0.5 kB / 0.6735 GB, free: 1.496 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002943/0.9876, allocations: 2.024 MB / 0.6755 GB, free: 15.45 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003731/0.9914, allocations: 0.5042 MB / 0.676 GB, free: 14.94 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02207/1.013, allocations: 13.63 MB / 0.6893 GB, free: 1.273 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005153/1.019, allocations: 3.831 MB / 0.693 GB, free: 13.41 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005554/1.024, allocations: 1.976 MB / 0.6949 GB, free: 11.42 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007644/1.025, allocations: 267.4 kB / 0.6952 GB, free: 11.16 MB / 478.1 MB Notification: Performance of SimCode: time 7.72e-07/1.025, allocations: 0 / 0.6952 GB, free: 11.16 MB / 478.1 MB Notification: Performance of Templates: time 0.2429/1.268, allocations: 42.73 MB / 0.7369 GB, free: 148.2 MB / 478.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches