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.001257/0.001257, allocations: 110.5 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.00129/0.00129, allocations: 208 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, 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.1998/0.1998, allocations: 46.1 MB / 345 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001587/0.001586, allocations: 79.88 kB / 482 MB, free: 4.094 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3078/0.3094, allocations: 62.43 MB / 0.5316 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005434/0.3149, allocations: 4.115 MB / 0.5357 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002897/0.3178, allocations: 1.48 MB / 0.5371 GB, free: 9.141 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005438/0.3184, allocations: 17.56 kB / 0.5371 GB, free: 9.133 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004557/0.3189, allocations: 131.4 kB / 0.5372 GB, free: 9.023 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006963/0.3196, allocations: 281.1 kB / 0.5375 GB, free: 8.801 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007267/0.3203, allocations: 347.9 kB / 0.5378 GB, free: 8.5 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001065/0.3214, allocations: 1.096 MB / 0.5389 GB, free: 7.844 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002946/0.3217, allocations: 192.5 kB / 0.5391 GB, free: 7.73 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006006/0.3223, allocations: 483.1 kB / 0.5396 GB, free: 7.453 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005983/0.3229, allocations: 0.5103 MB / 0.5401 GB, free: 7.109 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001443/0.3231, allocations: 82.41 kB / 0.5401 GB, free: 7.109 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002939/0.3234, allocations: 138.2 kB / 0.5403 GB, free: 7.09 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002207/0.3236, allocations: 234.3 kB / 0.5405 GB, free: 6.898 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003504/0.324, allocations: 431.5 kB / 0.5409 GB, free: 6.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000984/0.325, allocations: 1.023 MB / 0.5419 GB, free: 5.836 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.325, allocations: 4 kB / 0.5419 GB, free: 5.832 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.325, allocations: 0 / 0.5419 GB, free: 5.832 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.443e-05/0.325, allocations: 0 / 0.5419 GB, free: 5.832 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.00211/0.3271, allocations: 1.151 MB / 0.543 GB, free: 4.934 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.3272, allocations: 9.281 kB / 0.543 GB, free: 4.934 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005141/0.3277, allocations: 124 kB / 0.5432 GB, free: 4.875 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006847/0.3284, allocations: 484.8 kB / 0.5436 GB, free: 4.445 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.269e-05/0.3284, allocations: 48.5 kB / 0.5437 GB, free: 4.422 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001278/0.3286, allocations: 73.91 kB / 0.5437 GB, free: 4.391 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001423/0.33, allocations: 0.8182 MB / 0.5445 GB, free: 3.848 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.961e-05/0.33, allocations: 7.219 kB / 0.5445 GB, free: 3.844 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.121e-05/0.3301, allocations: 25.41 kB / 0.5446 GB, free: 3.824 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.702e-05/0.3301, allocations: 19 kB / 0.5446 GB, free: 3.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001566/0.3317, allocations: 0.7388 MB / 0.5453 GB, free: 3.465 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004165/0.3359, allocations: 2.571 MB / 0.5478 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001304/0.3372, allocations: 0.666 MB / 0.5485 GB, free: 192 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006904/0.3379, allocations: 376.7 kB / 0.5488 GB, free: 15.81 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.804e-05/0.338, allocations: 15.91 kB / 0.5488 GB, free: 15.8 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.453e-05/0.338, allocations: 46.5 kB / 0.5489 GB, free: 15.74 MB / 414.1 MB Notification: Performance of pre-optimization done (n=79): time 2.244e-06/0.338, allocations: 0 / 0.5489 GB, free: 15.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=83): time 0.007452/0.3455, allocations: 3.541 MB / 0.5523 GB, free: 11.94 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.928e-05/0.3456, allocations: 136.5 kB / 0.5525 GB, free: 11.78 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005292/0.3461, allocations: 477.8 kB / 0.5529 GB, free: 11.3 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.572e-05/0.3462, allocations: 53.69 kB / 0.553 GB, free: 11.24 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002057/0.3464, allocations: 284.6 kB / 0.5533 GB, free: 10.96 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002295/0.3466, allocations: 288.1 kB / 0.5535 GB, free: 10.67 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002654/0.3469, allocations: 170.5 kB / 0.5537 GB, free: 10.5 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.3471, allocations: 374.8 kB / 0.5541 GB, free: 10.12 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007559/0.3478, allocations: 357.8 kB / 0.5544 GB, free: 9.773 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008291/0.3487, allocations: 0.5176 MB / 0.5549 GB, free: 9.199 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001235/0.3499, allocations: 0.6992 MB / 0.5556 GB, free: 8.445 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.3499, allocations: 0 / 0.5556 GB, free: 8.445 MB / 414.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002569/0.3525, allocations: 1.208 MB / 0.5568 GB, free: 7.219 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.3525, allocations: 18.47 kB / 0.5568 GB, free: 7.203 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.3526, allocations: 4 kB / 0.5568 GB, free: 7.199 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001206/0.3538, allocations: 0.5811 MB / 0.5573 GB, free: 6.605 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005257/0.3543, allocations: 147.7 kB / 0.5575 GB, free: 6.461 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003548/0.3579, allocations: 3.854 MB / 0.5613 GB, free: 2.387 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009518/0.3588, allocations: 147.8 kB / 0.5614 GB, free: 2.242 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/0.359, allocations: 35.98 kB / 0.5614 GB, free: 2.207 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.0004093/0.3594, allocations: 216.3 kB / 0.5616 GB, free: 1.984 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002334/0.3596, allocations: 75.16 kB / 0.5617 GB, free: 1.91 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002015/0.3598, allocations: 92.83 kB / 0.5618 GB, free: 1.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.3598, allocations: 3.984 kB / 0.5618 GB, free: 1.816 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.3599, allocations: 3.938 kB / 0.5618 GB, free: 1.812 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003309/0.3602, allocations: 220.1 kB / 0.562 GB, free: 1.578 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001627/0.3604, allocations: 40.03 kB / 0.5621 GB, free: 1.539 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008862/0.3613, allocations: 123.8 kB / 0.5622 GB, free: 1.418 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003462/0.3616, allocations: 151.8 kB / 0.5623 GB, free: 1.27 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003431/0.365, allocations: 1.379 MB / 0.5637 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002479/0.3675, allocations: 1.553 MB / 0.5652 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008027/0.3684, allocations: 380.2 kB / 0.5655 GB, free: 13.93 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003772/0.3687, allocations: 326.9 kB / 0.5659 GB, free: 13.61 MB / 430.1 MB Notification: Performance of Backend: time 5.01e-07/0.3688, allocations: 0 / 0.5659 GB, free: 13.61 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003427/0.3722, allocations: 1.253 MB / 0.5671 GB, free: 12.53 MB / 430.1 MB Notification: Performance of SimCode: time 0.003033/0.3752, allocations: 2.374 MB / 0.5694 GB, free: 10.11 MB / 430.1 MB Notification: Performance of Templates: time 0.02597/0.4012, allocations: 16.31 MB / 0.5853 GB, free: 9.852 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