Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestBearingConversion.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.Rotational.TestBearingConversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bearingFriction.phi|bearingFriction.w|gear2_1.phi_rel|gear2_1.w_rel|gear2_2.phi_rel|gear2_2.w_rel|inertia1.phi|inertia1.w|inertia11.phi|inertia11.w|inertia2.phi|inertia2.w|inertia20.phi|inertia20.w|inertia21.phi|inertia21.w|inertia3.phi|inertia3.w|inertia5.phi|inertia5.w|inertia7.phi|inertia7.w|inertia9.phi|inertia9.w|position.phi|position.w|position1.phi|position1.w|position2.phi|position2.w|position3.phi|position3.w|position4.phi|position4.w|position5.phi|position5.w|slidingMass.s|slidingMass.v|slidingMass1.s|slidingMass1.v|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward|gear2_1.lossyGear.mode|gear2_2.lossyGear.mode|lossyGear.mode|lossyGear1.mode",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestBearingConversion") translateModel(ModelicaTest.Rotational.TestBearingConversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bearingFriction.phi|bearingFriction.w|gear2_1.phi_rel|gear2_1.w_rel|gear2_2.phi_rel|gear2_2.w_rel|inertia1.phi|inertia1.w|inertia11.phi|inertia11.w|inertia2.phi|inertia2.w|inertia20.phi|inertia20.w|inertia21.phi|inertia21.w|inertia3.phi|inertia3.w|inertia5.phi|inertia5.w|inertia7.phi|inertia7.w|inertia9.phi|inertia9.w|position.phi|position.w|position1.phi|position1.w|position2.phi|position2.w|position3.phi|position3.w|position4.phi|position4.w|position5.phi|position5.w|slidingMass.s|slidingMass.v|slidingMass1.s|slidingMass1.v|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward|gear2_1.lossyGear.mode|gear2_2.lossyGear.mode|lossyGear.mode|lossyGear1.mode",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestBearingConversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001072/0.001072, allocations: 115.7 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.001346/0.001346, allocations: 202.8 kB / 19.41 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2116/0.2116, allocations: 46.1 MB / 345 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001507/0.001507, allocations: 71.89 kB / 482 MB, free: 4.031 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.335/0.3365, allocations: 62.44 MB / 0.5317 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBearingConversion): time 0.01322/0.3497, allocations: 12.14 MB / 0.5436 GB, free: 3.953 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009457/0.3592, allocations: 4.247 MB / 0.5477 GB, free: 408 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002828/0.3621, allocations: 60.59 kB / 0.5478 GB, free: 392 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001877/0.364, allocations: 0.5037 MB / 0.5483 GB, free: 15.94 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004355/0.3684, allocations: 1.148 MB / 0.5494 GB, free: 14.99 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003319/0.3717, allocations: 1.361 MB / 0.5507 GB, free: 13.82 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005791/0.3775, allocations: 4.742 MB / 0.5553 GB, free: 9.434 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001692/0.3792, allocations: 1.056 MB / 0.5564 GB, free: 8.316 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00309/0.3823, allocations: 1.924 MB / 0.5582 GB, free: 6.387 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003362/0.3857, allocations: 2.18 MB / 0.5604 GB, free: 4.199 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001253/0.387, allocations: 407.9 kB / 0.5608 GB, free: 3.801 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00193/0.3889, allocations: 0.5467 MB / 0.5613 GB, free: 3.254 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001549/0.3905, allocations: 0.9893 MB / 0.5623 GB, free: 2.262 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00328/0.3938, allocations: 1.847 MB / 0.5641 GB, free: 416 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00604/0.3998, allocations: 4.643 MB / 0.5686 GB, free: 11.75 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.3998, allocations: 0 / 0.5686 GB, free: 11.75 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3998, allocations: 0 / 0.5686 GB, free: 11.75 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001699/0.4, allocations: 0 / 0.5686 GB, free: 11.75 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: 727 * Number of variables: 727 Notification: Performance of Generate backend data structure: time 0.01019/0.4102, allocations: 3.836 MB / 0.5723 GB, free: 7.852 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/0.4103, allocations: 8.031 kB / 0.5724 GB, free: 7.844 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002604/0.4129, allocations: 496.5 kB / 0.5728 GB, free: 7.355 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003652/0.4166, allocations: 1.627 MB / 0.5744 GB, free: 5.672 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007609/0.4173, allocations: 0.5416 MB / 0.5749 GB, free: 5.066 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009828/0.4183, allocations: 315.6 kB / 0.5752 GB, free: 4.758 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008821/0.4272, allocations: 3.442 MB / 0.5786 GB, free: 1.211 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002183/0.4274, allocations: 35.64 kB / 0.5786 GB, free: 1.176 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005362/0.428, allocations: 120 kB / 0.5788 GB, free: 1.059 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.909e-05/0.428, allocations: 68 kB / 0.5788 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008085/0.4361, allocations: 3.489 MB / 0.5822 GB, free: 13.49 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02024/0.4564, allocations: 10.12 MB / 0.5921 GB, free: 3.125 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006517/0.463, allocations: 3.324 MB / 0.5954 GB, free: 15.6 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003485/0.4665, allocations: 1.712 MB / 0.597 GB, free: 13.84 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003556/0.4668, allocations: 224.3 kB / 0.5972 GB, free: 13.58 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.327e-05/0.4669, allocations: 96.75 kB / 0.5973 GB, free: 13.48 MB / 462.1 MB Notification: Performance of pre-optimization done (n=364): time 6.182e-06/0.4669, allocations: 0 / 0.5973 GB, free: 13.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=427): time 0.04045/0.5074, allocations: 20.96 MB / 0.6178 GB, free: 7.293 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002395/0.5077, allocations: 0.6084 MB / 0.6184 GB, free: 6.547 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002663/0.5103, allocations: 1.758 MB / 0.6201 GB, free: 4.789 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006627/0.511, allocations: 121.7 kB / 0.6202 GB, free: 4.664 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007748/0.5118, allocations: 0.9544 MB / 0.6212 GB, free: 3.695 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001457/0.5133, allocations: 1.433 MB / 0.6226 GB, free: 2.242 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001733/0.515, allocations: 0.7211 MB / 0.6233 GB, free: 1.508 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.855e-05/0.5151, allocations: 305.1 kB / 0.6236 GB, free: 1.207 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003219/0.5184, allocations: 1.453 MB / 0.625 GB, free: 15.75 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003775/0.5221, allocations: 2.21 MB / 0.6271 GB, free: 13.25 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006334/0.5285, allocations: 3.353 MB / 0.6304 GB, free: 9.648 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.363e-05/0.5285, allocations: 4 kB / 0.6304 GB, free: 9.645 MB / 494.1 MB Notification: Performance of matching and sorting (n=542) (initialization): time 0.01068/0.5392, allocations: 4.879 MB / 0.6352 GB, free: 4.727 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.139e-05/0.5393, allocations: 12 kB / 0.6352 GB, free: 4.715 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.501e-05/0.5393, allocations: 20 kB / 0.6352 GB, free: 4.695 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004298/0.5436, allocations: 1.941 MB / 0.6371 GB, free: 2.723 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003197/0.5468, allocations: 0.7955 MB / 0.6379 GB, free: 1.926 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02068/0.5675, allocations: 17.61 MB / 0.6551 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003361/0.5709, allocations: 303.6 kB / 0.6554 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008107/0.5718, allocations: 183.9 kB / 0.6555 GB, free: 14.91 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 60 (brake1.mode,$PRE.brake1.mode,brake1.locked,brake1.startBackward,$PRE.brake1.startBackward,brake1.startForward,$PRE.brake1.startForward,brake1.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,gear2_2.lossyGear.ideal,gear2_2.lossyGear.mode,$PRE.gear2_2.lossyGear.mode,gear2_2.lossyGear.locked,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.startForward,gear2_2.lossyGear.tau_aPos,gear2_1.lossyGear.ideal,gear2_1.lossyGear.mode,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.locked,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.startForward,gear2_1.lossyGear.tau_aPos,lossyGear1.ideal,lossyGear1.mode,$PRE.lossyGear1.mode,lossyGear1.locked,lossyGear1.startBackward,lossyGear1.startForward,lossyGear1.tau_aPos,bearingFriction.free,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,lossyGear.ideal,lossyGear.mode,$PRE.lossyGear.mode,lossyGear.locked,lossyGear.startBackward,lossyGear.startForward,lossyGear.tau_aPos,bearingFriction1.free,bearingFriction1.mode,$PRE.bearingFriction1.mode,bearingFriction1.locked,bearingFriction1.startBackward,$PRE.bearingFriction1.startBackward,bearingFriction1.startForward,$PRE.bearingFriction1.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (401): * Single equations (assignments): 391 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * 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,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 8 systems {(1,8), (1,8), (2,22), (2,22), (2,25), (1,13), (2,24), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.002226/0.574, allocations: 0.6141 MB / 0.6561 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001321/0.5753, allocations: 300.5 kB / 0.6564 GB, free: 13.99 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00123/0.5766, allocations: 0.522 MB / 0.6569 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.278e-05/0.5766, allocations: 27.86 kB / 0.657 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/0.5767, allocations: 4 kB / 0.657 GB, free: 13.42 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001623/0.5783, allocations: 0.7314 MB / 0.6577 GB, free: 12.67 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00082/0.5791, allocations: 112 kB / 0.6578 GB, free: 12.56 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003537/0.5827, allocations: 327.6 kB / 0.6581 GB, free: 12.24 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001229/0.5839, allocations: 472.7 kB / 0.6585 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01521/0.5991, allocations: 6.41 MB / 0.6648 GB, free: 5.32 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01269/0.6119, allocations: 7.056 MB / 0.6717 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004607/0.6165, allocations: 2 MB / 0.6737 GB, free: 12.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002182/0.6187, allocations: 1.174 MB / 0.6748 GB, free: 11.04 MB / 0.5294 GB Notification: Performance of Backend: time 4.21e-07/0.6187, allocations: 0 / 0.6748 GB, free: 11.04 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01199/0.6307, allocations: 4.27 MB / 0.679 GB, free: 6.871 MB / 0.5294 GB Notification: Performance of SimCode: time 0.01322/0.644, allocations: 8.267 MB / 0.687 GB, free: 14.55 MB / 0.545 GB Notification: Performance of Templates: time 0.3147/0.9588, allocations: 63.61 MB / 0.7492 GB, free: 146.6 MB / 0.5606 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBearingConversion.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBearingConversion.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestBearingConversion.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestBearingConversion.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestBearingConversion.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.TestBearingConversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestBearingConversion.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestBearingConversion_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBearingConversion/TestBearingConversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.TestBearingConversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches