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.001225/0.001225, allocations: 111 kB / 18.45 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001339/0.001339, allocations: 211.9 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2215/0.2215, allocations: 46.1 MB / 345 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 72.2 kB / 482 MB, free: 4.027 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3344/0.3358, allocations: 62.44 MB / 0.5317 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBearingConversion): time 0.01363/0.3495, allocations: 12.15 MB / 0.5436 GB, free: 3.961 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009931/0.3594, allocations: 4.252 MB / 0.5477 GB, free: 412 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003188/0.3627, allocations: 59.88 kB / 0.5478 GB, free: 396 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001326/0.364, allocations: 0.4964 MB / 0.5483 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004359/0.3684, allocations: 1.184 MB / 0.5494 GB, free: 14.98 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003095/0.3715, allocations: 1.342 MB / 0.5507 GB, free: 13.82 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006007/0.3775, allocations: 4.755 MB / 0.5554 GB, free: 9.383 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001721/0.3793, allocations: 1.06 MB / 0.5564 GB, free: 8.262 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004095/0.3834, allocations: 1.924 MB / 0.5583 GB, free: 6.332 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003781/0.3872, allocations: 2.188 MB / 0.5604 GB, free: 4.137 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001367/0.3886, allocations: 403.9 kB / 0.5608 GB, free: 3.742 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002043/0.3906, allocations: 0.5428 MB / 0.5613 GB, free: 3.199 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001581/0.3922, allocations: 0.9893 MB / 0.5623 GB, free: 2.207 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003965/0.3962, allocations: 1.851 MB / 0.5641 GB, free: 356 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006102/0.4023, allocations: 4.639 MB / 0.5686 GB, free: 11.7 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.4023, allocations: 3.938 kB / 0.5686 GB, free: 11.7 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.787e-06/0.4023, allocations: 8 kB / 0.5686 GB, free: 11.69 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.569e-05/0.4024, allocations: 0 / 0.5686 GB, free: 11.69 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.009012/0.4115, allocations: 3.825 MB / 0.5724 GB, free: 7.797 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.789e-05/0.4115, allocations: 11.97 kB / 0.5724 GB, free: 7.785 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00213/0.4137, allocations: 0.4887 MB / 0.5729 GB, free: 7.293 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002678/0.4164, allocations: 1.612 MB / 0.5744 GB, free: 5.625 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000561/0.4169, allocations: 0.5455 MB / 0.575 GB, free: 5.016 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004931/0.4174, allocations: 315.6 kB / 0.5753 GB, free: 4.707 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006532/0.424, allocations: 3.447 MB / 0.5786 GB, free: 1.152 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001138/0.4241, allocations: 31.7 kB / 0.5787 GB, free: 1.121 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002936/0.4244, allocations: 116 kB / 0.5788 GB, free: 1.008 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.351e-05/0.4245, allocations: 72 kB / 0.5789 GB, free: 0.9375 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007413/0.4319, allocations: 3.489 MB / 0.5823 GB, free: 13.44 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01892/0.4508, allocations: 10.13 MB / 0.5922 GB, free: 3.062 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006443/0.4573, allocations: 3.31 MB / 0.5954 GB, free: 15.54 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00367/0.461, allocations: 1.711 MB / 0.5971 GB, free: 13.78 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004154/0.4614, allocations: 228.2 kB / 0.5973 GB, free: 13.52 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001112/0.4616, allocations: 100.9 kB / 0.5974 GB, free: 13.42 MB / 462.1 MB Notification: Performance of pre-optimization done (n=364): time 7.845e-06/0.4616, allocations: 336 / 0.5974 GB, free: 13.42 MB / 462.1 MB Notification: Performance of matching and sorting (n=427): time 0.0461/0.5077, allocations: 20.95 MB / 0.6178 GB, free: 7.238 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003055/0.5081, allocations: 0.6044 MB / 0.6184 GB, free: 6.496 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002881/0.511, allocations: 1.758 MB / 0.6201 GB, free: 4.738 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007151/0.5117, allocations: 125.7 kB / 0.6203 GB, free: 4.609 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007464/0.5124, allocations: 0.9505 MB / 0.6212 GB, free: 3.645 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001271/0.5137, allocations: 1.433 MB / 0.6226 GB, free: 2.191 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001119/0.5148, allocations: 0.7211 MB / 0.6233 GB, free: 1.457 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.696e-05/0.5149, allocations: 305.1 kB / 0.6236 GB, free: 1.156 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003165/0.5181, allocations: 1.453 MB / 0.625 GB, free: 15.7 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003714/0.5218, allocations: 2.214 MB / 0.6272 GB, free: 13.19 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00622/0.5281, allocations: 3.354 MB / 0.6304 GB, free: 9.59 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.699e-05/0.5281, allocations: 4 kB / 0.6304 GB, free: 9.586 MB / 494.1 MB Notification: Performance of matching and sorting (n=542) (initialization): time 0.01061/0.5387, allocations: 4.872 MB / 0.6352 GB, free: 4.676 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.614e-05/0.5388, allocations: 12 kB / 0.6352 GB, free: 4.664 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.166e-05/0.5388, allocations: 20 kB / 0.6352 GB, free: 4.645 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004716/0.5436, allocations: 1.949 MB / 0.6371 GB, free: 2.664 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003227/0.5468, allocations: 0.7917 MB / 0.6379 GB, free: 1.871 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02154/0.5684, allocations: 17.62 MB / 0.6551 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004381/0.5728, allocations: 307.6 kB / 0.6554 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001058/0.5739, allocations: 179.9 kB / 0.6556 GB, free: 14.85 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.003402/0.5773, allocations: 0.6142 MB / 0.6562 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001925/0.5792, allocations: 292.5 kB / 0.6565 GB, free: 13.94 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001571/0.5808, allocations: 0.5335 MB / 0.657 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001026/0.581, allocations: 27.86 kB / 0.657 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.415e-05/0.581, allocations: 4 kB / 0.657 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002546/0.5835, allocations: 0.7276 MB / 0.6577 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001321/0.5849, allocations: 112 kB / 0.6578 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004295/0.5892, allocations: 323.6 kB / 0.6581 GB, free: 12.18 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001471/0.5907, allocations: 476.7 kB / 0.6586 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01705/0.6077, allocations: 6.395 MB / 0.6648 GB, free: 5.27 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01411/0.6219, allocations: 7.067 MB / 0.6717 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004832/0.6267, allocations: 1.993 MB / 0.6737 GB, free: 12.14 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002389/0.6292, allocations: 1.174 MB / 0.6748 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of Backend: time 5.31e-07/0.6292, allocations: 4 kB / 0.6748 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01307/0.6423, allocations: 4.275 MB / 0.679 GB, free: 6.809 MB / 0.5294 GB Notification: Performance of SimCode: time 0.01519/0.6575, allocations: 8.267 MB / 0.6871 GB, free: 14.49 MB / 0.545 GB Notification: Performance of Templates: time 0.3932/1.051, allocations: 61.48 MB / 0.7471 GB, free: 149.1 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