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.0008561/0.0008562, allocations: 89.27 kB / 16.3 MB, free: 6.133 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.0009136/0.0009137, allocations: 184.8 kB / 17.2 MB, free: 6.016 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.255/1.255, allocations: 223.2 MB / 241.1 MB, free: 368 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004205/0.0004206, allocations: 4 kB / 300.7 MB, free: 6.484 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1073, allocations: 50.42 MB / 351.1 MB, free: 4.059 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003076/0.1104, allocations: 2.451 MB / 353.6 MB, free: 1.59 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001413/0.1119, allocations: 0.9237 MB / 354.5 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001367/0.112, allocations: 4 kB / 354.5 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001487/0.1122, allocations: 47.62 kB / 354.6 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002409/0.1124, allocations: 147.6 kB / 354.7 MB, free: 476 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000403/0.1128, allocations: 163.7 kB / 354.9 MB, free: 312 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004598/0.1133, allocations: 396.3 kB / 355.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001976/0.1135, allocations: 102.2 kB / 355.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002858/0.1138, allocations: 243.1 kB / 355.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003039/0.1141, allocations: 267 kB / 355.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.517e-05/0.1142, allocations: 31.94 kB / 355.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001415/0.1143, allocations: 63.95 kB / 355.9 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001087/0.1145, allocations: 91.7 kB / 356 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.689e-05/0.1146, allocations: 97.45 kB / 356.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003652/0.1149, allocations: 423.1 kB / 356.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.1149, allocations: 4 kB / 356.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.093e-06/0.1149, allocations: 0 / 356.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.642e-06/0.115, allocations: 0 / 356.5 MB, free: 14.61 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.001317/0.1163, allocations: 0.7289 MB / 357.3 MB, free: 13.83 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.1163, allocations: 8.031 kB / 357.3 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.728e-05/0.1164, allocations: 47.44 kB / 357.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003634/0.1168, allocations: 306.2 kB / 357.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.378e-05/0.1168, allocations: 37 kB / 357.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.63e-05/0.1169, allocations: 43.91 kB / 357.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007798/0.1177, allocations: 474.2 kB / 358.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.792e-05/0.1177, allocations: 0 / 358.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.916e-05/0.1178, allocations: 20 kB / 358.2 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.421e-05/0.1178, allocations: 11.95 kB / 358.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008748/0.1187, allocations: 491.7 kB / 358.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001935/0.1206, allocations: 1.16 MB / 359.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007486/0.1214, allocations: 397.8 kB / 360.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.624e-05/0.1214, allocations: 4.438 kB / 360.2 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.619e-05/0.1215, allocations: 43 kB / 360.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.763e-06/0.1215, allocations: 0 / 360.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.004797/0.1263, allocations: 2.418 MB / 362.7 MB, free: 8.164 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.847e-05/0.1263, allocations: 55.97 kB / 362.8 MB, free: 8.098 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002721/0.1266, allocations: 291.2 kB / 363 MB, free: 7.805 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.255e-05/0.1267, allocations: 41.7 kB / 363.1 MB, free: 7.758 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/0.1268, allocations: 181.3 kB / 363.3 MB, free: 7.578 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001417/0.1269, allocations: 201.3 kB / 363.4 MB, free: 7.379 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.311e-05/0.127, allocations: 12 kB / 363.5 MB, free: 7.367 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.1271, allocations: 346.8 kB / 363.8 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004465/0.1275, allocations: 241.2 kB / 364 MB, free: 6.785 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004639/0.128, allocations: 300.8 kB / 364.3 MB, free: 6.488 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000376/0.1284, allocations: 211.1 kB / 364.5 MB, free: 6.281 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.1284, allocations: 0 / 364.5 MB, free: 6.281 MB / 302.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001281/0.1297, allocations: 0.7561 MB / 365.3 MB, free: 5.512 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.1297, allocations: 7.984 kB / 365.3 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.1297, allocations: 0 / 365.3 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008179/0.1306, allocations: 0.4935 MB / 365.8 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003368/0.1309, allocations: 99.78 kB / 365.9 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001118/0.132, allocations: 1.39 MB / 367.3 MB, free: 3.465 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004959/0.1325, allocations: 104 kB / 367.4 MB, free: 3.363 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.299e-05/0.1326, allocations: 20 kB / 367.4 MB, free: 3.344 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 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001923/0.1328, allocations: 177.6 kB / 367.6 MB, free: 3.16 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.184e-05/0.1329, allocations: 43.52 kB / 367.6 MB, free: 3.117 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001229/0.133, allocations: 59.73 kB / 367.7 MB, free: 3.059 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.133, allocations: 4 kB / 367.7 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.133, allocations: 0 / 367.7 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.133, allocations: 4 kB / 367.7 MB, free: 3.051 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002554/0.1356, allocations: 1.47 MB / 369.2 MB, free: 1.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.1356, allocations: 0 / 369.2 MB, free: 1.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000374/0.136, allocations: 87.89 kB / 369.2 MB, free: 1.414 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007134/0.1367, allocations: 485.6 kB / 369.7 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.502e-05/0.1368, allocations: 27.97 kB / 369.7 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.162/0.2987, allocations: 1.362 MB / 371.1 MB, free: 24.65 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.2988, allocations: 2.219 kB / 371.1 MB, free: 24.65 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002177/0.301, allocations: 1.16 MB / 372.3 MB, free: 24.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002226/0.3012, allocations: 163.1 kB / 372.4 MB, free: 24.29 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.792e-05/0.3013, allocations: 26.34 kB / 372.4 MB, free: 24.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004492/0.3017, allocations: 81.58 kB / 372.5 MB, free: 24.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002458/0.302, allocations: 109.3 kB / 372.6 MB, free: 24.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-05/0.3021, allocations: 25.34 kB / 372.7 MB, free: 24.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001817/0.3022, allocations: 200.5 kB / 372.9 MB, free: 24.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3023, allocations: 5.172 kB / 372.9 MB, free: 24.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004872/0.3027, allocations: 135.3 kB / 373 MB, free: 24.21 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 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002301/0.303, allocations: 144.5 kB / 373.1 MB, free: 24.12 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001351/0.3043, allocations: 0.5991 MB / 373.7 MB, free: 24.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.3044, allocations: 1.844 kB / 373.7 MB, free: 24.11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007345/0.3051, allocations: 341.7 kB / 374.1 MB, free: 24.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004845/0.3056, allocations: 61.12 kB / 374.1 MB, free: 24.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003871/0.3095, allocations: 1.767 MB / 375.9 MB, free: 23.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003229/0.3098, allocations: 0.8309 MB / 376.7 MB, free: 22.62 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001864/0.31, allocations: 43.09 kB / 376.8 MB, free: 22.61 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.595e-05/0.3101, allocations: 31.52 kB / 376.8 MB, free: 22.6 MB / 302.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3101, allocations: 0 / 376.8 MB, free: 22.6 MB / 302.1 MB Notification: Performance of Templates: time 0.01431/0.3244, allocations: 8.915 MB / 385.7 MB, free: 19.8 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","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches