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.001108/0.001108, allocations: 107.8 kB / 18.45 MB, free: 4.602 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.001142/0.001142, allocations: 186.3 kB / 19.38 MB, free: 3.68 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.302/1.302, allocations: 222.9 MB / 243.1 MB, free: 15.07 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.2002/0.2002, allocations: 44.18 MB / 337.4 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 63.89 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3308/0.3321, allocations: 60.82 MB / 0.5195 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.004529/0.3367, allocations: 3.923 MB / 0.5234 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002194/0.3389, allocations: 1.228 MB / 0.5246 GB, free: 15.95 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002994/0.3392, allocations: 12.44 kB / 0.5246 GB, free: 15.94 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003224/0.3396, allocations: 114.9 kB / 0.5247 GB, free: 15.87 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004274/0.34, allocations: 203 kB / 0.5249 GB, free: 15.73 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008241/0.3409, allocations: 350.1 kB / 0.5252 GB, free: 15.55 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001102/0.342, allocations: 1.027 MB / 0.5262 GB, free: 15.07 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002795/0.3423, allocations: 179.2 kB / 0.5264 GB, free: 14.98 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006132/0.3429, allocations: 451.8 kB / 0.5268 GB, free: 14.79 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006007/0.3435, allocations: 489.3 kB / 0.5273 GB, free: 14.54 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001337/0.3436, allocations: 80.75 kB / 0.5274 GB, free: 14.54 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00027/0.3439, allocations: 131.9 kB / 0.5275 GB, free: 14.51 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001891/0.3441, allocations: 203.7 kB / 0.5277 GB, free: 14.34 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000341/0.3445, allocations: 396.3 kB / 0.5281 GB, free: 14.06 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009068/0.3454, allocations: 0.9456 MB / 0.529 GB, free: 13.37 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.3454, allocations: 3.938 kB / 0.529 GB, free: 13.36 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.3454, allocations: 0 / 0.529 GB, free: 13.36 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.139e-05/0.3454, allocations: 0 / 0.529 GB, free: 13.36 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.002118/0.3476, allocations: 1.083 MB / 0.5301 GB, free: 12.52 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.3476, allocations: 13.81 kB / 0.5301 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001603/0.3478, allocations: 79.03 kB / 0.5301 GB, free: 12.48 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006105/0.3484, allocations: 439.8 kB / 0.5306 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.077e-05/0.3484, allocations: 47.28 kB / 0.5306 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001223/0.3486, allocations: 71.8 kB / 0.5307 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001442/0.35, allocations: 0.8207 MB / 0.5315 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.074e-05/0.3501, allocations: 11.31 kB / 0.5315 GB, free: 11.49 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.195e-05/0.3501, allocations: 21.59 kB / 0.5315 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.659e-05/0.3502, allocations: 14.28 kB / 0.5315 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001558/0.3517, allocations: 0.7686 MB / 0.5323 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004019/0.3558, allocations: 2.548 MB / 0.5348 GB, free: 9.039 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001301/0.3571, allocations: 0.6274 MB / 0.5354 GB, free: 8.684 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007207/0.3578, allocations: 377.1 kB / 0.5357 GB, free: 8.488 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.579e-05/0.3579, allocations: 11.69 kB / 0.5357 GB, free: 8.484 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.616e-05/0.3579, allocations: 46.62 kB / 0.5358 GB, free: 8.434 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 2.224e-06/0.3579, allocations: 0 / 0.5358 GB, free: 8.434 MB / 398.1 MB Notification: Performance of matching and sorting (n=76): time 0.007717/0.3656, allocations: 3.537 MB / 0.5392 GB, free: 5.914 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.923e-05/0.3658, allocations: 140.2 kB / 0.5394 GB, free: 5.754 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004705/0.3662, allocations: 426.5 kB / 0.5398 GB, free: 5.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.264e-05/0.3663, allocations: 54.41 kB / 0.5398 GB, free: 5.449 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001919/0.3665, allocations: 276.4 kB / 0.5401 GB, free: 5.199 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002204/0.3667, allocations: 264.8 kB / 0.5404 GB, free: 4.969 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003139/0.3671, allocations: 176.5 kB / 0.5405 GB, free: 4.859 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.3672, allocations: 372 kB / 0.5409 GB, free: 4.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008613/0.3681, allocations: 389.4 kB / 0.5413 GB, free: 4.324 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009451/0.3691, allocations: 0.5453 MB / 0.5418 GB, free: 3.949 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00139/0.3705, allocations: 0.7341 MB / 0.5425 GB, free: 3.508 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.3705, allocations: 5.062 kB / 0.5425 GB, free: 3.504 MB / 398.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002829/0.3733, allocations: 1.285 MB / 0.5438 GB, free: 2.504 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.3734, allocations: 15.88 kB / 0.5438 GB, free: 2.488 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.3734, allocations: 4 kB / 0.5438 GB, free: 2.484 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001322/0.3747, allocations: 0.7646 MB / 0.5445 GB, free: 1.707 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005686/0.3753, allocations: 151.8 kB / 0.5447 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00229/0.3776, allocations: 2.686 MB / 0.5473 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001008/0.3786, allocations: 139.8 kB / 0.5474 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.156e-05/0.3787, allocations: 35.98 kB / 0.5475 GB, free: 14.6 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.0003917/0.3791, allocations: 224.1 kB / 0.5477 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002198/0.3793, allocations: 63.25 kB / 0.5477 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002501/0.3796, allocations: 91.91 kB / 0.5478 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.277e-06/0.3796, allocations: 8 kB / 0.5478 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.138e-05/0.3796, allocations: 0 / 0.5478 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/0.3796, allocations: 7.984 kB / 0.5478 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004031/0.3837, allocations: 2.17 MB / 0.55 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.518e-06/0.3837, allocations: 4 kB / 0.55 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005625/0.3843, allocations: 111.9 kB / 0.5501 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001169/0.3855, allocations: 0.7254 MB / 0.5508 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.908e-05/0.3855, allocations: 27.97 kB / 0.5508 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002273/0.3878, allocations: 2.651 MB / 0.5534 GB, free: 8.32 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.3878, allocations: 0 / 0.5534 GB, free: 8.32 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003218/0.3911, allocations: 1.77 MB / 0.5551 GB, free: 6.527 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004016/0.3915, allocations: 224.2 kB / 0.5553 GB, free: 6.289 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001706/0.3917, allocations: 28 kB / 0.5554 GB, free: 6.262 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009267/0.3926, allocations: 119.8 kB / 0.5555 GB, free: 6.145 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003357/0.3929, allocations: 147.9 kB / 0.5556 GB, free: 6 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.327e-05/0.393, allocations: 35.97 kB / 0.5556 GB, free: 5.965 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003369/0.3934, allocations: 291.1 kB / 0.5559 GB, free: 5.68 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3934, allocations: 3.938 kB / 0.5559 GB, free: 5.676 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009189/0.3943, allocations: 196 kB / 0.5561 GB, free: 5.484 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * 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,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002893/0.3946, allocations: 155.1 kB / 0.5563 GB, free: 5.324 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002203/0.3968, allocations: 0.9494 MB / 0.5572 GB, free: 4.375 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3968, allocations: 0 / 0.5572 GB, free: 4.375 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001166/0.398, allocations: 0.4956 MB / 0.5577 GB, free: 3.879 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001014/0.399, allocations: 125.4 kB / 0.5578 GB, free: 3.762 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004788/0.4038, allocations: 2.111 MB / 0.5599 GB, free: 1.613 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000541/0.4044, allocations: 0.9066 MB / 0.5607 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002056/0.4046, allocations: 63.41 kB / 0.5608 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4046, allocations: 0 / 0.5608 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of Templates: time 0.02074/0.4254, allocations: 17.22 MB / 0.5776 GB, free: 15.4 MB / 446.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