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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009318/0.0009319, allocations: 97.91 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001371/0.001372, allocations: 201.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 227.7 MB / 247.5 MB, free: 11.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002468/0.0002471, allocations: 11.98 kB / 308.4 MB, free: 0.7734 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09929/0.09956, allocations: 51.52 MB / 359.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003819/0.1034, allocations: 2.829 MB / 362.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002195/0.1057, allocations: 1.103 MB / 363.8 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003291/0.106, allocations: 7.938 kB / 363.8 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003796/0.1064, allocations: 63.55 kB / 363.9 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005996/0.107, allocations: 155 kB / 364.1 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005124/0.1076, allocations: 183.7 kB / 364.2 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000832/0.1084, allocations: 0.6317 MB / 364.9 MB, free: 8.258 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002686/0.1087, allocations: 119.7 kB / 365 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005517/0.1092, allocations: 258.9 kB / 365.2 MB, free: 7.879 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005022/0.1098, allocations: 302.8 kB / 365.5 MB, free: 7.582 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.731e-05/0.1099, allocations: 28 kB / 365.6 MB, free: 7.555 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002627/0.1101, allocations: 79.98 kB / 365.6 MB, free: 7.477 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001803/0.1103, allocations: 115.5 kB / 365.8 MB, free: 7.363 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003022/0.1106, allocations: 260.4 kB / 366 MB, free: 7.102 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000537/0.1112, allocations: 467 kB / 366.5 MB, free: 6.645 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.1112, allocations: 0 / 366.5 MB, free: 6.645 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1112, allocations: 4 kB / 366.5 MB, free: 6.641 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.3e-05/0.1112, allocations: 0 / 366.5 MB, free: 6.641 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001593/0.1128, allocations: 0.764 MB / 367.2 MB, free: 5.828 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.29e-05/0.1129, allocations: 12.03 kB / 367.2 MB, free: 5.816 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002654/0.1132, allocations: 64.36 kB / 367.3 MB, free: 5.754 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005107/0.1137, allocations: 339.2 kB / 367.6 MB, free: 5.387 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.889e-05/0.1138, allocations: 33.38 kB / 367.7 MB, free: 5.352 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.412e-05/0.1139, allocations: 44.36 kB / 367.7 MB, free: 5.309 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009654/0.1148, allocations: 478.6 kB / 368.2 MB, free: 4.836 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.775e-05/0.1149, allocations: 19.89 kB / 368.2 MB, free: 4.816 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.002e-05/0.1149, allocations: 16 kB / 368.2 MB, free: 4.801 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.1149, allocations: 8 kB / 368.2 MB, free: 4.793 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009887/0.1159, allocations: 475.7 kB / 368.7 MB, free: 4.332 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002271/0.1182, allocations: 1.168 MB / 369.9 MB, free: 3.102 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000911/0.1191, allocations: 444.1 kB / 370.3 MB, free: 2.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005445/0.1197, allocations: 274.4 kB / 370.6 MB, free: 2.391 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.083e-05/0.1198, allocations: 4.562 kB / 370.6 MB, free: 2.387 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.683e-05/0.1198, allocations: 43.12 kB / 370.6 MB, free: 2.336 MB / 302.1 MB Notification: Performance of pre-optimization done (n=55): time 2.265e-06/0.1198, allocations: 0 / 370.6 MB, free: 2.336 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.1831/0.3029, allocations: 2.433 MB / 373 MB, free: 19.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.838e-05/0.303, allocations: 58.89 kB / 373.1 MB, free: 19.36 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004806/0.3035, allocations: 303.7 kB / 373.4 MB, free: 19.25 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001056/0.3036, allocations: 45.19 kB / 373.4 MB, free: 19.22 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000137/0.3037, allocations: 185.6 kB / 373.6 MB, free: 19.14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002416/0.304, allocations: 216.7 kB / 373.8 MB, free: 19.06 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/0.3041, allocations: 54.75 kB / 373.9 MB, free: 19.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.09e-05/0.3042, allocations: 350.6 kB / 374.2 MB, free: 18.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005557/0.3047, allocations: 233.1 kB / 374.5 MB, free: 18.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006052/0.3054, allocations: 284.9 kB / 374.7 MB, free: 18.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009399/0.3063, allocations: 407.9 kB / 375.1 MB, free: 18.69 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.3063, allocations: 0 / 375.1 MB, free: 18.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001913/0.3082, allocations: 0.7691 MB / 375.9 MB, free: 18.6 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.3083, allocations: 5.656 kB / 375.9 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.3083, allocations: 0.6094 kB / 375.9 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001023/0.3093, allocations: 384.2 kB / 376.3 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003432/0.3097, allocations: 87.19 kB / 376.4 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001152/0.3108, allocations: 1.402 MB / 377.8 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005952/0.3114, allocations: 100.6 kB / 377.9 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.999e-05/0.3115, allocations: 24.23 kB / 377.9 MB, free: 17.28 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 (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.0002408/0.3118, allocations: 180.6 kB / 378.1 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.3119, allocations: 46.52 kB / 378.1 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001455/0.312, allocations: 60.39 kB / 378.2 MB, free: 17.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.312, allocations: 5.5 kB / 378.2 MB, free: 17.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/0.3121, allocations: 0 / 378.2 MB, free: 17.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.708e-06/0.3121, allocations: 4.562 kB / 378.2 MB, free: 17.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002934/0.315, allocations: 1.486 MB / 379.7 MB, free: 16.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.315, allocations: 1.688 kB / 379.7 MB, free: 16.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003807/0.3154, allocations: 87.23 kB / 379.8 MB, free: 16.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007783/0.3162, allocations: 349.4 kB / 380.1 MB, free: 16.15 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.593e-05/0.3163, allocations: 20.22 kB / 380.1 MB, free: 16.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001086/0.3174, allocations: 1.375 MB / 381.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.3174, allocations: 6.219 kB / 381.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002009/0.3194, allocations: 1.066 MB / 382.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002372/0.3196, allocations: 181.3 kB / 382.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001112/0.3198, allocations: 21.56 kB / 382.8 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004955/0.3203, allocations: 76.2 kB / 382.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002419/0.3205, allocations: 101.3 kB / 382.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.069e-05/0.3206, allocations: 26.92 kB / 383 MB, free: 14.21 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002374/0.3208, allocations: 217.6 kB / 383.2 MB, free: 14.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3208, allocations: 0 / 383.2 MB, free: 14.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005515/0.3214, allocations: 128.1 kB / 383.3 MB, free: 14.07 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,8), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008598/0.3223, allocations: 388.3 kB / 383.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001412/0.3237, allocations: 0.5886 MB / 384.3 MB, free: 13.69 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.3237, allocations: 2.531 kB / 384.3 MB, free: 13.69 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007549/0.3245, allocations: 346.7 kB / 384.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007101/0.3252, allocations: 98.45 kB / 384.7 MB, free: 13.53 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004059/0.3293, allocations: 1.899 MB / 386.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003104/0.3296, allocations: 0.8277 MB / 387.4 MB, free: 11.78 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001365/0.3297, allocations: 41.41 kB / 387.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3297, allocations: 0 / 387.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of Templates: time 0.01408/0.3438, allocations: 9.005 MB / 396.5 MB, free: 8.047 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.makefile (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 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches