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.001286/0.001286, allocations: 109.5 kB / 17.68 MB, free: 5.332 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.001234/0.001234, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.307/1.307, allocations: 222.9 MB / 242.3 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001039/0.001039, allocations: 54.22 kB / 302 MB, free: 5.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1086, allocations: 49.45 MB / 351.5 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003895/0.1125, allocations: 3.031 MB / 354.5 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001619/0.1141, allocations: 0.9308 MB / 355.5 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001688/0.1143, allocations: 11.94 kB / 355.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002296/0.1146, allocations: 67.36 kB / 355.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002353/0.1148, allocations: 126.8 kB / 355.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004888/0.1153, allocations: 227.5 kB / 355.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006309/0.116, allocations: 0.6318 MB / 356.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002394/0.1162, allocations: 132.2 kB / 356.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000345/0.1166, allocations: 275.1 kB / 356.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004319/0.117, allocations: 298.9 kB / 357.2 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.373e-05/0.1171, allocations: 48 kB / 357.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001948/0.1173, allocations: 107.9 kB / 357.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000132/0.1174, allocations: 123.6 kB / 357.5 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002255/0.1177, allocations: 250.8 kB / 357.7 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005779/0.1183, allocations: 0.5917 MB / 358.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1183, allocations: 4 kB / 358.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1183, allocations: 0 / 358.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.125e-05/0.1183, allocations: 0 / 358.3 MB, free: 12.82 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.001481/0.1198, allocations: 0.7797 MB / 359.1 MB, free: 11.99 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.1198, allocations: 8.031 kB / 359.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.872e-05/0.1199, allocations: 48.38 kB / 359.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004342/0.1204, allocations: 331.2 kB / 359.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.793e-05/0.1204, allocations: 29.38 kB / 359.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.951e-05/0.1205, allocations: 48.36 kB / 359.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008821/0.1214, allocations: 474.6 kB / 360 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.092e-05/0.1214, allocations: 7.891 kB / 360 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.279e-05/0.1215, allocations: 16 kB / 360 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.1215, allocations: 12 kB / 360 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00091/0.1224, allocations: 483.6 kB / 360.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001988/0.1244, allocations: 1.114 MB / 361.6 MB, free: 9.355 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008202/0.1253, allocations: 392.2 kB / 362 MB, free: 8.961 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005036/0.1258, allocations: 270 kB / 362.3 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.123e-05/0.1258, allocations: 12.42 kB / 362.3 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.345e-05/0.1259, allocations: 38.94 kB / 362.3 MB, free: 8.637 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.562e-06/0.1259, allocations: 0 / 362.3 MB, free: 8.637 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.004975/0.1309, allocations: 2.339 MB / 364.7 MB, free: 6.164 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.725e-05/0.1309, allocations: 59.97 kB / 364.7 MB, free: 6.094 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002746/0.1312, allocations: 287.3 kB / 365 MB, free: 5.801 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.585e-05/0.1313, allocations: 41.7 kB / 365 MB, free: 5.754 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.1314, allocations: 189.2 kB / 365.2 MB, free: 5.566 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001416/0.1315, allocations: 185.4 kB / 365.4 MB, free: 5.383 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001872/0.1317, allocations: 110.2 kB / 365.5 MB, free: 5.266 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.1318, allocations: 346.8 kB / 365.9 MB, free: 4.918 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004548/0.1323, allocations: 237.2 kB / 366.1 MB, free: 4.688 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005393/0.1329, allocations: 296.7 kB / 366.4 MB, free: 4.391 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007574/0.1336, allocations: 414.4 kB / 366.8 MB, free: 3.984 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.1336, allocations: 0 / 366.8 MB, free: 3.984 MB / 302.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001636/0.1353, allocations: 0.7833 MB / 367.6 MB, free: 3.188 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.1353, allocations: 8 kB / 367.6 MB, free: 3.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.1353, allocations: 0 / 367.6 MB, free: 3.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008937/0.1362, allocations: 0.5012 MB / 368.1 MB, free: 2.672 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003406/0.1366, allocations: 87.89 kB / 368.2 MB, free: 2.586 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001239/0.1378, allocations: 1.405 MB / 369.6 MB, free: 1.129 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004459/0.1383, allocations: 80.06 kB / 369.6 MB, free: 1.051 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.659e-05/0.1383, allocations: 19.98 kB / 369.7 MB, free: 1.031 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.0002069/0.1385, allocations: 182.1 kB / 369.8 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.171e-05/0.1386, allocations: 43.53 kB / 369.9 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001176/0.1388, allocations: 55.73 kB / 369.9 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.1388, allocations: 8 kB / 370 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.1388, allocations: 3.984 kB / 370 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.1388, allocations: 0 / 370 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1479/0.2867, allocations: 1.444 MB / 371.4 MB, free: 25.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.766e-06/0.2868, allocations: 2.062 kB / 371.4 MB, free: 25.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005333/0.2873, allocations: 82.67 kB / 371.5 MB, free: 25.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001256/0.2886, allocations: 483.1 kB / 372 MB, free: 25.83 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.197e-05/0.2887, allocations: 19.8 kB / 372 MB, free: 25.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001469/0.2902, allocations: 1.374 MB / 373.3 MB, free: 24.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.2902, allocations: 2.172 kB / 373.3 MB, free: 24.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00305/0.2932, allocations: 1.093 MB / 374.4 MB, free: 24.49 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003167/0.2936, allocations: 168.3 kB / 374.6 MB, free: 24.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001349/0.2937, allocations: 21.05 kB / 374.6 MB, free: 24.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006505/0.2944, allocations: 60.02 kB / 374.7 MB, free: 24.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003066/0.2947, allocations: 98.64 kB / 374.8 MB, free: 24.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.707e-05/0.2948, allocations: 27.06 kB / 374.8 MB, free: 24.33 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002754/0.2951, allocations: 207 kB / 375 MB, free: 24.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2951, allocations: 0 / 375 MB, free: 24.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008214/0.2959, allocations: 135.9 kB / 375.1 MB, free: 24.2 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.0002647/0.2962, allocations: 143.7 kB / 375.3 MB, free: 24.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001873/0.2981, allocations: 0.5916 MB / 375.9 MB, free: 23.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.2981, allocations: 0 / 375.9 MB, free: 23.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001036/0.2992, allocations: 345.8 kB / 376.2 MB, free: 23.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008786/0.3001, allocations: 70.12 kB / 376.3 MB, free: 23.78 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005029/0.3051, allocations: 1.43 MB / 377.7 MB, free: 23.1 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003037/0.3054, allocations: 0.825 MB / 378.5 MB, free: 22.39 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002573/0.3057, allocations: 39.06 kB / 378.6 MB, free: 22.38 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001428/0.3059, allocations: 38.08 kB / 378.6 MB, free: 22.37 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3059, allocations: 0 / 378.6 MB, free: 22.37 MB / 302.1 MB Notification: Performance of Templates: time 0.01827/0.3242, allocations: 9.948 MB / 388.6 MB, free: 18.89 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 -s gbode -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