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.00122/0.00122, allocations: 110 kB / 18.25 MB, free: 4.895 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.001309/0.001309, allocations: 199.5 kB / 19.18 MB, free: 3.973 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.402/1.402, allocations: 205.1 MB / 225 MB, free: 12.29 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.001407/0.001408, allocations: 51.92 kB / 281.3 MB, free: 3.172 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09392/0.09534, allocations: 46.62 MB / 327.9 MB, free: 4.473 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004644/0.1, allocations: 3.017 MB / 331 MB, free: 1.43 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002093/0.1022, allocations: 0.9862 MB / 331.9 MB, free: 444 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004402/0.1026, allocations: 7.938 kB / 332 MB, free: 436 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003675/0.1031, allocations: 63.31 kB / 332 MB, free: 372 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004534/0.1036, allocations: 138.9 kB / 332.2 MB, free: 232 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006594/0.1042, allocations: 215.6 kB / 332.4 MB, free: 16 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007856/0.105, allocations: 0.6318 MB / 333 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002705/0.1053, allocations: 128 kB / 333.1 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000461/0.1058, allocations: 279.1 kB / 333.4 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004366/0.1062, allocations: 306.8 kB / 333.7 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001199/0.1064, allocations: 48 kB / 333.7 MB, free: 14.63 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002285/0.1066, allocations: 95.95 kB / 333.8 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001472/0.1068, allocations: 119.6 kB / 333.9 MB, free: 14.42 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002623/0.107, allocations: 250.7 kB / 334.2 MB, free: 14.18 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006848/0.1077, allocations: 0.5804 MB / 334.8 MB, free: 13.59 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.1077, allocations: 0 / 334.8 MB, free: 13.59 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1078, allocations: 0 / 334.8 MB, free: 13.59 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.231e-05/0.1078, allocations: 0 / 334.8 MB, free: 13.59 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.001641/0.1094, allocations: 0.7951 MB / 335.6 MB, free: 12.75 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.1095, allocations: 8.031 kB / 335.6 MB, free: 12.74 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001376/0.1096, allocations: 52.38 kB / 335.6 MB, free: 12.69 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000422/0.1101, allocations: 327.3 kB / 335.9 MB, free: 12.33 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.439e-05/0.1101, allocations: 29.38 kB / 336 MB, free: 12.3 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.042e-05/0.1102, allocations: 40.38 kB / 336 MB, free: 12.26 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008806/0.1111, allocations: 474.6 kB / 336.5 MB, free: 11.79 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.768e-05/0.1111, allocations: 11.91 kB / 336.5 MB, free: 11.78 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.954e-05/0.1112, allocations: 16 kB / 336.5 MB, free: 11.77 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-06/0.1112, allocations: 8 kB / 336.5 MB, free: 11.76 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009287/0.1121, allocations: 483.6 kB / 337 MB, free: 11.28 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002106/0.1142, allocations: 1.114 MB / 338.1 MB, free: 10.11 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008182/0.1151, allocations: 388.4 kB / 338.5 MB, free: 9.727 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005498/0.1156, allocations: 278 kB / 338.8 MB, free: 9.449 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.446e-05/0.1157, allocations: 8.438 kB / 338.8 MB, free: 9.441 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.901e-05/0.1157, allocations: 39 kB / 338.8 MB, free: 9.395 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 2.825e-06/0.1157, allocations: 0 / 338.8 MB, free: 9.395 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.005233/0.121, allocations: 2.339 MB / 341.1 MB, free: 6.93 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.062e-05/0.1211, allocations: 59.91 kB / 341.2 MB, free: 6.859 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003251/0.1214, allocations: 283.3 kB / 341.5 MB, free: 6.578 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.744e-05/0.1215, allocations: 41.7 kB / 341.5 MB, free: 6.531 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001369/0.1216, allocations: 189.3 kB / 341.7 MB, free: 6.344 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001746/0.1218, allocations: 197.3 kB / 341.9 MB, free: 6.148 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002002/0.122, allocations: 110.2 kB / 342 MB, free: 6.031 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.1221, allocations: 346.8 kB / 342.3 MB, free: 5.684 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004787/0.1226, allocations: 253.1 kB / 342.6 MB, free: 5.438 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005182/0.1232, allocations: 288.8 kB / 342.9 MB, free: 5.148 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007776/0.124, allocations: 410.4 kB / 343.3 MB, free: 4.738 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.124, allocations: 0 / 343.3 MB, free: 4.738 MB / 286.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00174/0.1257, allocations: 0.7911 MB / 344.1 MB, free: 3.934 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.1257, allocations: 4 kB / 344.1 MB, free: 3.93 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.026e-06/0.1258, allocations: 0 / 344.1 MB, free: 3.93 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009364/0.1267, allocations: 0.5052 MB / 344.6 MB, free: 3.418 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003435/0.1271, allocations: 87.89 kB / 344.7 MB, free: 3.332 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001307/0.1284, allocations: 1.397 MB / 346 MB, free: 1.883 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005306/0.1289, allocations: 80.03 kB / 346.1 MB, free: 1.805 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.048e-05/0.129, allocations: 24 kB / 346.2 MB, free: 1.781 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.0002549/0.1292, allocations: 173.5 kB / 346.3 MB, free: 1.602 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.1294, allocations: 43.53 kB / 346.4 MB, free: 1.559 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001375/0.1295, allocations: 59.73 kB / 346.4 MB, free: 1.496 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.1295, allocations: 4 kB / 346.4 MB, free: 1.492 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.1295, allocations: 0 / 346.4 MB, free: 1.492 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.1295, allocations: 0 / 346.4 MB, free: 1.492 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002907/0.1324, allocations: 1.465 MB / 347.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.1325, allocations: 3.938 kB / 347.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003779/0.1329, allocations: 83.89 kB / 348 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008054/0.1337, allocations: 485.5 kB / 348.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.13e-05/0.1337, allocations: 15.98 kB / 348.5 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001221/0.135, allocations: 1.374 MB / 349.8 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.591e-06/0.135, allocations: 4.031 kB / 349.8 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002118/0.1371, allocations: 1.092 MB / 350.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002379/0.1374, allocations: 164.7 kB / 351.1 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000108/0.1375, allocations: 27.88 kB / 351.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004478/0.1379, allocations: 63.92 kB / 351.2 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002041/0.1381, allocations: 92.23 kB / 351.3 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.549e-05/0.1382, allocations: 23.97 kB / 351.3 MB, free: 12.42 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002085/0.1384, allocations: 205.9 kB / 351.5 MB, free: 12.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1384, allocations: 0 / 351.5 MB, free: 12.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005269/0.139, allocations: 132 kB / 351.6 MB, free: 12.09 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.0002902/0.1393, allocations: 143.2 kB / 351.8 MB, free: 11.94 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00146/0.1407, allocations: 0.6044 MB / 352.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.1407, allocations: 0 / 352.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006998/0.1414, allocations: 338.4 kB / 352.7 MB, free: 11.01 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006657/0.1421, allocations: 80.88 kB / 352.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003913/0.146, allocations: 1.484 MB / 354.3 MB, free: 9.402 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003921/0.1465, allocations: 0.8202 MB / 355.1 MB, free: 8.555 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000126/0.1466, allocations: 39.42 kB / 355.1 MB, free: 8.516 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1466, allocations: 4 kB / 355.1 MB, free: 8.512 MB / 302.1 MB Notification: Performance of Templates: time 0.01215/0.1588, allocations: 8.53 MB / 363.7 MB, free: 15.97 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 -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