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.001636/0.001636, allocations: 105.2 kB / 16.62 MB, free: 6.809 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.001857/0.001857, allocations: 189.9 kB / 17.55 MB, free: 5.953 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.33/1.33, allocations: 222.9 MB / 241.2 MB, free: 13.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001707/0.001707, allocations: 46.95 kB / 300.1 MB, free: 6 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1245, allocations: 49.45 MB / 349.6 MB, free: 4.539 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004445/0.129, allocations: 3.05 MB / 352.6 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001792/0.1308, allocations: 0.927 MB / 353.6 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001784/0.131, allocations: 8 kB / 353.6 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002178/0.1313, allocations: 55.62 kB / 353.6 MB, free: 480 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002229/0.1315, allocations: 115.1 kB / 353.7 MB, free: 364 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004725/0.132, allocations: 191.7 kB / 353.9 MB, free: 172 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005366/0.1325, allocations: 0.6357 MB / 354.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002186/0.1328, allocations: 132.2 kB / 354.7 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002898/0.1331, allocations: 279 kB / 355 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000301/0.1334, allocations: 298.9 kB / 355.2 MB, free: 14.83 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.063e-05/0.1335, allocations: 48 kB / 355.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000161/0.1336, allocations: 91.95 kB / 355.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001216/0.1338, allocations: 131.5 kB / 355.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002008/0.134, allocations: 250.8 kB / 355.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005043/0.1345, allocations: 0.5804 MB / 356.3 MB, free: 13.74 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1345, allocations: 0 / 356.3 MB, free: 13.74 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1345, allocations: 4 kB / 356.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.127e-06/0.1345, allocations: 0 / 356.3 MB, free: 13.73 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.00134/0.1359, allocations: 0.7835 MB / 357.1 MB, free: 12.9 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.258e-05/0.1359, allocations: 12.03 kB / 357.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.922e-05/0.136, allocations: 48.38 kB / 357.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003497/0.1364, allocations: 323.3 kB / 357.5 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.053e-05/0.1364, allocations: 33.38 kB / 357.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.742e-05/0.1365, allocations: 40.38 kB / 357.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008258/0.1373, allocations: 478.5 kB / 358 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.996e-05/0.1374, allocations: 3.906 kB / 358 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.788e-05/0.1374, allocations: 16 kB / 358.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.1374, allocations: 16 kB / 358.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008813/0.1383, allocations: 479.7 kB / 358.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001862/0.1402, allocations: 1.125 MB / 359.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007505/0.1409, allocations: 403.1 kB / 360.1 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005018/0.1415, allocations: 278 kB / 360.3 MB, free: 9.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.595e-05/0.1415, allocations: 4.438 kB / 360.3 MB, free: 9.586 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.492e-05/0.1415, allocations: 39 kB / 360.4 MB, free: 9.539 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.593e-06/0.1416, allocations: 0 / 360.4 MB, free: 9.539 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.004911/0.1465, allocations: 2.331 MB / 362.7 MB, free: 7.074 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.359e-05/0.1465, allocations: 59.97 kB / 362.8 MB, free: 7.004 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002738/0.1468, allocations: 279.4 kB / 363 MB, free: 6.719 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.58e-05/0.1469, allocations: 53.62 kB / 363.1 MB, free: 6.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.147, allocations: 185.2 kB / 363.3 MB, free: 6.477 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001495/0.1471, allocations: 189.4 kB / 363.5 MB, free: 6.289 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001799/0.1473, allocations: 110.2 kB / 363.6 MB, free: 6.172 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.1475, allocations: 346.8 kB / 363.9 MB, free: 5.824 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004704/0.1479, allocations: 245.2 kB / 364.1 MB, free: 5.586 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000488/0.1484, allocations: 288.8 kB / 364.4 MB, free: 5.297 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007545/0.1492, allocations: 414.3 kB / 364.8 MB, free: 4.891 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1492, allocations: 0 / 364.8 MB, free: 4.891 MB / 302.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001605/0.1508, allocations: 0.7833 MB / 365.6 MB, free: 4.094 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.1508, allocations: 8 kB / 365.6 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.1509, allocations: 0 / 365.6 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009108/0.1518, allocations: 0.4935 MB / 366.1 MB, free: 3.586 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003563/0.1521, allocations: 91.83 kB / 366.2 MB, free: 3.496 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001194/0.1534, allocations: 1.409 MB / 367.6 MB, free: 2.035 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000459/0.1538, allocations: 71.94 kB / 367.7 MB, free: 1.965 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.598e-05/0.1539, allocations: 20 kB / 367.7 MB, free: 1.945 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.0002121/0.1541, allocations: 189.5 kB / 367.9 MB, free: 1.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.194e-05/0.1542, allocations: 39.62 kB / 367.9 MB, free: 1.711 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001361/0.1543, allocations: 63.67 kB / 368 MB, free: 1.648 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.1543, allocations: 7.938 kB / 368 MB, free: 1.641 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.1543, allocations: 0 / 368 MB, free: 1.641 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.1544, allocations: 0 / 368 MB, free: 1.641 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002638/0.157, allocations: 1.454 MB / 369.4 MB, free: 112 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.157, allocations: 3.938 kB / 369.5 MB, free: 108 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003604/0.1574, allocations: 83.89 kB / 369.5 MB, free: 24 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1471/0.3045, allocations: 472.6 kB / 370 MB, free: 25.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001036/0.3046, allocations: 21.8 kB / 370 MB, free: 25.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001099/0.3057, allocations: 1.374 MB / 371.4 MB, free: 24.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.3058, allocations: 5.375 kB / 371.4 MB, free: 24.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002075/0.3078, allocations: 1.092 MB / 372.5 MB, free: 24.61 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001951/0.308, allocations: 166.5 kB / 372.7 MB, free: 24.52 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.921e-05/0.3081, allocations: 23.34 kB / 372.7 MB, free: 24.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004255/0.3086, allocations: 61.25 kB / 372.7 MB, free: 24.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002099/0.3088, allocations: 94.78 kB / 372.8 MB, free: 24.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.602e-05/0.3088, allocations: 22.58 kB / 372.8 MB, free: 24.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001831/0.309, allocations: 201.5 kB / 373 MB, free: 24.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.309, allocations: 0 / 373 MB, free: 24.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005027/0.3095, allocations: 133.6 kB / 373.2 MB, free: 24.43 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.0002392/0.3098, allocations: 144.3 kB / 373.3 MB, free: 24.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001316/0.3111, allocations: 0.6136 MB / 373.9 MB, free: 24.15 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.3111, allocations: 1.094 kB / 373.9 MB, free: 24.15 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006635/0.3118, allocations: 339.2 kB / 374.3 MB, free: 24.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005873/0.3124, allocations: 85.59 kB / 374.3 MB, free: 24.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003445/0.3159, allocations: 1.61 MB / 376 MB, free: 23.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/0.3162, allocations: 0.8198 MB / 376.8 MB, free: 22.45 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000185/0.3164, allocations: 39.39 kB / 376.8 MB, free: 22.45 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.3165, allocations: 37.81 kB / 376.9 MB, free: 22.43 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3165, allocations: 0.75 kB / 376.9 MB, free: 22.43 MB / 302.1 MB Notification: Performance of Templates: time 0.01599/0.3325, allocations: 9.851 MB / 386.7 MB, free: 19.16 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins/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