Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_ModelicaTest.Rotational.TestBearingConversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002134/0.002134, allocations: 111.4 kB / 17.09 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001883/0.001883, allocations: 194.2 kB / 18.02 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.428/1.428, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2215/0.2215, allocations: 43.53 MB / 314.8 MB, free: 464 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001714/0.001715, allocations: 75.88 kB / 442.5 MB, free: 5.621 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.134, allocations: 57.77 MB / 0.4886 GB, free: 11.78 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBearingConversion): time 0.01305/0.147, allocations: 11.95 MB / 0.5002 GB, free: 15.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008993/0.1561, allocations: 3.981 MB / 0.5041 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002918/0.159, allocations: 55.75 kB / 0.5042 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001994/0.161, allocations: 487.2 kB / 0.5047 GB, free: 11.24 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004745/0.1658, allocations: 1.035 MB / 0.5057 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004281/0.1701, allocations: 1.346 MB / 0.507 GB, free: 8.855 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008344/0.1785, allocations: 4.438 MB / 0.5113 GB, free: 4.402 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002499/0.181, allocations: 1.04 MB / 0.5123 GB, free: 3.301 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004013/0.1851, allocations: 1.807 MB / 0.5141 GB, free: 1.488 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00541/0.1905, allocations: 2.051 MB / 0.5161 GB, free: 15.43 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002264/0.1928, allocations: 372 kB / 0.5164 GB, free: 15.07 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002304/0.1951, allocations: 0.5037 MB / 0.5169 GB, free: 14.56 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001942/0.1971, allocations: 0.9347 MB / 0.5179 GB, free: 13.62 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004147/0.2012, allocations: 1.754 MB / 0.5196 GB, free: 11.86 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008704/0.2099, allocations: 4.401 MB / 0.5239 GB, free: 7.445 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.543e-06/0.21, allocations: 0 / 0.5239 GB, free: 7.445 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.21, allocations: 0 / 0.5239 GB, free: 7.445 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002049/0.2102, allocations: 0 / 0.5239 GB, free: 7.445 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 719 * Number of variables: 719 Notification: Performance of Generate backend data structure: time 0.01201/0.2222, allocations: 3.77 MB / 0.5275 GB, free: 3.609 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.864e-05/0.2223, allocations: 11.89 kB / 0.5276 GB, free: 3.598 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002187/0.2245, allocations: 426.6 kB / 0.528 GB, free: 3.18 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003324/0.2278, allocations: 1.558 MB / 0.5295 GB, free: 1.566 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006338/0.2285, allocations: 0.5299 MB / 0.53 GB, free: 0.9727 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006674/0.2292, allocations: 315.8 kB / 0.5303 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2841/0.5133, allocations: 3.405 MB / 0.5336 GB, free: 37.05 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001821/0.5135, allocations: 47.95 kB / 0.5337 GB, free: 37.05 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003081/0.5139, allocations: 115.8 kB / 0.5338 GB, free: 37.05 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001085/0.514, allocations: 69.41 kB / 0.5339 GB, free: 37.05 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008277/0.5223, allocations: 3.512 MB / 0.5373 GB, free: 36.62 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0184/0.5407, allocations: 9.955 MB / 0.547 GB, free: 31.57 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00568/0.5464, allocations: 3.315 MB / 0.5502 GB, free: 29.97 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003212/0.5496, allocations: 1.735 MB / 0.5519 GB, free: 29.12 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003048/0.5499, allocations: 217.1 kB / 0.5521 GB, free: 28.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.665e-05/0.55, allocations: 93.2 kB / 0.5522 GB, free: 28.83 MB / 414.1 MB Notification: Performance of pre-optimization done (n=358): time 5.671e-06/0.55, allocations: 1.281 kB / 0.5522 GB, free: 28.83 MB / 414.1 MB Notification: Performance of matching and sorting (n=421): time 0.03192/0.5819, allocations: 21.34 MB / 0.5731 GB, free: 12.71 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001365/0.5821, allocations: 0.6028 MB / 0.5737 GB, free: 11.98 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001826/0.5839, allocations: 1.66 MB / 0.5753 GB, free: 10.32 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003226/0.5843, allocations: 121.7 kB / 0.5754 GB, free: 10.2 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000549/0.5848, allocations: 0.9438 MB / 0.5763 GB, free: 9.34 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009242/0.5858, allocations: 1.489 MB / 0.5778 GB, free: 7.902 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009448/0.5867, allocations: 0.7096 MB / 0.5785 GB, free: 7.18 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.827e-05/0.5868, allocations: 305.1 kB / 0.5788 GB, free: 6.879 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002554/0.5893, allocations: 1.488 MB / 0.5802 GB, free: 5.383 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00286/0.5922, allocations: 2.249 MB / 0.5824 GB, free: 2.852 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00533/0.5975, allocations: 3.43 MB / 0.5858 GB, free: 15.18 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.311e-05/0.5976, allocations: 4 kB / 0.5858 GB, free: 15.17 MB / 430.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.009907/0.6075, allocations: 4.988 MB / 0.5906 GB, free: 10.16 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.04e-05/0.6075, allocations: 12.47 kB / 0.5906 GB, free: 10.15 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.363e-05/0.6076, allocations: 20 kB / 0.5907 GB, free: 10.13 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004409/0.612, allocations: 1.998 MB / 0.5926 GB, free: 8.113 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002982/0.615, allocations: 0.7839 MB / 0.5934 GB, free: 7.328 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02001/0.635, allocations: 17.65 MB / 0.6106 GB, free: 4.758 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003594/0.6386, allocations: 303.7 kB / 0.6109 GB, free: 4.461 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003699/0.639, allocations: 176 kB / 0.6111 GB, free: 4.289 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 60 (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,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,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 (403): * Single equations (assignments): 393 * 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 {(2,22), (2,22), (2,25), (1,6), (1,6), (1,12), (2,24), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.001631/0.6407, allocations: 0.6101 MB / 0.6117 GB, free: 3.668 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008553/0.6415, allocations: 306.1 kB / 0.612 GB, free: 3.367 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001021/0.6426, allocations: 0.5135 MB / 0.6125 GB, free: 2.84 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-05/0.6426, allocations: 23.92 kB / 0.6125 GB, free: 2.816 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.939e-06/0.6426, allocations: 4.094 kB / 0.6125 GB, free: 2.812 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001214/0.6439, allocations: 0.7096 MB / 0.6132 GB, free: 2.082 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004614/0.6443, allocations: 104 kB / 0.6133 GB, free: 1.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002863/0.6472, allocations: 327.6 kB / 0.6136 GB, free: 1.66 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009919/0.6482, allocations: 456.7 kB / 0.614 GB, free: 1.215 MB / 446.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01407/0.6623, allocations: 6.435 MB / 0.6203 GB, free: 10.82 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01288/0.6752, allocations: 7.165 MB / 0.6273 GB, free: 3.59 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.005351/0.6806, allocations: 2.008 MB / 0.6293 GB, free: 1.586 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002328/0.6829, allocations: 1.121 MB / 0.6304 GB, free: 484 kB / 462.1 MB Notification: Performance of Backend: time 1.623e-06/0.683, allocations: 0 / 0.6304 GB, free: 484 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01348/0.6965, allocations: 3.871 MB / 0.6342 GB, free: 12.53 MB / 478.1 MB Notification: Performance of SimCode: time 0.01373/0.7103, allocations: 8.146 MB / 0.6421 GB, free: 4.332 MB / 478.1 MB Notification: Performance of Templates: time 0.1354/0.8457, allocations: 60.06 MB / 0.7008 GB, free: 8.23 MB / 0.5294 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestBearingConversion/TestBearingConversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches