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.0008398/0.0008398, allocations: 96.97 kB / 16.96 MB, free: 5.996 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.0008261/0.0008261, allocations: 179.3 kB / 17.84 MB, free: 5.633 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.414/1.414, allocations: 205.4 MB / 224 MB, free: 13.16 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.0004631/0.0004632, allocations: 12 kB / 280.8 MB, free: 3.75 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09309/0.09356, allocations: 47.59 MB / 328.4 MB, free: 4.09 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003194/0.09681, allocations: 2.573 MB / 330.9 MB, free: 1.5 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001771/0.09861, allocations: 0.9321 MB / 331.9 MB, free: 0.5586 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001623/0.09879, allocations: 4 kB / 331.9 MB, free: 0.5547 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002058/0.09901, allocations: 51.62 kB / 331.9 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001925/0.09921, allocations: 115.1 kB / 332 MB, free: 400 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004188/0.09964, allocations: 175.6 kB / 332.2 MB, free: 224 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005264/0.1002, allocations: 0.5538 MB / 332.8 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002047/0.1004, allocations: 114.2 kB / 332.9 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002997/0.1007, allocations: 239.1 kB / 333.1 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003141/0.101, allocations: 259 kB / 333.3 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.455e-05/0.1011, allocations: 28 kB / 333.4 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001635/0.1013, allocations: 75.78 kB / 333.4 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001113/0.1014, allocations: 91.64 kB / 333.5 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001062/0.1015, allocations: 101.5 kB / 333.6 MB, free: 14.76 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004188/0.1019, allocations: 423.1 kB / 334.1 MB, free: 14.34 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.1019, allocations: 0 / 334.1 MB, free: 14.34 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1019, allocations: 0 / 334.1 MB, free: 14.34 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.665e-06/0.1019, allocations: 0 / 334.1 MB, free: 14.34 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.001256/0.1032, allocations: 0.7289 MB / 334.8 MB, free: 13.57 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.1033, allocations: 8.031 kB / 334.8 MB, free: 13.56 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.026e-05/0.1034, allocations: 51.34 kB / 334.8 MB, free: 13.51 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003681/0.1037, allocations: 310.2 kB / 335.1 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.018e-05/0.1038, allocations: 37 kB / 335.2 MB, free: 13.12 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.357e-05/0.1039, allocations: 43.91 kB / 335.2 MB, free: 13.08 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008171/0.1047, allocations: 478.2 kB / 335.7 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.891e-05/0.1047, allocations: 0 / 335.7 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.186e-05/0.1048, allocations: 16 kB / 335.7 MB, free: 12.59 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/0.1048, allocations: 12 kB / 335.7 MB, free: 12.58 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008996/0.1057, allocations: 495.7 kB / 336.2 MB, free: 12.1 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001874/0.1076, allocations: 1.149 MB / 337.3 MB, free: 10.89 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007591/0.1083, allocations: 400.8 kB / 337.7 MB, free: 10.5 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004994/0.1089, allocations: 278 kB / 338 MB, free: 10.22 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.319e-05/0.1089, allocations: 4.438 kB / 338 MB, free: 10.21 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.539e-05/0.1089, allocations: 42.95 kB / 338.1 MB, free: 10.16 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 1.753e-06/0.109, allocations: 0 / 338.1 MB, free: 10.16 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.004847/0.1138, allocations: 2.44 MB / 340.5 MB, free: 7.598 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.041e-05/0.1139, allocations: 55.97 kB / 340.6 MB, free: 7.531 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002814/0.1142, allocations: 283.3 kB / 340.8 MB, free: 7.246 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.006e-05/0.1142, allocations: 45.69 kB / 340.9 MB, free: 7.195 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001431/0.1144, allocations: 185.2 kB / 341.1 MB, free: 7.012 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001511/0.1145, allocations: 185.4 kB / 341.2 MB, free: 6.828 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.409e-05/0.1146, allocations: 12 kB / 341.2 MB, free: 6.816 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.1147, allocations: 350.8 kB / 341.6 MB, free: 6.465 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004595/0.1152, allocations: 245.2 kB / 341.8 MB, free: 6.227 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004908/0.1157, allocations: 296.8 kB / 342.1 MB, free: 5.93 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004001/0.1161, allocations: 207.2 kB / 342.3 MB, free: 5.73 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.1161, allocations: 3.938 kB / 342.3 MB, free: 5.727 MB / 286.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001381/0.1175, allocations: 0.7561 MB / 343.1 MB, free: 4.957 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.1175, allocations: 4 kB / 343.1 MB, free: 4.953 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.1176, allocations: 4 kB / 343.1 MB, free: 4.949 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009613/0.1185, allocations: 0.5052 MB / 343.6 MB, free: 4.438 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003321/0.1189, allocations: 87.89 kB / 343.7 MB, free: 4.352 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001291/0.1202, allocations: 1.405 MB / 345.1 MB, free: 2.895 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004773/0.1207, allocations: 108.1 kB / 345.2 MB, free: 2.789 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.569e-05/0.1207, allocations: 20 kB / 345.2 MB, free: 2.77 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 (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 (57): * Single equations (assignments): 55 * 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 8,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002401/0.121, allocations: 177.5 kB / 345.4 MB, free: 2.586 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.539e-05/0.1211, allocations: 39.53 kB / 345.4 MB, free: 2.547 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001421/0.1212, allocations: 63.73 kB / 345.5 MB, free: 2.48 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.1212, allocations: 4 kB / 345.5 MB, free: 2.477 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.1213, allocations: 0 / 345.5 MB, free: 2.477 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.1213, allocations: 4 kB / 345.5 MB, free: 2.473 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002804/0.1241, allocations: 1.489 MB / 347 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.1241, allocations: 0 / 347 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003521/0.1244, allocations: 87.89 kB / 347.1 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007583/0.1252, allocations: 481.6 kB / 347.5 MB, free: 344 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.008e-05/0.1253, allocations: 23.98 kB / 347.6 MB, free: 320 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001198/0.1265, allocations: 1.378 MB / 348.9 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.1265, allocations: 0 / 348.9 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001999/0.1285, allocations: 1.104 MB / 350 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002617/0.1288, allocations: 164.6 kB / 350.2 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.1289, allocations: 23.95 kB / 350.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004138/0.1293, allocations: 79.92 kB / 350.3 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002206/0.1295, allocations: 116.2 kB / 350.4 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.287e-05/0.1296, allocations: 23.92 kB / 350.4 MB, free: 13.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002198/0.1298, allocations: 201.9 kB / 350.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1298, allocations: 0 / 350.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005499/0.1304, allocations: 132 kB / 350.8 MB, free: 13 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 (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 6,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002731/0.1307, allocations: 147.2 kB / 350.9 MB, free: 12.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001413/0.1321, allocations: 0.5966 MB / 351.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1321, allocations: 0 / 351.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007061/0.1328, allocations: 350.6 kB / 351.8 MB, free: 11.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005815/0.1334, allocations: 72.61 kB / 351.9 MB, free: 11.84 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003716/0.1371, allocations: 1.761 MB / 353.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004369/0.1376, allocations: 0.8244 MB / 354.5 MB, free: 9.191 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001783/0.1378, allocations: 43.2 kB / 354.5 MB, free: 9.145 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.345e-05/0.1379, allocations: 31.42 kB / 354.6 MB, free: 9.113 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1379, allocations: 0 / 354.6 MB, free: 9.113 MB / 302.1 MB Notification: Performance of Templates: time 0.01613/0.154, allocations: 8.976 MB / 363.6 MB, free: 136 kB / 302.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches