Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.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_4.0.0_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_4.0.0_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 110.6 kB / 18.45 MB, free: 4.484 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.001147/0.001147, allocations: 187.1 kB / 19.39 MB, free: 3.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.345/1.345, allocations: 222.9 MB / 243.1 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2121/0.2122, allocations: 44.18 MB / 337.4 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 59.91 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3629/0.3644, allocations: 60.83 MB / 0.5196 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.004388/0.3688, allocations: 3.92 MB / 0.5234 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002145/0.371, allocations: 1.229 MB / 0.5246 GB, free: 15.96 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002504/0.3712, allocations: 13.16 kB / 0.5246 GB, free: 15.96 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003265/0.3716, allocations: 114.5 kB / 0.5247 GB, free: 15.89 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004709/0.3721, allocations: 211.1 kB / 0.5249 GB, free: 15.75 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007804/0.3728, allocations: 347.2 kB / 0.5252 GB, free: 15.57 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001103/0.374, allocations: 1.028 MB / 0.5262 GB, free: 15.08 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00029/0.3743, allocations: 180.5 kB / 0.5264 GB, free: 14.99 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006123/0.3749, allocations: 453.4 kB / 0.5269 GB, free: 14.8 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006737/0.3756, allocations: 498.7 kB / 0.5273 GB, free: 14.54 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001311/0.3757, allocations: 76.91 kB / 0.5274 GB, free: 14.54 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002531/0.376, allocations: 123.3 kB / 0.5275 GB, free: 14.51 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002365/0.3762, allocations: 199.7 kB / 0.5277 GB, free: 14.35 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003671/0.3766, allocations: 404.9 kB / 0.5281 GB, free: 14.06 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009468/0.3775, allocations: 0.9393 MB / 0.529 GB, free: 13.37 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.3776, allocations: 3.938 kB / 0.529 GB, free: 13.37 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3776, allocations: 0 / 0.529 GB, free: 13.37 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.032e-05/0.3776, allocations: 1.375 kB / 0.529 GB, free: 13.37 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002267/0.3799, allocations: 1.101 MB / 0.5301 GB, free: 12.5 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.3799, allocations: 8.469 kB / 0.5301 GB, free: 12.5 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001692/0.3801, allocations: 84.17 kB / 0.5302 GB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006152/0.3807, allocations: 439.5 kB / 0.5306 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.258e-05/0.3808, allocations: 51.44 kB / 0.5306 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001419/0.3809, allocations: 71.83 kB / 0.5307 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001491/0.3824, allocations: 0.8243 MB / 0.5315 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.452e-05/0.3825, allocations: 19.09 kB / 0.5315 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.796e-05/0.3825, allocations: 21.16 kB / 0.5316 GB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.912e-05/0.3826, allocations: 15.5 kB / 0.5316 GB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001659/0.3842, allocations: 0.7639 MB / 0.5323 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004244/0.3885, allocations: 2.552 MB / 0.5348 GB, free: 9.008 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001326/0.3898, allocations: 0.6353 MB / 0.5354 GB, free: 8.645 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007248/0.3906, allocations: 379 kB / 0.5358 GB, free: 8.445 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.893e-05/0.3906, allocations: 11.12 kB / 0.5358 GB, free: 8.441 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.719e-05/0.3907, allocations: 38.38 kB / 0.5358 GB, free: 8.398 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 2.264e-06/0.3907, allocations: 1.281 kB / 0.5358 GB, free: 8.398 MB / 398.1 MB Notification: Performance of matching and sorting (n=76): time 0.008139/0.3988, allocations: 3.567 MB / 0.5393 GB, free: 5.852 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.897e-05/0.3989, allocations: 140.9 kB / 0.5395 GB, free: 5.691 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005501/0.3995, allocations: 425.4 kB / 0.5399 GB, free: 5.438 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.677e-05/0.3996, allocations: 49.42 kB / 0.5399 GB, free: 5.391 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001914/0.3998, allocations: 290.8 kB / 0.5402 GB, free: 5.129 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002202/0.4, allocations: 281.6 kB / 0.5405 GB, free: 4.883 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002878/0.4003, allocations: 172.6 kB / 0.5406 GB, free: 4.777 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.4005, allocations: 364.2 kB / 0.541 GB, free: 4.426 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008197/0.4013, allocations: 389.3 kB / 0.5413 GB, free: 4.25 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009315/0.4022, allocations: 0.5449 MB / 0.5419 GB, free: 3.875 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001482/0.4037, allocations: 0.7384 MB / 0.5426 GB, free: 3.43 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.658e-06/0.4037, allocations: 1.031 kB / 0.5426 GB, free: 3.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002685/0.4064, allocations: 1.285 MB / 0.5439 GB, free: 2.441 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.4065, allocations: 11.94 kB / 0.5439 GB, free: 2.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.971e-05/0.4065, allocations: 11.92 kB / 0.5439 GB, free: 2.418 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00134/0.4078, allocations: 0.7609 MB / 0.5446 GB, free: 1.645 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005664/0.4084, allocations: 151.7 kB / 0.5448 GB, free: 1.496 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002261/0.4107, allocations: 2.686 MB / 0.5474 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009461/0.4116, allocations: 148 kB / 0.5475 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.894e-05/0.4117, allocations: 31.98 kB / 0.5476 GB, free: 14.53 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 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 87 * 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,6), (1,7), (1,6), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0003348/0.4121, allocations: 220.2 kB / 0.5478 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001793/0.4122, allocations: 71.56 kB / 0.5478 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001636/0.4124, allocations: 83.92 kB / 0.5479 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.4124, allocations: 7.922 kB / 0.5479 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.4124, allocations: 4 kB / 0.5479 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002888/0.4127, allocations: 212.6 kB / 0.5481 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001368/0.4129, allocations: 31.94 kB / 0.5482 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009121/0.4138, allocations: 119.8 kB / 0.5483 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003208/0.4141, allocations: 143.8 kB / 0.5484 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003299/0.4174, allocations: 1.394 MB / 0.5498 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002567/0.42, allocations: 1.57 MB / 0.5513 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008356/0.4209, allocations: 390.2 kB / 0.5517 GB, free: 10.24 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003124/0.4212, allocations: 287.1 kB / 0.552 GB, free: 9.961 MB / 414.1 MB Notification: Performance of Backend: time 6.41e-07/0.4212, allocations: 0 / 0.552 GB, free: 9.961 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002135/0.4233, allocations: 0.7503 MB / 0.5527 GB, free: 9.207 MB / 414.1 MB Notification: Performance of SimCode: time 0.002874/0.4262, allocations: 2.263 MB / 0.5549 GB, free: 6.898 MB / 414.1 MB Notification: Performance of Templates: time 0.02267/0.4489, allocations: 15.14 MB / 0.5697 GB, free: 7.805 MB / 430.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches