Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001416/0.001416, allocations: 200.7 kB / 17.43 MB, free: 4.273 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 229.5 MB / 247.7 MB, free: 6.32 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007866/0.0007867, allocations: 93.52 kB / 299.8 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002204/0.0002204, allocations: 8 kB / 360.6 MB, free: 8.465 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2069/0.2071, allocations: 51.41 MB / 412.1 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.04996/0.2571, allocations: 63.32 MB / 475.4 MB, free: 10.41 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.02866/0.2858, allocations: 16.94 MB / 492.3 MB, free: 8.676 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01028/0.2961, allocations: 307.2 kB / 492.6 MB, free: 8.375 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001597/0.2977, allocations: 0.5014 MB / 493.1 MB, free: 7.871 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004358/0.3021, allocations: 2.048 MB / 495.2 MB, free: 5.816 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001556/0.3037, allocations: 0.8426 MB / 496 MB, free: 4.973 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.008892/0.3126, allocations: 8.901 MB / 0.4931 GB, free: 12.05 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00979/0.3224, allocations: 8.982 MB / 0.5018 GB, free: 2.57 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003426/0.3259, allocations: 1.685 MB / 0.5035 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.224/0.5499, allocations: 2.531 MB / 0.506 GB, free: 13.09 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001033/0.551, allocations: 180.2 kB / 0.5061 GB, free: 13.09 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002583/0.5536, allocations: 1.101 MB / 0.5072 GB, free: 13.09 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002356/0.5559, allocations: 2.176 MB / 0.5093 GB, free: 13.09 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003032/0.559, allocations: 2.506 MB / 0.5118 GB, free: 12.7 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01031/0.5693, allocations: 8.538 MB / 0.5201 GB, free: 11.54 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.5693, allocations: 0 / 0.5201 GB, free: 11.54 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.5694, allocations: 1.344 kB / 0.5201 GB, free: 11.54 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003918/0.5698, allocations: 0 / 0.5201 GB, free: 11.54 MB / 378.7 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.01183/0.5816, allocations: 5.062 MB / 0.5251 GB, free: 9.262 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.5817, allocations: 8.062 kB / 0.5251 GB, free: 9.262 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01094/0.5926, allocations: 2.674 MB / 0.5277 GB, free: 8.105 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008659/0.6013, allocations: 3.744 MB / 0.5313 GB, free: 6.812 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002351/0.6016, allocations: 299.1 kB / 0.5316 GB, free: 6.805 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00162/0.6032, allocations: 440 kB / 0.532 GB, free: 6.785 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0208/0.624, allocations: 11.72 MB / 0.5435 GB, free: 2.961 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002102/0.6243, allocations: 56.06 kB / 0.5435 GB, free: 2.953 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006642/0.625, allocations: 186.1 kB / 0.5437 GB, free: 2.953 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003092/0.6281, allocations: 2.096 MB / 0.5458 GB, free: 2.492 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01873/0.6468, allocations: 10.06 MB / 0.5556 GB, free: 14.84 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06593/0.7128, allocations: 46 MB / 0.6005 GB, free: 8.254 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01118/0.724, allocations: 4.363 MB / 0.6048 GB, free: 4.766 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003547/0.7276, allocations: 2.464 MB / 0.6072 GB, free: 3.316 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01652/0.7441, allocations: 9.842 MB / 0.6168 GB, free: 10.41 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.369e-05/0.7442, allocations: 55.56 kB / 0.6168 GB, free: 10.34 MB / 442.7 MB Notification: Performance of pre-optimization done (n=171): time 6.452e-06/0.7442, allocations: 0 / 0.6168 GB, free: 10.34 MB / 442.7 MB Notification: Performance of matching and sorting (n=197): time 0.05295/0.7972, allocations: 19.98 MB / 0.6363 GB, free: 6.293 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/0.7973, allocations: 199.7 kB / 0.6365 GB, free: 6.055 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008117/0.8055, allocations: 4.67 MB / 0.6411 GB, free: 1.375 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006672/0.8062, allocations: 57.7 kB / 0.6412 GB, free: 1.312 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002838/0.809, allocations: 3.593 MB / 0.6447 GB, free: 13.71 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001285/0.8103, allocations: 0.7603 MB / 0.6454 GB, free: 12.96 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003364/0.8107, allocations: 132 kB / 0.6455 GB, free: 12.83 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003724/0.811, allocations: 0.5868 MB / 0.6461 GB, free: 12.24 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003606/0.8147, allocations: 2.39 MB / 0.6484 GB, free: 9.844 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006348/0.821, allocations: 6.252 MB / 0.6545 GB, free: 1.746 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01103/0.8321, allocations: 9.302 MB / 0.6636 GB, free: 7.117 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001123/0.8323, allocations: 40 kB / 0.6637 GB, free: 7.078 MB / 490.7 MB Notification: Performance of matching and sorting (n=858) (initialization): time 0.01884/0.8511, allocations: 9.755 MB / 0.6732 GB, free: 14.13 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 9.08e-05/0.8512, allocations: 63.94 kB / 0.6733 GB, free: 14.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001578/0.8514, allocations: 136 kB / 0.6734 GB, free: 13.94 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004449/0.8559, allocations: 1.61 MB / 0.675 GB, free: 12.32 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005037/0.8609, allocations: 1.496 MB / 0.6764 GB, free: 10.96 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01218/0.8731, allocations: 9.546 MB / 0.6857 GB, free: 1.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005446/0.8786, allocations: 371.3 kB / 0.6861 GB, free: 0.8672 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001252/0.8799, allocations: 395.2 kB / 0.6865 GB, free: 496 kB / 0.4948 GB 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.1983/1.078, allocations: 2.474 MB / 0.6889 GB, free: 196 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008198/1.079, allocations: 411.4 kB / 0.6893 GB, free: 196 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007858/1.087, allocations: 4.237 MB / 0.6934 GB, free: 195.2 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-05/1.087, allocations: 23.72 kB / 0.6934 GB, free: 195.2 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.311e-05/1.087, allocations: 6.375 kB / 0.6934 GB, free: 195.2 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.729e-05/1.087, allocations: 13.83 kB / 0.6935 GB, free: 195.2 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01473/1.102, allocations: 9.775 MB / 0.703 GB, free: 191.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.364e-05/1.102, allocations: 3.938 kB / 0.703 GB, free: 191.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00138/1.103, allocations: 307.1 kB / 0.7033 GB, free: 191.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003652/1.107, allocations: 1.351 MB / 0.7046 GB, free: 191.5 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002122/1.107, allocations: 37.12 kB / 0.7047 GB, free: 191.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00887/1.116, allocations: 8.73 MB / 0.7132 GB, free: 186.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/1.116, allocations: 1.344 kB / 0.7132 GB, free: 186.5 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009341/1.125, allocations: 6.97 MB / 0.72 GB, free: 183 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001081/1.126, allocations: 469.8 kB / 0.7204 GB, free: 182.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004479/1.127, allocations: 39.44 kB / 0.7205 GB, free: 182.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001464/1.128, allocations: 117.6 kB / 0.7206 GB, free: 182.7 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003714/1.129, allocations: 122.9 kB / 0.7207 GB, free: 182.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001296/1.129, allocations: 60.55 kB / 0.7208 GB, free: 182.6 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003721/1.133, allocations: 2.924 MB / 0.7236 GB, free: 180.1 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.5e-07/1.133, allocations: 0 / 0.7236 GB, free: 180.1 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004782/1.137, allocations: 1.205 MB / 0.7248 GB, free: 178.9 MB / 0.4948 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.0003736/1.138, allocations: 176.9 kB / 0.725 GB, free: 178.8 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007493/1.145, allocations: 5.957 MB / 0.7308 GB, free: 173.6 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/1.145, allocations: 0 / 0.7308 GB, free: 173.6 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002502/1.148, allocations: 2 MB / 0.7327 GB, free: 171.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003402/1.151, allocations: 0.5197 MB / 0.7332 GB, free: 171.4 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01628/1.167, allocations: 13.75 MB / 0.7467 GB, free: 157.9 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003381/1.171, allocations: 3.866 MB / 0.7504 GB, free: 154 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.00434/1.175, allocations: 1.988 MB / 0.7524 GB, free: 152 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006784/1.176, allocations: 271.4 kB / 0.7526 GB, free: 151.8 MB / 0.4948 GB Notification: Performance of SimCode: time 1.192e-06/1.176, allocations: 0 / 0.7526 GB, free: 151.8 MB / 0.4948 GB Notification: Performance of Templates: time 0.07745/1.253, allocations: 43.05 MB / 0.7947 GB, free: 109 MB / 0.4948 GB 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","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches