Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.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.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction") translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001417/0.001417, allocations: 114.3 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001617/0.001617, allocations: 206.8 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, 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.2163/0.2163, allocations: 46.1 MB / 345 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 79.88 kB / 482 MB, free: 4.102 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3649/0.3665, allocations: 62.43 MB / 0.5316 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005736/0.3723, allocations: 4.107 MB / 0.5357 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003359/0.3757, allocations: 1.48 MB / 0.5371 GB, free: 9.156 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003384/0.376, allocations: 17.19 kB / 0.5371 GB, free: 9.148 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000512/0.3765, allocations: 139.5 kB / 0.5373 GB, free: 9.031 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006719/0.3772, allocations: 286.4 kB / 0.5375 GB, free: 8.805 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006545/0.3779, allocations: 343.6 kB / 0.5379 GB, free: 8.508 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001268/0.3792, allocations: 1.102 MB / 0.5389 GB, free: 7.848 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003726/0.3796, allocations: 188 kB / 0.5391 GB, free: 7.738 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007235/0.3803, allocations: 483.4 kB / 0.5396 GB, free: 7.461 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006175/0.3809, allocations: 0.5066 MB / 0.5401 GB, free: 7.121 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001419/0.3811, allocations: 83.03 kB / 0.5401 GB, free: 7.121 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002956/0.3814, allocations: 138.4 kB / 0.5403 GB, free: 7.102 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002603/0.3817, allocations: 241.4 kB / 0.5405 GB, free: 6.902 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004143/0.3821, allocations: 426.9 kB / 0.5409 GB, free: 6.598 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001119/0.3832, allocations: 1.026 MB / 0.5419 GB, free: 5.84 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.3832, allocations: 1.344 kB / 0.5419 GB, free: 5.84 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3832, allocations: 0 / 0.5419 GB, free: 5.84 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.205e-05/0.3833, allocations: 0 / 0.5419 GB, free: 5.84 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002467/0.3857, allocations: 1.152 MB / 0.543 GB, free: 4.941 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.3858, allocations: 8.312 kB / 0.5431 GB, free: 4.941 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005336/0.3863, allocations: 123.6 kB / 0.5432 GB, free: 4.883 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007974/0.3871, allocations: 484.5 kB / 0.5436 GB, free: 4.453 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.637e-05/0.3872, allocations: 53.88 kB / 0.5437 GB, free: 4.426 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001408/0.3874, allocations: 68.5 kB / 0.5437 GB, free: 4.398 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001563/0.3889, allocations: 0.8147 MB / 0.5445 GB, free: 3.859 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.319e-05/0.389, allocations: 7.484 kB / 0.5446 GB, free: 3.855 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.036e-05/0.3891, allocations: 33.53 kB / 0.5446 GB, free: 3.828 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.752e-05/0.3891, allocations: 14.97 kB / 0.5446 GB, free: 3.828 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001679/0.3908, allocations: 0.735 MB / 0.5453 GB, free: 3.477 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004264/0.395, allocations: 2.57 MB / 0.5478 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001406/0.3965, allocations: 0.6826 MB / 0.5485 GB, free: 216 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007312/0.3972, allocations: 379.3 kB / 0.5489 GB, free: 15.82 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.985e-05/0.3973, allocations: 8 kB / 0.5489 GB, free: 15.82 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.732e-05/0.3973, allocations: 46.5 kB / 0.5489 GB, free: 15.76 MB / 414.1 MB Notification: Performance of pre-optimization done (n=79): time 2.475e-06/0.3973, allocations: 0 / 0.5489 GB, free: 15.76 MB / 414.1 MB Notification: Performance of matching and sorting (n=83): time 0.007859/0.4052, allocations: 3.537 MB / 0.5524 GB, free: 11.97 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.158e-05/0.4053, allocations: 136.5 kB / 0.5525 GB, free: 11.8 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005301/0.4058, allocations: 477.8 kB / 0.5529 GB, free: 11.33 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.333e-05/0.4059, allocations: 57.69 kB / 0.553 GB, free: 11.27 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001915/0.4061, allocations: 284.6 kB / 0.5533 GB, free: 10.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002471/0.4064, allocations: 288 kB / 0.5535 GB, free: 10.7 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002694/0.4066, allocations: 166.5 kB / 0.5537 GB, free: 10.53 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.4068, allocations: 374.8 kB / 0.5541 GB, free: 10.15 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007556/0.4076, allocations: 361.8 kB / 0.5544 GB, free: 9.797 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008645/0.4085, allocations: 0.5176 MB / 0.5549 GB, free: 9.223 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001306/0.4098, allocations: 0.6953 MB / 0.5556 GB, free: 8.473 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.4098, allocations: 0 / 0.5556 GB, free: 8.473 MB / 414.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002574/0.4124, allocations: 1.208 MB / 0.5568 GB, free: 7.246 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.444e-05/0.4124, allocations: 8 kB / 0.5568 GB, free: 7.238 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.426e-05/0.4124, allocations: 4 kB / 0.5568 GB, free: 7.234 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001242/0.4137, allocations: 0.585 MB / 0.5574 GB, free: 6.637 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005391/0.4142, allocations: 151.7 kB / 0.5575 GB, free: 6.488 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003759/0.418, allocations: 3.842 MB / 0.5613 GB, free: 2.426 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001045/0.419, allocations: 151.8 kB / 0.5614 GB, free: 2.277 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.291e-05/0.4191, allocations: 35.98 kB / 0.5614 GB, free: 2.242 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,bearingFriction.free,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,8), (1,10), (1,6), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.000413/0.4196, allocations: 220.3 kB / 0.5616 GB, free: 2.016 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002681/0.4198, allocations: 75.14 kB / 0.5617 GB, free: 1.941 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002221/0.4201, allocations: 88.84 kB / 0.5618 GB, free: 1.855 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.387e-06/0.4201, allocations: 3.984 kB / 0.5618 GB, free: 1.852 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.4201, allocations: 7.922 kB / 0.5618 GB, free: 1.844 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003788/0.4205, allocations: 224.1 kB / 0.562 GB, free: 1.605 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001731/0.4206, allocations: 28 kB / 0.562 GB, free: 1.578 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001004/0.4217, allocations: 123.8 kB / 0.5622 GB, free: 1.457 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003842/0.4221, allocations: 155.8 kB / 0.5623 GB, free: 1.305 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003778/0.4258, allocations: 1.383 MB / 0.5637 GB, free: 15.9 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002769/0.4286, allocations: 1.546 MB / 0.5652 GB, free: 14.33 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008729/0.4295, allocations: 380.8 kB / 0.5655 GB, free: 13.96 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004038/0.4299, allocations: 326.9 kB / 0.5658 GB, free: 13.64 MB / 430.1 MB Notification: Performance of Backend: time 5.81e-07/0.4299, allocations: 0 / 0.5658 GB, free: 13.64 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003705/0.4336, allocations: 1.27 MB / 0.5671 GB, free: 12.55 MB / 430.1 MB Notification: Performance of SimCode: time 0.003567/0.4372, allocations: 2.369 MB / 0.5694 GB, free: 10.14 MB / 430.1 MB Notification: Performance of Templates: time 0.02824/0.4655, allocations: 15.66 MB / 0.5847 GB, free: 10.53 MB / 446.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches