Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002184/0.002184, allocations: 104.2 kB / 17.58 MB, free: 5.559 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.002258/0.002258, allocations: 192 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.324/1.324, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 55.92 kB / 280.7 MB, free: 3.16 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08538/0.08664, allocations: 46.62 MB / 327.3 MB, free: 4.469 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004305/0.09099, allocations: 3.02 MB / 330.3 MB, free: 1.422 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001617/0.09263, allocations: 0.9784 MB / 331.3 MB, free: 444 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001632/0.09281, allocations: 7.938 kB / 331.3 MB, free: 436 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002224/0.09307, allocations: 67.31 kB / 331.3 MB, free: 368 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002169/0.0933, allocations: 138.9 kB / 331.5 MB, free: 228 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000463/0.09377, allocations: 219.6 kB / 331.7 MB, free: 8 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005393/0.09432, allocations: 0.624 MB / 332.3 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002155/0.09454, allocations: 132 kB / 332.5 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002913/0.09484, allocations: 275.1 kB / 332.7 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003261/0.09518, allocations: 306.8 kB / 333 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.444e-05/0.09526, allocations: 48 kB / 333.1 MB, free: 14.63 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001748/0.09544, allocations: 91.95 kB / 333.2 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001239/0.09557, allocations: 119.6 kB / 333.3 MB, free: 14.43 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000209/0.09579, allocations: 258.7 kB / 333.5 MB, free: 14.17 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000514/0.09631, allocations: 0.5843 MB / 334.1 MB, free: 13.59 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.09632, allocations: 0 / 334.1 MB, free: 13.59 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.09633, allocations: 3.938 kB / 334.1 MB, free: 13.58 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.163e-06/0.09634, allocations: 0 / 334.1 MB, free: 13.58 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.00132/0.09767, allocations: 0.7796 MB / 334.9 MB, free: 12.75 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.09771, allocations: 15.97 kB / 334.9 MB, free: 12.73 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001061/0.09782, allocations: 52.31 kB / 335 MB, free: 12.68 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003558/0.09819, allocations: 323.3 kB / 335.3 MB, free: 12.33 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.741e-05/0.09822, allocations: 29.38 kB / 335.3 MB, free: 12.3 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.694e-05/0.09831, allocations: 44.38 kB / 335.3 MB, free: 12.26 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007987/0.09912, allocations: 478.6 kB / 335.8 MB, free: 11.79 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.925e-05/0.09915, allocations: 3.906 kB / 335.8 MB, free: 11.78 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.716e-05/0.0992, allocations: 16 kB / 335.8 MB, free: 11.77 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.09922, allocations: 12 kB / 335.8 MB, free: 11.75 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009009/0.1001, allocations: 487.6 kB / 336.3 MB, free: 11.27 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001873/0.102, allocations: 1.114 MB / 337.4 MB, free: 10.11 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007471/0.1028, allocations: 380.4 kB / 337.8 MB, free: 9.727 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005163/0.1033, allocations: 274 kB / 338.1 MB, free: 9.453 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.17e-05/0.1033, allocations: 16.36 kB / 338.1 MB, free: 9.438 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.957e-05/0.1034, allocations: 31 kB / 338.1 MB, free: 9.398 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 1.753e-06/0.1034, allocations: 0 / 338.1 MB, free: 9.398 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.004886/0.1083, allocations: 2.342 MB / 340.5 MB, free: 6.93 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.876e-05/0.1083, allocations: 67.97 kB / 340.5 MB, free: 6.852 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002677/0.1086, allocations: 283.3 kB / 340.8 MB, free: 6.57 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.424e-05/0.1087, allocations: 41.64 kB / 340.8 MB, free: 6.523 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001046/0.1088, allocations: 181.3 kB / 341 MB, free: 6.344 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001495/0.109, allocations: 201.3 kB / 341.2 MB, free: 6.145 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001733/0.1091, allocations: 110.2 kB / 341.3 MB, free: 6.027 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.1093, allocations: 346.8 kB / 341.7 MB, free: 5.68 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004586/0.1097, allocations: 241.2 kB / 341.9 MB, free: 5.445 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004931/0.1102, allocations: 296.7 kB / 342.2 MB, free: 5.148 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007244/0.111, allocations: 410.4 kB / 342.6 MB, free: 4.738 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.111, allocations: 0 / 342.6 MB, free: 4.738 MB / 286.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001568/0.1125, allocations: 0.7872 MB / 343.4 MB, free: 3.938 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.1126, allocations: 12.03 kB / 343.4 MB, free: 3.926 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.1126, allocations: 3.938 kB / 343.4 MB, free: 3.922 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008516/0.1134, allocations: 0.4896 MB / 343.9 MB, free: 3.426 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003306/0.1138, allocations: 87.89 kB / 344 MB, free: 3.34 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001201/0.115, allocations: 1.413 MB / 345.4 MB, free: 1.875 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000467/0.1155, allocations: 71.94 kB / 345.5 MB, free: 1.805 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.315e-05/0.1155, allocations: 20.11 kB / 345.5 MB, free: 1.785 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,8), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002089/0.1157, allocations: 177.6 kB / 345.6 MB, free: 1.602 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.316e-05/0.1158, allocations: 39.53 kB / 345.7 MB, free: 1.562 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001153/0.116, allocations: 59.73 kB / 345.7 MB, free: 1.5 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.116, allocations: 4 kB / 345.7 MB, free: 1.496 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/0.116, allocations: 4 kB / 345.8 MB, free: 1.492 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.116, allocations: 3.984 kB / 345.8 MB, free: 1.488 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002592/0.1186, allocations: 1.458 MB / 347.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/0.1186, allocations: 8.094 kB / 347.2 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003461/0.119, allocations: 83.83 kB / 347.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007015/0.1197, allocations: 485.3 kB / 347.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.16e-05/0.1197, allocations: 19.97 kB / 347.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001097/0.1208, allocations: 1.37 MB / 349.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.1208, allocations: 4.031 kB / 349.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001903/0.1227, allocations: 1.096 MB / 350.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001787/0.1229, allocations: 172.6 kB / 350.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.215e-05/0.123, allocations: 19.94 kB / 350.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004051/0.1234, allocations: 55.94 kB / 350.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00019/0.1236, allocations: 96.28 kB / 350.6 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.188e-05/0.1237, allocations: 27.97 kB / 350.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001849/0.1239, allocations: 205.9 kB / 350.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1239, allocations: 0 / 350.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004542/0.1244, allocations: 128 kB / 351 MB, free: 12.09 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (clutch.mode,clutch.startForward,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,6), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000265/0.1246, allocations: 139.2 kB / 351.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001344/0.126, allocations: 0.6122 MB / 351.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.126, allocations: 0 / 351.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006603/0.1267, allocations: 334.3 kB / 352 MB, free: 11.01 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006389/0.1273, allocations: 90.5 kB / 352.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003491/0.1308, allocations: 1.455 MB / 353.6 MB, free: 9.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003797/0.1312, allocations: 0.8202 MB / 354.4 MB, free: 8.582 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001564/0.1314, allocations: 39.28 kB / 354.4 MB, free: 8.543 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.119e-05/0.1315, allocations: 39.42 kB / 354.5 MB, free: 8.504 MB / 302.1 MB Notification: Performance of SimCode: time 4.2e-07/0.1315, allocations: 0 / 354.5 MB, free: 8.504 MB / 302.1 MB Notification: Performance of Templates: time 0.01428/0.1458, allocations: 9.927 MB / 364.4 MB, free: 14.57 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches