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.001691/0.001691, allocations: 108.4 kB / 18.35 MB, free: 4.723 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.001705/0.001705, allocations: 182.9 kB / 19.29 MB, free: 3.797 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.335/1.335, allocations: 205.1 MB / 225.2 MB, free: 12.22 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.001231/0.001231, allocations: 55.92 kB / 282.1 MB, free: 2.449 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09742/0.09866, allocations: 46.63 MB / 328.7 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004037/0.1027, allocations: 3.016 MB / 331.7 MB, free: 0.707 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001643/0.1044, allocations: 0.9748 MB / 332.7 MB, free: 15.72 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000158/0.1046, allocations: 8 kB / 332.7 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002382/0.1048, allocations: 67.31 kB / 332.8 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002338/0.1051, allocations: 134.8 kB / 332.9 MB, free: 15.51 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005049/0.1056, allocations: 219.6 kB / 333.1 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005471/0.1062, allocations: 0.6357 MB / 333.8 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002183/0.1064, allocations: 128.2 kB / 333.9 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002904/0.1067, allocations: 279 kB / 334.2 MB, free: 14.26 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003236/0.107, allocations: 298.9 kB / 334.5 MB, free: 13.97 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.017e-05/0.1071, allocations: 48 kB / 334.5 MB, free: 13.92 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001718/0.1073, allocations: 95.95 kB / 334.6 MB, free: 13.83 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001345/0.1074, allocations: 131.5 kB / 334.7 MB, free: 13.7 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002152/0.1076, allocations: 246.8 kB / 335 MB, free: 13.46 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005515/0.1082, allocations: 0.5918 MB / 335.6 MB, free: 12.86 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.1082, allocations: 0 / 335.6 MB, free: 12.86 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1082, allocations: 4 kB / 335.6 MB, free: 12.86 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.277e-06/0.1082, allocations: 0 / 335.6 MB, free: 12.86 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.001394/0.1096, allocations: 0.7834 MB / 336.4 MB, free: 12.02 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.1097, allocations: 8.031 kB / 336.4 MB, free: 12.02 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.1098, allocations: 48.38 kB / 336.4 MB, free: 11.97 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004802/0.1103, allocations: 331.3 kB / 336.7 MB, free: 11.61 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.134e-05/0.1103, allocations: 33.31 kB / 336.8 MB, free: 11.57 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.383e-05/0.1104, allocations: 40.38 kB / 336.8 MB, free: 11.54 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008235/0.1112, allocations: 478.6 kB / 337.3 MB, free: 11.06 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.326e-05/0.1113, allocations: 7.906 kB / 337.3 MB, free: 11.05 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.553e-05/0.1113, allocations: 16 kB / 337.3 MB, free: 11.04 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.1113, allocations: 8 kB / 337.3 MB, free: 11.03 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009053/0.1122, allocations: 479.7 kB / 337.8 MB, free: 10.56 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001917/0.1142, allocations: 1.118 MB / 338.9 MB, free: 9.387 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007478/0.1149, allocations: 388.3 kB / 339.3 MB, free: 9 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004862/0.1154, allocations: 282 kB / 339.5 MB, free: 8.719 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.574e-05/0.1155, allocations: 4.438 kB / 339.5 MB, free: 8.715 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.582e-05/0.1155, allocations: 39 kB / 339.6 MB, free: 8.668 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 1.673e-06/0.1155, allocations: 0 / 339.6 MB, free: 8.668 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.004657/0.1202, allocations: 2.342 MB / 341.9 MB, free: 6.199 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.988e-05/0.1202, allocations: 55.97 kB / 342 MB, free: 6.133 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002771/0.1205, allocations: 283.3 kB / 342.3 MB, free: 5.852 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.254e-05/0.1206, allocations: 49.69 kB / 342.3 MB, free: 5.797 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.1207, allocations: 185.3 kB / 342.5 MB, free: 5.613 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001501/0.1209, allocations: 193.3 kB / 342.7 MB, free: 5.422 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001972/0.1211, allocations: 110.2 kB / 342.8 MB, free: 5.305 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.1212, allocations: 350.8 kB / 343.1 MB, free: 4.953 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004447/0.1217, allocations: 237.2 kB / 343.4 MB, free: 4.723 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004836/0.1222, allocations: 292.8 kB / 343.6 MB, free: 4.43 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000736/0.1229, allocations: 422.3 kB / 344.1 MB, free: 4.008 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1229, allocations: 0 / 344.1 MB, free: 4.008 MB / 286.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001552/0.1245, allocations: 0.7872 MB / 344.8 MB, free: 3.207 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.1245, allocations: 4 kB / 344.9 MB, free: 3.203 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.1245, allocations: 3.984 kB / 344.9 MB, free: 3.199 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008914/0.1254, allocations: 0.5052 MB / 345.4 MB, free: 2.688 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000333/0.1257, allocations: 87.89 kB / 345.4 MB, free: 2.602 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00133/0.1271, allocations: 1.405 MB / 346.9 MB, free: 1.145 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004549/0.1276, allocations: 76.06 kB / 346.9 MB, free: 1.07 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.806e-05/0.1276, allocations: 16 kB / 346.9 MB, free: 1.055 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.0002341/0.1279, allocations: 181.5 kB / 347.1 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.405e-05/0.128, allocations: 43.53 kB / 347.2 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001388/0.1281, allocations: 59.73 kB / 347.2 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.1281, allocations: 8 kB / 347.2 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.1281, allocations: 0 / 347.2 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.1281, allocations: 3.984 kB / 347.2 MB, free: 0.75 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002727/0.1309, allocations: 1.448 MB / 348.7 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.1309, allocations: 3.938 kB / 348.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003656/0.1313, allocations: 79.89 kB / 348.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007824/0.1321, allocations: 485.5 kB / 349.2 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.758e-05/0.1321, allocations: 20.06 kB / 349.3 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001212/0.1333, allocations: 1.374 MB / 350.6 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.1334, allocations: 4.031 kB / 350.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00196/0.1353, allocations: 1.089 MB / 351.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002314/0.1356, allocations: 168.6 kB / 351.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.809e-05/0.1357, allocations: 19.94 kB / 351.9 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003858/0.136, allocations: 59.92 kB / 352 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002763/0.1363, allocations: 100.3 kB / 352.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.367e-05/0.1364, allocations: 19.98 kB / 352.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002135/0.1366, allocations: 205.9 kB / 352.3 MB, free: 11.49 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1366, allocations: 3.938 kB / 352.3 MB, free: 11.49 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000483/0.1371, allocations: 136 kB / 352.4 MB, free: 11.36 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.0002382/0.1373, allocations: 135.2 kB / 352.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001229/0.1386, allocations: 0.5966 MB / 353.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.1386, allocations: 4 kB / 353.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006907/0.1393, allocations: 334.3 kB / 353.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005754/0.1399, allocations: 81.27 kB / 353.6 MB, free: 10.22 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003438/0.1433, allocations: 1.436 MB / 355 MB, free: 8.742 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003964/0.1437, allocations: 0.8202 MB / 355.8 MB, free: 7.891 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001481/0.1439, allocations: 43.27 kB / 355.9 MB, free: 7.848 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001019/0.144, allocations: 39.42 kB / 355.9 MB, free: 7.812 MB / 302.1 MB Notification: Performance of SimCode: time 6.01e-07/0.144, allocations: 0 / 355.9 MB, free: 7.812 MB / 302.1 MB Notification: Performance of Templates: time 0.0148/0.1588, allocations: 9.944 MB / 365.8 MB, free: 13.86 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 -s gbode -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