Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001402/0.001402, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001496/0.001496, allocations: 210.7 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.491/1.491, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001593/0.001593, allocations: 51.92 kB / 378.2 MB, free: 2.551 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.262, allocations: 53.37 MB / 431.6 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01618/0.2782, allocations: 11.73 MB / 443.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01144/0.2897, allocations: 4.376 MB / 447.7 MB, free: 6.547 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002147/0.2918, allocations: 107.4 kB / 447.8 MB, free: 6.441 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008287/0.3001, allocations: 4.062 MB / 451.9 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005799/0.3059, allocations: 2.202 MB / 454.1 MB, free: 160 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002153/0.3081, allocations: 0.9282 MB / 455 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008536/0.3166, allocations: 6.124 MB / 461.1 MB, free: 9.09 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005107/0.3217, allocations: 4.002 MB / 465.1 MB, free: 5.023 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003673/0.3254, allocations: 2.158 MB / 467.3 MB, free: 2.859 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004766/0.3301, allocations: 2.819 MB / 470.1 MB, free: 32 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001104/0.3312, allocations: 468 kB / 470.5 MB, free: 15.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002675/0.3339, allocations: 1.245 MB / 471.8 MB, free: 14.33 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003023/0.3369, allocations: 2.556 MB / 474.3 MB, free: 11.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003152/0.3401, allocations: 2.132 MB / 476.5 MB, free: 9.621 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01151/0.3516, allocations: 9.103 MB / 485.6 MB, free: 496 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.3516, allocations: 3.938 kB / 485.6 MB, free: 492 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.3516, allocations: 4 kB / 485.6 MB, free: 488 kB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003001/0.3519, allocations: 0 / 485.6 MB, free: 488 kB / 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.01882/0.3707, allocations: 6.159 MB / 491.7 MB, free: 10.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.3708, allocations: 12.03 kB / 491.8 MB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01238/0.3832, allocations: 2.61 MB / 494.4 MB, free: 7.621 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01036/0.3935, allocations: 3.746 MB / 498.1 MB, free: 3.816 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003001/0.3938, allocations: 300.1 kB / 498.4 MB, free: 3.523 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001566/0.3954, allocations: 431.8 kB / 498.8 MB, free: 3.102 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02334/0.4187, allocations: 11.59 MB / 0.4985 GB, free: 6.75 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002089/0.4189, allocations: 59.58 kB / 0.4985 GB, free: 6.691 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007294/0.4197, allocations: 183.9 kB / 0.4987 GB, free: 6.512 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00374/0.4234, allocations: 2.026 MB / 0.5007 GB, free: 4.477 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02193/0.4453, allocations: 9.912 MB / 0.5104 GB, free: 10.55 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.28/0.7253, allocations: 41.52 MB / 0.5509 GB, free: 71.64 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009479/0.7348, allocations: 3.758 MB / 0.5546 GB, free: 71.27 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002445/0.7372, allocations: 2.3 MB / 0.5568 GB, free: 70.32 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01252/0.7498, allocations: 8.757 MB / 0.5654 GB, free: 66.52 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.441e-05/0.7498, allocations: 47.12 kB / 0.5654 GB, free: 66.47 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 5.21e-06/0.7498, allocations: 0 / 0.5654 GB, free: 66.47 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.04707/0.7969, allocations: 20 MB / 0.5849 GB, free: 49.6 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.947e-05/0.7969, allocations: 204.7 kB / 0.5851 GB, free: 49.36 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005024/0.802, allocations: 4.433 MB / 0.5895 GB, free: 45.07 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004369/0.8024, allocations: 51.02 kB / 0.5895 GB, free: 45.01 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00172/0.8041, allocations: 3.721 MB / 0.5932 GB, free: 41.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008237/0.8049, allocations: 0.7928 MB / 0.5939 GB, free: 40.72 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001441/0.8064, allocations: 1.342 MB / 0.5952 GB, free: 39.37 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.554e-05/0.8064, allocations: 313 kB / 0.5955 GB, free: 39.07 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002807/0.8092, allocations: 2.403 MB / 0.5979 GB, free: 36.66 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004155/0.8134, allocations: 6.297 MB / 0.604 GB, free: 28.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008116/0.8215, allocations: 9.296 MB / 0.6131 GB, free: 17.41 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001126/0.8216, allocations: 40 kB / 0.6132 GB, free: 17.37 MB / 446.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01554/0.8372, allocations: 9.734 MB / 0.6227 GB, free: 7.629 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.462e-05/0.8373, allocations: 68.03 kB / 0.6227 GB, free: 7.562 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001114/0.8374, allocations: 136 kB / 0.6229 GB, free: 7.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003938/0.8413, allocations: 1.608 MB / 0.6244 GB, free: 5.816 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004294/0.8456, allocations: 1.482 MB / 0.6259 GB, free: 4.332 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01333/0.8589, allocations: 9.893 MB / 0.6355 GB, free: 10.23 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004882/0.8638, allocations: 367.9 kB / 0.6359 GB, free: 9.871 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008083/0.8646, allocations: 388 kB / 0.6363 GB, free: 9.492 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.003922/0.8685, allocations: 2.458 MB / 0.6387 GB, free: 7.02 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007962/0.8693, allocations: 393.3 kB / 0.639 GB, free: 6.633 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008666/0.878, allocations: 4.181 MB / 0.6431 GB, free: 2.43 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-05/0.878, allocations: 27.88 kB / 0.6431 GB, free: 2.402 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.541e-05/0.8781, allocations: 8 kB / 0.6431 GB, free: 2.395 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.139e-05/0.8781, allocations: 7.969 kB / 0.6432 GB, free: 2.387 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01865/0.8967, allocations: 8.308 MB / 0.6513 GB, free: 10.07 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.985e-05/0.8968, allocations: 11.94 kB / 0.6513 GB, free: 10.06 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001531/0.8983, allocations: 307.6 kB / 0.6516 GB, free: 9.758 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004215/0.9025, allocations: 1.353 MB / 0.6529 GB, free: 8.398 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002068/0.9027, allocations: 35.98 kB / 0.6529 GB, free: 8.363 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0132/0.9159, allocations: 9.044 MB / 0.6618 GB, free: 15.12 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.9159, allocations: 0 / 0.6618 GB, free: 15.12 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01228/0.9282, allocations: 6.931 MB / 0.6685 GB, free: 8.164 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001162/0.9293, allocations: 349.3 kB / 0.6689 GB, free: 7.82 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004349/0.9298, allocations: 35.98 kB / 0.6689 GB, free: 7.785 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001496/0.9313, allocations: 111.8 kB / 0.669 GB, free: 7.676 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003995/0.9317, allocations: 129 kB / 0.6691 GB, free: 7.551 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001492/0.9318, allocations: 59.42 kB / 0.6692 GB, free: 7.496 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004/0.9358, allocations: 2.608 MB / 0.6717 GB, free: 4.879 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.9358, allocations: 0 / 0.6717 GB, free: 4.879 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004817/0.9406, allocations: 1.168 MB / 0.6729 GB, free: 3.711 MB / 494.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.0004156/0.9411, allocations: 175.9 kB / 0.673 GB, free: 3.535 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009433/0.9505, allocations: 5.739 MB / 0.6786 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.9505, allocations: 0 / 0.6786 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003295/0.9538, allocations: 1.874 MB / 0.6805 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002553/0.9563, allocations: 490.2 kB / 0.6809 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02127/0.9776, allocations: 11.26 MB / 0.6919 GB, free: 108 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004859/0.9825, allocations: 3.301 MB / 0.6952 GB, free: 12.76 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004821/0.9873, allocations: 1.932 MB / 0.697 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008156/0.9881, allocations: 247.4 kB / 0.6973 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of SimCode: time 1.663e-06/0.9881, allocations: 0 / 0.6973 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of Templates: time 0.3153/1.303, allocations: 43.41 MB / 0.7397 GB, free: 192.1 MB / 0.545 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_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.064192885532975]