Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001213/0.001213, allocations: 114.4 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00125/0.00125, allocations: 202 kB / 19.4 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2211/0.2211, allocations: 46.11 MB / 345 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 75.88 kB / 482 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3445/0.346, allocations: 62.44 MB / 0.5317 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.01429/0.3603, allocations: 13.5 MB / 0.5448 GB, free: 3.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01083/0.3712, allocations: 4.542 MB / 0.5493 GB, free: 15.44 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003106/0.3744, allocations: 93.69 kB / 0.5494 GB, free: 15.42 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007876/0.3823, allocations: 4.19 MB / 0.5535 GB, free: 11.37 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006611/0.3889, allocations: 2.128 MB / 0.5555 GB, free: 9.23 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002683/0.3917, allocations: 0.9399 MB / 0.5565 GB, free: 8.289 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009916/0.4016, allocations: 6.112 MB / 0.5624 GB, free: 2.164 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007126/0.4088, allocations: 5.202 MB / 0.5675 GB, free: 12.9 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003861/0.4127, allocations: 2.115 MB / 0.5696 GB, free: 10.78 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004457/0.4172, allocations: 2.804 MB / 0.5723 GB, free: 7.965 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001562/0.4188, allocations: 472 kB / 0.5728 GB, free: 7.504 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003481/0.4223, allocations: 1.342 MB / 0.5741 GB, free: 6.16 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003282/0.4256, allocations: 2.513 MB / 0.5765 GB, free: 3.641 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004904/0.4305, allocations: 2.84 MB / 0.5793 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01181/0.4423, allocations: 9.018 MB / 0.5881 GB, free: 7.738 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.634e-06/0.4424, allocations: 0 / 0.5881 GB, free: 7.738 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.225e-06/0.4424, allocations: 0 / 0.5881 GB, free: 7.738 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003744/0.4428, allocations: 0 / 0.5881 GB, free: 7.738 MB / 446.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.01648/0.4593, allocations: 6.083 MB / 0.594 GB, free: 1.582 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.4593, allocations: 12.03 kB / 0.5941 GB, free: 1.57 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01214/0.4715, allocations: 2.583 MB / 0.5966 GB, free: 14.97 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008981/0.4805, allocations: 3.808 MB / 0.6003 GB, free: 11.11 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000353/0.4809, allocations: 300.1 kB / 0.6006 GB, free: 10.82 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001837/0.4828, allocations: 427.8 kB / 0.601 GB, free: 10.4 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02383/0.5066, allocations: 11.55 MB / 0.6123 GB, free: 14.1 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001922/0.5069, allocations: 51.53 kB / 0.6123 GB, free: 14.05 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005452/0.5074, allocations: 187.9 kB / 0.6125 GB, free: 13.87 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003326/0.5108, allocations: 2.026 MB / 0.6145 GB, free: 11.84 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01892/0.5297, allocations: 9.94 MB / 0.6242 GB, free: 1.879 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06013/0.5899, allocations: 45.34 MB / 0.6685 GB, free: 3.172 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01116/0.6011, allocations: 4.374 MB / 0.6727 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003293/0.6044, allocations: 2.469 MB / 0.6751 GB, free: 12.16 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01552/0.62, allocations: 9.855 MB / 0.6848 GB, free: 2.141 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.476e-05/0.6201, allocations: 51.5 kB / 0.6848 GB, free: 2.082 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=171): time 6.091e-06/0.6201, allocations: 4 kB / 0.6848 GB, free: 2.078 MB / 0.5294 GB Notification: Performance of matching and sorting (n=197): time 0.05822/0.6783, allocations: 19.9 MB / 0.7043 GB, free: 14.05 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/0.6785, allocations: 205.2 kB / 0.7045 GB, free: 13.81 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008711/0.6872, allocations: 4.689 MB / 0.709 GB, free: 9.105 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005342/0.6878, allocations: 53.7 kB / 0.7091 GB, free: 9.047 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002856/0.6907, allocations: 3.56 MB / 0.7126 GB, free: 5.438 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001175/0.6919, allocations: 0.7637 MB / 0.7133 GB, free: 4.664 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00281/0.6947, allocations: 1.329 MB / 0.7146 GB, free: 3.324 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001306/0.6949, allocations: 305.1 kB / 0.7149 GB, free: 3.023 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00384/0.6987, allocations: 2.406 MB / 0.7172 GB, free: 0.6133 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3078/1.007, allocations: 6.253 MB / 0.7234 GB, free: 159.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01032/1.017, allocations: 9.288 MB / 0.7324 GB, free: 151.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000193/1.017, allocations: 38.41 kB / 0.7325 GB, free: 151.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01747/1.035, allocations: 9.782 MB / 0.742 GB, free: 148.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.599e-05/1.035, allocations: 62.62 kB / 0.7421 GB, free: 148.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001567/1.035, allocations: 133.9 kB / 0.7422 GB, free: 148.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004284/1.039, allocations: 1.618 MB / 0.7438 GB, free: 148.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004506/1.044, allocations: 1.48 MB / 0.7452 GB, free: 147.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01049/1.054, allocations: 10.26 MB / 0.7552 GB, free: 138.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004878/1.059, allocations: 360.3 kB / 0.7556 GB, free: 138.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009727/1.06, allocations: 395.8 kB / 0.756 GB, free: 138 MB / 0.5606 GB 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.00409/1.064, allocations: 2.45 MB / 0.7584 GB, free: 135.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008596/1.065, allocations: 401.8 kB / 0.7587 GB, free: 135.4 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007189/1.072, allocations: 4.231 MB / 0.7629 GB, free: 131.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-05/1.072, allocations: 24 kB / 0.7629 GB, free: 131.2 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.582e-05/1.073, allocations: 11.98 kB / 0.7629 GB, free: 131.1 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.658e-05/1.073, allocations: 7.969 kB / 0.7629 GB, free: 131.1 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01549/1.088, allocations: 9.671 MB / 0.7724 GB, free: 121.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.949e-05/1.088, allocations: 4 kB / 0.7724 GB, free: 121.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00145/1.09, allocations: 295.6 kB / 0.7726 GB, free: 121.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003699/1.093, allocations: 1.365 MB / 0.774 GB, free: 119.8 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003127/1.094, allocations: 35.98 kB / 0.774 GB, free: 119.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009364/1.103, allocations: 9.387 MB / 0.7832 GB, free: 110.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/1.103, allocations: 4.062 kB / 0.7832 GB, free: 110.2 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009324/1.112, allocations: 6.964 MB / 0.79 GB, free: 103.3 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001062/1.113, allocations: 455.7 kB / 0.7904 GB, free: 102.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006281/1.114, allocations: 35.83 kB / 0.7905 GB, free: 102.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001609/1.116, allocations: 119.7 kB / 0.7906 GB, free: 102.7 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003529/1.116, allocations: 121.1 kB / 0.7907 GB, free: 102.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001249/1.116, allocations: 55.98 kB / 0.7907 GB, free: 102.6 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003645/1.12, allocations: 2.956 MB / 0.7936 GB, free: 99.6 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.112e-06/1.12, allocations: 0 / 0.7936 GB, free: 99.6 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005418/1.125, allocations: 1.185 MB / 0.7948 GB, free: 98.42 MB / 0.5606 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.0004481/1.126, allocations: 165.4 kB / 0.7949 GB, free: 98.25 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00851/1.134, allocations: 5.983 MB / 0.8008 GB, free: 92.27 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/1.134, allocations: 0 / 0.8008 GB, free: 92.27 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002841/1.137, allocations: 2.003 MB / 0.8027 GB, free: 90.24 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003245/1.14, allocations: 0.5335 MB / 0.8033 GB, free: 89.72 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0177/1.158, allocations: 11.53 MB / 0.8145 GB, free: 78.16 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00357/1.162, allocations: 3.796 MB / 0.8182 GB, free: 74.33 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001099/1.163, allocations: 311.4 kB / 0.8185 GB, free: 74.02 MB / 0.5606 GB Notification: Performance of SimCode: time 7.81e-07/1.163, allocations: 4 kB / 0.8185 GB, free: 74.02 MB / 0.5606 GB Notification: Performance of Templates: time 0.1271/1.29, allocations: 112.5 MB / 0.9283 GB, free: 9.59 MB / 0.6075 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches