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.001209/0.001209, allocations: 107.3 kB / 18.35 MB, free: 4.77 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.001026/0.001026, allocations: 188.1 kB / 19.29 MB, free: 3.844 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.321/1.321, allocations: 205.1 MB / 225.2 MB, free: 12.27 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.001184/0.001184, allocations: 47.92 kB / 282.1 MB, free: 2.469 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08793/0.08913, allocations: 46.63 MB / 328.7 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003918/0.09308, allocations: 3.02 MB / 331.7 MB, free: 0.7266 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001497/0.09459, allocations: 0.9709 MB / 332.7 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001379/0.09474, allocations: 4 kB / 332.7 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002007/0.09496, allocations: 75.3 kB / 332.8 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002134/0.09519, allocations: 126.9 kB / 332.9 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004645/0.09566, allocations: 219.6 kB / 333.1 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005477/0.09622, allocations: 0.6357 MB / 333.8 MB, free: 14.69 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002106/0.09644, allocations: 128.2 kB / 333.9 MB, free: 14.56 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002977/0.09674, allocations: 275 kB / 334.2 MB, free: 14.29 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003401/0.09709, allocations: 306.8 kB / 334.5 MB, free: 13.99 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.734e-05/0.09717, allocations: 48 kB / 334.5 MB, free: 13.95 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001711/0.09735, allocations: 103.9 kB / 334.6 MB, free: 13.84 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001352/0.09749, allocations: 123.6 kB / 334.7 MB, free: 13.72 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002236/0.09772, allocations: 246.8 kB / 335 MB, free: 13.48 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005503/0.09828, allocations: 0.5918 MB / 335.6 MB, free: 12.89 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.09829, allocations: 8 kB / 335.6 MB, free: 12.88 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.0983, allocations: 0 / 335.6 MB, free: 12.88 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.09832, allocations: 4 kB / 335.6 MB, free: 12.88 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.001328/0.09965, allocations: 0.7757 MB / 336.4 MB, free: 12.05 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.0997, allocations: 12.03 kB / 336.4 MB, free: 12.04 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001013/0.0998, allocations: 48.38 kB / 336.4 MB, free: 11.99 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004403/0.1003, allocations: 331.2 kB / 336.7 MB, free: 11.62 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.225e-05/0.1003, allocations: 29.38 kB / 336.8 MB, free: 11.6 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.354e-05/0.1004, allocations: 40.38 kB / 336.8 MB, free: 11.56 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008158/0.1012, allocations: 482.5 kB / 337.3 MB, free: 11.08 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.175e-05/0.1012, allocations: 11.91 kB / 337.3 MB, free: 11.07 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.307e-05/0.1013, allocations: 12 kB / 337.3 MB, free: 11.06 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.1013, allocations: 12 kB / 337.3 MB, free: 11.05 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008991/0.1022, allocations: 479.7 kB / 337.8 MB, free: 10.57 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001939/0.1042, allocations: 1.114 MB / 338.9 MB, free: 9.406 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007375/0.1049, allocations: 388.3 kB / 339.3 MB, free: 9.02 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005016/0.1054, allocations: 274 kB / 339.5 MB, free: 8.746 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.498e-05/0.1055, allocations: 4.438 kB / 339.5 MB, free: 8.742 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.547e-05/0.1055, allocations: 43 kB / 339.6 MB, free: 8.691 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 1.844e-06/0.1055, allocations: 0 / 339.6 MB, free: 8.691 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.00474/0.1103, allocations: 2.342 MB / 341.9 MB, free: 6.223 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.442e-05/0.1103, allocations: 59.97 kB / 342 MB, free: 6.152 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002692/0.1106, allocations: 287.3 kB / 342.3 MB, free: 5.867 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.801e-05/0.1106, allocations: 37.7 kB / 342.3 MB, free: 5.824 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001115/0.1108, allocations: 185.3 kB / 342.5 MB, free: 5.641 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001407/0.1109, allocations: 197.3 kB / 342.7 MB, free: 5.445 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001813/0.1111, allocations: 110.2 kB / 342.8 MB, free: 5.328 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.1112, allocations: 346.8 kB / 343.1 MB, free: 4.98 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004604/0.1117, allocations: 241.2 kB / 343.4 MB, free: 4.746 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004805/0.1122, allocations: 296.8 kB / 343.6 MB, free: 4.449 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007206/0.1129, allocations: 406.4 kB / 344 MB, free: 4.043 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.1129, allocations: 0 / 344 MB, free: 4.043 MB / 286.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001528/0.1145, allocations: 0.7949 MB / 344.8 MB, free: 3.234 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.1145, allocations: 4 kB / 344.8 MB, free: 3.23 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.1145, allocations: 0 / 344.8 MB, free: 3.23 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008509/0.1154, allocations: 0.5052 MB / 345.3 MB, free: 2.719 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003332/0.1157, allocations: 95.81 kB / 345.4 MB, free: 2.625 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001205/0.1169, allocations: 1.401 MB / 346.8 MB, free: 1.172 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000445/0.1174, allocations: 76.06 kB / 346.9 MB, free: 1.098 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.186e-05/0.1174, allocations: 23.98 kB / 346.9 MB, free: 1.074 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.0001945/0.1176, allocations: 169.5 kB / 347.1 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.035e-05/0.1177, allocations: 43.53 kB / 347.2 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001105/0.1178, allocations: 59.73 kB / 347.2 MB, free: 0.793 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.1178, allocations: 4 kB / 347.2 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1179, allocations: 0 / 347.2 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.1179, allocations: 3.984 kB / 347.2 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002614/0.1205, allocations: 1.456 MB / 348.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.1205, allocations: 3.938 kB / 348.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000362/0.1209, allocations: 83.89 kB / 348.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007537/0.1216, allocations: 485.3 kB / 349.2 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.726e-05/0.1217, allocations: 23.97 kB / 349.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001129/0.1228, allocations: 1.366 MB / 350.6 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.1228, allocations: 0 / 350.6 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001966/0.1248, allocations: 1.097 MB / 351.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002084/0.125, allocations: 164.6 kB / 351.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.592e-05/0.1251, allocations: 32 kB / 351.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004045/0.1255, allocations: 55.94 kB / 352 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000193/0.1257, allocations: 92.28 kB / 352.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.53e-05/0.1258, allocations: 31.97 kB / 352.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001882/0.126, allocations: 202 kB / 352.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.126, allocations: 3.938 kB / 352.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004343/0.1264, allocations: 132.1 kB / 352.4 MB, free: 11.39 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.0002034/0.1267, allocations: 139.1 kB / 352.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001194/0.1279, allocations: 0.5927 MB / 353.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1279, allocations: 0 / 353.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006908/0.1286, allocations: 338.3 kB / 353.5 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005542/0.1291, allocations: 85.08 kB / 353.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003316/0.1325, allocations: 1.436 MB / 355 MB, free: 8.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003581/0.1328, allocations: 0.8202 MB / 355.8 MB, free: 7.918 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001449/0.133, allocations: 43.25 kB / 355.9 MB, free: 7.875 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.887e-05/0.1331, allocations: 35.44 kB / 355.9 MB, free: 7.844 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1331, allocations: 0 / 355.9 MB, free: 7.844 MB / 302.1 MB Notification: Performance of Templates: time 0.01487/0.148, allocations: 9.944 MB / 365.8 MB, free: 13.89 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/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