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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001087/0.001087, allocations: 100 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001476/0.001476, allocations: 194.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.7 MB / 246.4 MB, free: 9.809 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002343/0.0002343, allocations: 4 kB / 307.1 MB, free: 0.9453 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1015, allocations: 51.53 MB / 358.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.2113/0.3128, allocations: 59.38 MB / 418 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02798/0.3408, allocations: 12.54 MB / 430.6 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01019/0.3511, allocations: 287.3 kB / 430.8 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00851/0.3596, allocations: 3.107 MB / 433.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02671/0.3863, allocations: 9.019 MB / 443 MB, free: 6.699 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004579/0.3909, allocations: 0.8041 MB / 443.8 MB, free: 5.895 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.07743/0.4684, allocations: 62.01 MB / 0.4939 GB, free: 7.805 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00918/0.4776, allocations: 6.534 MB / 0.5003 GB, free: 1.215 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00285/0.4805, allocations: 1.631 MB / 0.5019 GB, free: 15.58 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003035/0.4835, allocations: 2.504 MB / 0.5043 GB, free: 13.07 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004203/0.484, allocations: 180 kB / 0.5045 GB, free: 12.89 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001852/0.4858, allocations: 0.9675 MB / 0.5055 GB, free: 11.92 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001755/0.4876, allocations: 2.127 MB / 0.5075 GB, free: 9.789 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008838/0.4885, allocations: 1.022 MB / 0.5085 GB, free: 8.758 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005943/0.4944, allocations: 7.007 MB / 0.5154 GB, free: 1.734 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.4945, allocations: 0 / 0.5154 GB, free: 1.734 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4945, allocations: 0 / 0.5154 GB, free: 1.734 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001291/0.4946, allocations: 0 / 0.5154 GB, free: 1.734 MB / 430.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.009298/0.5039, allocations: 5.05 MB / 0.5203 GB, free: 12.61 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.504, allocations: 12.03 kB / 0.5203 GB, free: 12.6 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01048/0.5144, allocations: 2.641 MB / 0.5229 GB, free: 9.949 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007134/0.5216, allocations: 3.668 MB / 0.5265 GB, free: 6.227 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001945/0.5218, allocations: 295.8 kB / 0.5268 GB, free: 5.938 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000801/0.5226, allocations: 431.6 kB / 0.5272 GB, free: 5.516 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1934/0.716, allocations: 11.53 MB / 0.5384 GB, free: 147.5 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001441/0.7162, allocations: 56.31 kB / 0.5385 GB, free: 147.5 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004356/0.7167, allocations: 186.6 kB / 0.5387 GB, free: 147.4 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003206/0.7199, allocations: 2.027 MB / 0.5406 GB, free: 147 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01871/0.7386, allocations: 9.912 MB / 0.5503 GB, free: 143.8 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04199/0.7806, allocations: 45.54 MB / 0.5948 GB, free: 102.4 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008765/0.7894, allocations: 4.369 MB / 0.5991 GB, free: 97.9 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002331/0.7918, allocations: 2.468 MB / 0.6015 GB, free: 95.42 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01095/0.8027, allocations: 9.822 MB / 0.6111 GB, free: 85.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.562e-05/0.8028, allocations: 55.5 kB / 0.6111 GB, free: 85.44 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 3.987e-06/0.8028, allocations: 4 kB / 0.6111 GB, free: 85.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.04313/0.8459, allocations: 19.92 MB / 0.6306 GB, free: 65.39 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.747e-05/0.846, allocations: 209.2 kB / 0.6308 GB, free: 65.14 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004751/0.8508, allocations: 4.661 MB / 0.6353 GB, free: 60.47 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001766/0.851, allocations: 57.27 kB / 0.6354 GB, free: 60.41 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001592/0.8526, allocations: 3.559 MB / 0.6389 GB, free: 56.86 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005115/0.8531, allocations: 0.76 MB / 0.6396 GB, free: 56.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002386/0.8533, allocations: 128.9 kB / 0.6397 GB, free: 55.98 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002215/0.8536, allocations: 0.5751 MB / 0.6403 GB, free: 55.39 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002833/0.8564, allocations: 2.39 MB / 0.6426 GB, free: 53 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00404/0.8605, allocations: 6.229 MB / 0.6487 GB, free: 44.87 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003878/0.8643, allocations: 3.782 MB / 0.6524 GB, free: 41.09 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.062e-05/0.8644, allocations: 36 kB / 0.6524 GB, free: 41.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01242/0.8768, allocations: 9.721 MB / 0.6619 GB, free: 31.32 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.168e-05/0.8769, allocations: 64.06 kB / 0.662 GB, free: 31.26 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.016e-05/0.877, allocations: 140 kB / 0.6621 GB, free: 31.12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003496/0.8805, allocations: 1.625 MB / 0.6637 GB, free: 29.49 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003661/0.8842, allocations: 1.493 MB / 0.6652 GB, free: 28 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009357/0.8936, allocations: 9.519 MB / 0.6745 GB, free: 18.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004055/0.8976, allocations: 368.3 kB / 0.6748 GB, free: 17.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005264/0.8982, allocations: 393.2 kB / 0.6752 GB, free: 17.46 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,77.8%) 31,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003115/0.9013, allocations: 2.463 MB / 0.6776 GB, free: 14.99 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004951/0.9018, allocations: 410.7 kB / 0.678 GB, free: 14.58 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00652/0.9083, allocations: 4.236 MB / 0.6821 GB, free: 10.33 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.331e-05/0.9084, allocations: 29.17 kB / 0.6821 GB, free: 10.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.376e-05/0.9084, allocations: 8 kB / 0.6822 GB, free: 10.29 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.65e-05/0.9084, allocations: 7.969 kB / 0.6822 GB, free: 10.29 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01298/0.9214, allocations: 9.719 MB / 0.6917 GB, free: 0.5273 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.428e-06/0.9214, allocations: 0 / 0.6917 GB, free: 0.5273 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001263/0.9227, allocations: 307.6 kB / 0.6919 GB, free: 232 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003647/0.9264, allocations: 1.353 MB / 0.6933 GB, free: 14.87 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001354/0.9265, allocations: 37.17 kB / 0.6933 GB, free: 14.83 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0108/0.9373, allocations: 8.737 MB / 0.7018 GB, free: 5.824 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.9374, allocations: 2.422 kB / 0.7018 GB, free: 5.824 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2055/1.143, allocations: 6.956 MB / 0.7086 GB, free: 145.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001424/1.144, allocations: 465.4 kB / 0.7091 GB, free: 145.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006518/1.145, allocations: 30.97 kB / 0.7091 GB, free: 145.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001534/1.147, allocations: 119.2 kB / 0.7092 GB, free: 145.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003921/1.147, allocations: 119.1 kB / 0.7093 GB, free: 145.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000156/1.147, allocations: 53.97 kB / 0.7094 GB, free: 145.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006116/1.153, allocations: 2.936 MB / 0.7122 GB, free: 145.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.132e-06/1.153, allocations: 0 / 0.7122 GB, free: 145.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006064/1.159, allocations: 1.192 MB / 0.7134 GB, free: 145.6 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003918/1.16, allocations: 172.9 kB / 0.7136 GB, free: 145.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009988/1.17, allocations: 5.935 MB / 0.7194 GB, free: 143.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/1.17, allocations: 1.188 kB / 0.7194 GB, free: 143.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003222/1.173, allocations: 2.004 MB / 0.7213 GB, free: 142.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003451/1.176, allocations: 0.5054 MB / 0.7218 GB, free: 142.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01937/1.196, allocations: 13.06 MB / 0.7346 GB, free: 136.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003356/1.199, allocations: 3.816 MB / 0.7383 GB, free: 134.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004383/1.204, allocations: 1.978 MB / 0.7402 GB, free: 134.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006256/1.204, allocations: 269.8 kB / 0.7405 GB, free: 134.5 MB / 462.1 MB Notification: Performance of SimCode: time 7.01e-07/1.204, allocations: 0 / 0.7405 GB, free: 134.5 MB / 462.1 MB Notification: Performance of Templates: time 0.05752/1.262, allocations: 41.9 MB / 0.7814 GB, free: 98.55 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (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) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches