Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) 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(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_4.0.0_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_4.0.0_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.001255/0.001255, allocations: 104.2 kB / 17.59 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.001321/0.001321, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.402/1.402, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001682/0.001682, allocations: 49.64 kB / 301.3 MB, free: 5.902 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.1338, allocations: 49.45 MB / 350.7 MB, free: 4.441 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.005896/0.1397, allocations: 3.016 MB / 353.7 MB, free: 1.398 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002519/0.1423, allocations: 0.9464 MB / 354.7 MB, free: 456 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002828/0.1426, allocations: 4 kB / 354.7 MB, free: 452 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002949/0.1429, allocations: 67.31 kB / 354.8 MB, free: 384 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003943/0.1434, allocations: 134.8 kB / 354.9 MB, free: 248 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007564/0.1441, allocations: 211.6 kB / 355.1 MB, free: 36 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000852/0.145, allocations: 0.6358 MB / 355.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002991/0.1453, allocations: 128.2 kB / 355.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005059/0.1458, allocations: 279.1 kB / 356.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005013/0.1464, allocations: 298.9 kB / 356.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001118/0.1465, allocations: 48 kB / 356.5 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002759/0.1468, allocations: 99.89 kB / 356.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002003/0.147, allocations: 123.6 kB / 356.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003388/0.1473, allocations: 242.8 kB / 356.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009079/0.1483, allocations: 0.5803 MB / 357.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.316e-06/0.1483, allocations: 0 / 357.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1483, allocations: 3.938 kB / 357.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.05e-05/0.1483, allocations: 0 / 357.5 MB, free: 13.61 MB / 302.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.002197/0.1505, allocations: 0.7836 MB / 358.3 MB, free: 12.78 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.305e-05/0.1506, allocations: 8.031 kB / 358.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001852/0.1508, allocations: 56.38 kB / 358.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006106/0.1514, allocations: 331.2 kB / 358.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.887e-05/0.1515, allocations: 29.38 kB / 358.7 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001258/0.1516, allocations: 36.38 kB / 358.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001356/0.153, allocations: 482.5 kB / 359.2 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.387e-05/0.1531, allocations: 7.906 kB / 359.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.343e-05/0.1531, allocations: 16 kB / 359.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.491e-05/0.1532, allocations: 8 kB / 359.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001529/0.1547, allocations: 479.7 kB / 359.7 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0032/0.1579, allocations: 1.117 MB / 360.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001272/0.1592, allocations: 404.2 kB / 361.2 MB, free: 9.738 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008393/0.1601, allocations: 274 kB / 361.5 MB, free: 9.469 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.136e-05/0.1602, allocations: 4.438 kB / 361.5 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.837e-05/0.1602, allocations: 43 kB / 361.5 MB, free: 9.414 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 3.577e-06/0.1602, allocations: 0 / 361.5 MB, free: 9.414 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.007909/0.1682, allocations: 2.346 MB / 363.9 MB, free: 6.934 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.823e-05/0.1683, allocations: 59.95 kB / 363.9 MB, free: 6.863 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004758/0.1688, allocations: 279.4 kB / 364.2 MB, free: 6.578 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.959e-05/0.1689, allocations: 49.69 kB / 364.3 MB, free: 6.523 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001892/0.1691, allocations: 185.2 kB / 364.5 MB, free: 6.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002342/0.1693, allocations: 185.4 kB / 364.6 MB, free: 6.156 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002701/0.1696, allocations: 114.2 kB / 364.7 MB, free: 6.035 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001921/0.1698, allocations: 346.8 kB / 365.1 MB, free: 5.688 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007262/0.1705, allocations: 245.2 kB / 365.3 MB, free: 5.449 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007708/0.1713, allocations: 288.8 kB / 365.6 MB, free: 5.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001155/0.1725, allocations: 418.3 kB / 366 MB, free: 4.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.1725, allocations: 3.938 kB / 366 MB, free: 4.746 MB / 302.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002529/0.1751, allocations: 0.7794 MB / 366.8 MB, free: 3.953 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.561e-05/0.1751, allocations: 4 kB / 366.8 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.1751, allocations: 0 / 366.8 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001465/0.1766, allocations: 0.5052 MB / 367.3 MB, free: 3.438 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005678/0.1772, allocations: 91.83 kB / 367.4 MB, free: 3.348 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001979/0.1792, allocations: 1.397 MB / 368.8 MB, free: 1.898 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008486/0.1801, allocations: 76.03 kB / 368.9 MB, free: 1.824 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.141e-05/0.1801, allocations: 20 kB / 368.9 MB, free: 1.805 MB / 302.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.0003694/0.1805, allocations: 180.6 kB / 369.1 MB, free: 1.621 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001617/0.1807, allocations: 39.53 kB / 369.1 MB, free: 1.582 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001635/0.1809, allocations: 63.73 kB / 369.2 MB, free: 1.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/0.1809, allocations: 8 kB / 369.2 MB, free: 1.512 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.417e-05/0.1809, allocations: 0 / 369.2 MB, free: 1.512 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.1809, allocations: 3.938 kB / 369.2 MB, free: 1.508 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2387/0.4197, allocations: 1.442 MB / 370.6 MB, free: 25.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-05/0.4198, allocations: 5.25 kB / 370.6 MB, free: 25.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007635/0.4205, allocations: 83.89 kB / 370.7 MB, free: 25.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001484/0.4221, allocations: 486.8 kB / 371.2 MB, free: 25.8 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.574e-05/0.4222, allocations: 22.06 kB / 371.2 MB, free: 25.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001385/0.4236, allocations: 1.37 MB / 372.6 MB, free: 24.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.4236, allocations: 4.062 kB / 372.6 MB, free: 24.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002095/0.4257, allocations: 1.086 MB / 373.7 MB, free: 24.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002147/0.4259, allocations: 170.6 kB / 373.8 MB, free: 24.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.047e-05/0.426, allocations: 20.66 kB / 373.8 MB, free: 24.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004288/0.4264, allocations: 56.52 kB / 373.9 MB, free: 24.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002338/0.4267, allocations: 99.73 kB / 374 MB, free: 24.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.289e-05/0.4267, allocations: 23.36 kB / 374 MB, free: 24.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002169/0.427, allocations: 204.8 kB / 374.2 MB, free: 24.4 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.427, allocations: 1.438 kB / 374.2 MB, free: 24.4 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004924/0.4275, allocations: 129.7 kB / 374.4 MB, free: 24.4 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.0002373/0.4277, allocations: 143.9 kB / 374.5 MB, free: 24.3 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001337/0.4291, allocations: 0.6161 MB / 375.1 MB, free: 24.12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.4291, allocations: 0 / 375.1 MB, free: 24.12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006497/0.4297, allocations: 337.3 kB / 375.4 MB, free: 24.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005816/0.4303, allocations: 80.73 kB / 375.5 MB, free: 24 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003597/0.4339, allocations: 1.48 MB / 377 MB, free: 23.24 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002755/0.4342, allocations: 0.8179 MB / 377.8 MB, free: 22.54 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001134/0.4343, allocations: 41.16 kB / 377.9 MB, free: 22.53 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.4344, allocations: 0 / 377.9 MB, free: 22.53 MB / 302.1 MB Notification: Performance of Templates: time 0.01157/0.4459, allocations: 8.547 MB / 386.4 MB, free: 19.69 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches