Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00139/0.00139, allocations: 105.6 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001312/0.001312, allocations: 208.1 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.429/1.429, allocations: 227.7 MB / 247.7 MB, free: 10.43 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001981/0.001981, allocations: 72.94 kB / 307.9 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1047, allocations: 50.53 MB / 358.4 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.005163/0.1099, allocations: 3.176 MB / 361.6 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002215/0.1121, allocations: 1.119 MB / 362.7 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002079/0.1123, allocations: 4 kB / 362.7 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003502/0.1127, allocations: 87.22 kB / 362.8 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004249/0.1132, allocations: 186.6 kB / 363 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004439/0.1136, allocations: 199.6 kB / 363.2 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006698/0.1143, allocations: 0.6629 MB / 363.8 MB, free: 8.539 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002643/0.1146, allocations: 136.7 kB / 364 MB, free: 8.402 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004373/0.115, allocations: 299 kB / 364.3 MB, free: 8.109 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004156/0.1155, allocations: 318.7 kB / 364.6 MB, free: 7.797 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.563e-05/0.1156, allocations: 52 kB / 364.6 MB, free: 7.746 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002332/0.1158, allocations: 120 kB / 364.8 MB, free: 7.629 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000186/0.116, allocations: 127.6 kB / 364.9 MB, free: 7.504 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002743/0.1163, allocations: 266.7 kB / 365.1 MB, free: 7.242 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007109/0.117, allocations: 0.6349 MB / 365.8 MB, free: 6.605 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.117, allocations: 3.938 kB / 365.8 MB, free: 6.602 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.117, allocations: 0 / 365.8 MB, free: 6.602 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.646e-06/0.117, allocations: 4 kB / 365.8 MB, free: 6.598 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001615/0.1187, allocations: 0.8225 MB / 366.6 MB, free: 5.723 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.324e-05/0.1187, allocations: 8.031 kB / 366.6 MB, free: 5.715 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002767/0.119, allocations: 64.28 kB / 366.7 MB, free: 5.652 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004689/0.1195, allocations: 343.2 kB / 367 MB, free: 5.281 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.308e-05/0.1195, allocations: 37.38 kB / 367 MB, free: 5.246 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.033e-05/0.1196, allocations: 40.28 kB / 367.1 MB, free: 5.207 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009169/0.1206, allocations: 474.6 kB / 367.5 MB, free: 4.734 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.1206, allocations: 0 / 367.5 MB, free: 4.734 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.995e-05/0.1206, allocations: 20 kB / 367.6 MB, free: 4.715 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.439e-05/0.1207, allocations: 15.98 kB / 367.6 MB, free: 4.699 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001007/0.1217, allocations: 475.6 kB / 368 MB, free: 4.234 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002186/0.1239, allocations: 1.137 MB / 369.2 MB, free: 3.039 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009652/0.1249, allocations: 426.5 kB / 369.6 MB, free: 2.609 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005716/0.1254, allocations: 270.4 kB / 369.9 MB, free: 2.344 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.622e-05/0.1255, allocations: 12.56 kB / 369.9 MB, free: 2.332 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.164e-05/0.1255, allocations: 39.06 kB / 369.9 MB, free: 2.285 MB / 302.1 MB Notification: Performance of pre-optimization done (n=55): time 2.354e-06/0.1255, allocations: 0 / 369.9 MB, free: 2.285 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.1721/0.2977, allocations: 2.323 MB / 372.2 MB, free: 20.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.74e-05/0.2977, allocations: 58.55 kB / 372.3 MB, free: 20.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00042/0.2982, allocations: 304.4 kB / 372.6 MB, free: 20.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.046e-05/0.2983, allocations: 43.33 kB / 372.6 MB, free: 20.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.2984, allocations: 184.4 kB / 372.8 MB, free: 19.97 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001683/0.2986, allocations: 212.2 kB / 373 MB, free: 19.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001971/0.2988, allocations: 110.8 kB / 373.1 MB, free: 19.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.222e-05/0.2989, allocations: 352.8 kB / 373.5 MB, free: 19.56 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004743/0.2993, allocations: 229.3 kB / 373.7 MB, free: 19.56 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000532/0.2999, allocations: 280.9 kB / 374 MB, free: 19.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000782/0.3007, allocations: 394.5 kB / 374.4 MB, free: 19.42 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.3007, allocations: 1.094 kB / 374.4 MB, free: 19.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001657/0.3023, allocations: 0.7471 MB / 375.1 MB, free: 19.12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.3024, allocations: 5.594 kB / 375.1 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.3024, allocations: 3.625 kB / 375.1 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009887/0.3034, allocations: 378.6 kB / 375.5 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003411/0.3037, allocations: 85.08 kB / 375.6 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001126/0.3049, allocations: 1.402 MB / 377 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005231/0.3054, allocations: 77.94 kB / 377 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.376e-05/0.3055, allocations: 19.81 kB / 377.1 MB, free: 17.78 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 (55): * Single equations (assignments): 53 * 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,10), (1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.000207/0.3057, allocations: 180.5 kB / 377.2 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.268e-05/0.3058, allocations: 40.19 kB / 377.3 MB, free: 17.6 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001231/0.3059, allocations: 65.39 kB / 377.3 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.3059, allocations: 9.672 kB / 377.4 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/0.3059, allocations: 0 / 377.4 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/0.3059, allocations: 10.69 kB / 377.4 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002689/0.3086, allocations: 1.453 MB / 378.8 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.3087, allocations: 1.688 kB / 378.8 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003599/0.309, allocations: 88.66 kB / 378.9 MB, free: 16.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007273/0.3098, allocations: 343.7 kB / 379.2 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.737e-05/0.3098, allocations: 20.05 kB / 379.3 MB, free: 16.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009903/0.3108, allocations: 1.361 MB / 380.6 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/0.3108, allocations: 10.41 kB / 380.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001891/0.3127, allocations: 1.049 MB / 381.7 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002021/0.3129, allocations: 177.1 kB / 381.9 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.526e-05/0.3131, allocations: 21.08 kB / 381.9 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004541/0.3135, allocations: 64.66 kB / 381.9 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002304/0.3137, allocations: 102.4 kB / 382 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.03e-05/0.3138, allocations: 23.7 kB / 382.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002148/0.314, allocations: 218.4 kB / 382.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.314, allocations: 0 / 382.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005015/0.3145, allocations: 126 kB / 382.4 MB, free: 14.59 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,8), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001267/0.3158, allocations: 392.6 kB / 382.8 MB, free: 14.42 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001416/0.3172, allocations: 0.6045 MB / 383.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.3173, allocations: 0 / 383.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006909/0.318, allocations: 338.2 kB / 383.7 MB, free: 14.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006308/0.3186, allocations: 99.86 kB / 383.8 MB, free: 14.06 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003774/0.3224, allocations: 1.512 MB / 385.3 MB, free: 13.24 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003439/0.3227, allocations: 0.8315 MB / 386.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001387/0.3229, allocations: 43.72 kB / 386.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.3229, allocations: 0 / 386.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of Templates: time 0.01269/0.3356, allocations: 9.069 MB / 395.3 MB, free: 8.855 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches