Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001643/0.001643, allocations: 82.17 kB / 21.25 MB, free: 0.5469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001369/0.001369, allocations: 160.2 kB / 24.5 MB, free: 3.719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 177.1 MB / 204.7 MB, free: 8.957 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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=3000,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_trunk_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,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_trunk_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 61.23 kB / 325.5 MB, free: 196 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09564/0.09756, allocations: 53.39 MB / 378.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004841/0.1024, allocations: 2.967 MB / 381.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001951/0.1044, allocations: 1.087 MB / 383 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001385/0.1045, allocations: 11.94 kB / 383 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002621/0.1048, allocations: 83.23 kB / 383.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003933/0.1051, allocations: 190.6 kB / 383.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003935/0.1055, allocations: 207.7 kB / 383.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006817/0.1062, allocations: 0.6745 MB / 384.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000182/0.1064, allocations: 88.64 kB / 384.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004047/0.1068, allocations: 303.1 kB / 384.5 MB, free: 9.848 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003999/0.1072, allocations: 298.8 kB / 384.8 MB, free: 9.555 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.695e-05/0.1073, allocations: 52 kB / 384.8 MB, free: 9.504 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001969/0.1075, allocations: 108 kB / 385 MB, free: 9.398 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001701/0.1077, allocations: 139.6 kB / 385.1 MB, free: 9.262 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002369/0.1079, allocations: 226.9 kB / 385.3 MB, free: 9.039 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000779/0.1087, allocations: 0.6576 MB / 386 MB, free: 8.379 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1087, allocations: 0 / 386 MB, free: 8.379 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1087, allocations: 0 / 386 MB, free: 8.379 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.1087, allocations: 0 / 386 MB, free: 8.379 MB / 350.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.001641/0.1103, allocations: 0.7659 MB / 386.7 MB, free: 7.582 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.1104, allocations: 11.98 kB / 386.7 MB, free: 7.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002636/0.1106, allocations: 68.55 kB / 386.8 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005628/0.1112, allocations: 282.2 kB / 387.1 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.591e-05/0.1113, allocations: 33.38 kB / 387.1 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.307e-05/0.1113, allocations: 44.33 kB / 387.2 MB, free: 7.121 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009774/0.1123, allocations: 482.5 kB / 387.6 MB, free: 6.645 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.975e-05/0.1124, allocations: 7.953 kB / 387.6 MB, free: 6.637 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.697e-05/0.1124, allocations: 16 kB / 387.7 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.622e-05/0.1124, allocations: 15.98 kB / 387.7 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001008/0.1134, allocations: 459.7 kB / 388.1 MB, free: 6.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002018/0.1154, allocations: 0.9316 MB / 389.1 MB, free: 5.191 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009244/0.1164, allocations: 392.6 kB / 389.4 MB, free: 4.797 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005543/0.1169, allocations: 246.2 kB / 389.7 MB, free: 4.555 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.997e-05/0.117, allocations: 12.5 kB / 389.7 MB, free: 4.543 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/0.117, allocations: 39.05 kB / 389.7 MB, free: 4.492 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 1.733e-06/0.117, allocations: 0 / 389.7 MB, free: 4.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.00517/0.1222, allocations: 2.006 MB / 391.7 MB, free: 2.434 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.943e-05/0.1222, allocations: 63.84 kB / 391.8 MB, free: 2.359 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000324/0.1225, allocations: 288.2 kB / 392.1 MB, free: 2.062 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.674e-05/0.1226, allocations: 45.69 kB / 392.1 MB, free: 2.012 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001333/0.1227, allocations: 189.5 kB / 392.3 MB, free: 1.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000187/0.1229, allocations: 226.1 kB / 392.5 MB, free: 1.598 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000178/0.1231, allocations: 106.3 kB / 392.6 MB, free: 1.488 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.1233, allocations: 346.8 kB / 393 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004935/0.1237, allocations: 233.2 kB / 393.2 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005201/0.1243, allocations: 268.8 kB / 393.5 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000884/0.1252, allocations: 398.1 kB / 393.9 MB, free: 264 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.1252, allocations: 0 / 393.9 MB, free: 264 kB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001696/0.1269, allocations: 0.7484 MB / 394.6 MB, free: 15.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.1269, allocations: 4 kB / 394.6 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.1269, allocations: 3.984 kB / 394.6 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008814/0.1278, allocations: 377.4 kB / 395 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003361/0.1281, allocations: 83.89 kB / 395.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001516/0.1296, allocations: 1.397 MB / 396.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005153/0.1301, allocations: 75.92 kB / 396.5 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.823e-05/0.1302, allocations: 23.94 kB / 396.6 MB, free: 13.48 MB / 366.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.0002276/0.1304, allocations: 178.5 kB / 396.7 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001079/0.1305, allocations: 47.66 kB / 396.8 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001402/0.1306, allocations: 59.69 kB / 396.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.1307, allocations: 4 kB / 396.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.1307, allocations: 4 kB / 396.8 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.1307, allocations: 0 / 396.8 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002788/0.1335, allocations: 1.27 MB / 398.1 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.1335, allocations: 0 / 398.1 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003742/0.1338, allocations: 79.89 kB / 398.2 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000786/0.1346, allocations: 353.6 kB / 398.5 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.114e-05/0.1347, allocations: 19.98 kB / 398.6 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001411/0.1361, allocations: 1.366 MB / 399.9 MB, free: 9.992 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1361, allocations: 0 / 399.9 MB, free: 9.992 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002066/0.1381, allocations: 1.049 MB / 401 MB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002135/0.1384, allocations: 95.69 kB / 401.1 MB, free: 8.812 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.514e-05/0.1384, allocations: 20 kB / 401.1 MB, free: 8.793 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004456/0.1389, allocations: 64.05 kB / 401.1 MB, free: 8.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002452/0.1391, allocations: 104.2 kB / 401.2 MB, free: 8.629 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.352e-05/0.1392, allocations: 27.97 kB / 401.3 MB, free: 8.602 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002183/0.1394, allocations: 203.1 kB / 401.5 MB, free: 8.406 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1394, allocations: 0 / 401.5 MB, free: 8.406 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004519/0.1399, allocations: 127.9 kB / 401.6 MB, free: 8.281 MB / 366.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.00149/0.1413, allocations: 404.8 kB / 402 MB, free: 8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001289/0.1426, allocations: 0.542 MB / 402.5 MB, free: 7.453 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.1426, allocations: 4 kB / 402.5 MB, free: 7.449 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007318/0.1434, allocations: 326.6 kB / 402.9 MB, free: 7.133 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006051/0.144, allocations: 84.42 kB / 402.9 MB, free: 7.055 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003833/0.1478, allocations: 1.471 MB / 404.4 MB, free: 5.543 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002407/0.1481, allocations: 233.3 kB / 404.6 MB, free: 5.289 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001526/0.1482, allocations: 43.28 kB / 404.7 MB, free: 5.242 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001132/0.1483, allocations: 44.48 kB / 404.7 MB, free: 5.199 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1483, allocations: 0 / 404.7 MB, free: 5.199 MB / 366.1 MB Notification: Performance of Templates: time 0.01569/0.164, allocations: 8.677 MB / 413.4 MB, free: 12.6 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.715397074003704]