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.000802/0.0008019, allocations: 96.97 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008579/0.0008579, allocations: 201.6 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 227.7 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002313/0.0002313, allocations: 8 kB / 307.7 MB, free: 0.8242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09194/0.09218, allocations: 51.52 MB / 359.2 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.00351/0.09574, allocations: 2.837 MB / 362.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001997/0.09777, allocations: 1.103 MB / 363.2 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000161/0.09795, allocations: 7.938 kB / 363.2 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002859/0.09825, allocations: 63.55 kB / 363.2 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003541/0.09861, allocations: 155 kB / 363.4 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003624/0.09898, allocations: 183.7 kB / 363.6 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005436/0.09954, allocations: 0.6317 MB / 364.2 MB, free: 8.301 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002295/0.09978, allocations: 119.7 kB / 364.3 MB, free: 8.176 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003701/0.1002, allocations: 266.9 kB / 364.6 MB, free: 7.914 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004351/0.1006, allocations: 290.8 kB / 364.9 MB, free: 7.629 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.914e-05/0.1007, allocations: 32 kB / 364.9 MB, free: 7.598 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001748/0.1009, allocations: 83.92 kB / 365 MB, free: 7.516 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001507/0.101, allocations: 111.6 kB / 365.1 MB, free: 7.406 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002293/0.1013, allocations: 260.4 kB / 365.3 MB, free: 7.145 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000575/0.1018, allocations: 0.5958 MB / 365.9 MB, free: 6.547 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.1019, allocations: 0 / 365.9 MB, free: 6.547 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1019, allocations: 3.938 kB / 365.9 MB, free: 6.543 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.1019, allocations: 0 / 365.9 MB, free: 6.543 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.001382/0.1033, allocations: 0.7641 MB / 366.7 MB, free: 5.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.1033, allocations: 12.03 kB / 366.7 MB, free: 5.719 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002049/0.1035, allocations: 64.36 kB / 366.8 MB, free: 5.656 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004137/0.104, allocations: 343.1 kB / 367.1 MB, free: 5.285 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.118e-05/0.104, allocations: 33.36 kB / 367.2 MB, free: 5.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.461e-05/0.1041, allocations: 44.38 kB / 367.2 MB, free: 5.207 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009208/0.105, allocations: 474.6 kB / 367.7 MB, free: 4.738 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.629e-05/0.1051, allocations: 11.89 kB / 367.7 MB, free: 4.727 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.773e-05/0.1051, allocations: 12 kB / 367.7 MB, free: 4.715 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.194e-05/0.1051, allocations: 16 kB / 367.7 MB, free: 4.699 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009603/0.1061, allocations: 479.7 kB / 368.2 MB, free: 4.234 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002191/0.1083, allocations: 1.176 MB / 369.3 MB, free: 2.996 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008575/0.1092, allocations: 435.1 kB / 369.8 MB, free: 2.562 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005164/0.1097, allocations: 270.4 kB / 370 MB, free: 2.297 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.969e-05/0.1098, allocations: 12.5 kB / 370 MB, free: 2.285 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.331e-05/0.1098, allocations: 39.12 kB / 370.1 MB, free: 2.238 MB / 302.1 MB Notification: Performance of pre-optimization done (n=55): time 2.004e-06/0.1098, allocations: 4 kB / 370.1 MB, free: 2.234 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.1999/0.3097, allocations: 2.432 MB / 372.5 MB, free: 19.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.179e-05/0.3098, allocations: 58.06 kB / 372.6 MB, free: 19.33 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005298/0.3103, allocations: 303.8 kB / 372.9 MB, free: 19.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.778e-05/0.3104, allocations: 46.31 kB / 372.9 MB, free: 19.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/0.3106, allocations: 185.1 kB / 373.1 MB, free: 19.11 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00021/0.3108, allocations: 209 kB / 373.3 MB, free: 19.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.874e-05/0.3109, allocations: 56.47 kB / 373.4 MB, free: 19.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.311, allocations: 354.3 kB / 373.7 MB, free: 18.71 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005442/0.3116, allocations: 236.4 kB / 373.9 MB, free: 18.71 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005447/0.3121, allocations: 280 kB / 374.2 MB, free: 18.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009233/0.313, allocations: 406.5 kB / 374.6 MB, free: 18.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3131, allocations: 1.062 kB / 374.6 MB, free: 18.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001842/0.3149, allocations: 0.7741 MB / 375.4 MB, free: 18.56 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/0.3149, allocations: 5.125 kB / 375.4 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.936e-06/0.3149, allocations: 1.594 kB / 375.4 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008896/0.3158, allocations: 374 kB / 375.8 MB, free: 18.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003311/0.3162, allocations: 89.8 kB / 375.8 MB, free: 18.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001208/0.3174, allocations: 1.401 MB / 377.2 MB, free: 17.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005834/0.318, allocations: 100.8 kB / 377.3 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.07e-05/0.3181, allocations: 23 kB / 377.4 MB, free: 17.22 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.0002021/0.3183, allocations: 183.7 kB / 377.5 MB, free: 17.06 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.426e-05/0.3184, allocations: 45.66 kB / 377.6 MB, free: 17.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001371/0.3185, allocations: 59.48 kB / 377.6 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.263e-06/0.3185, allocations: 6.031 kB / 377.6 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/0.3185, allocations: 2 kB / 377.7 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.315e-06/0.3185, allocations: 3.328 kB / 377.7 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002853/0.3214, allocations: 1.486 MB / 379.1 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.3214, allocations: 1.219 kB / 379.1 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003683/0.3218, allocations: 96.86 kB / 379.2 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007571/0.3226, allocations: 344.7 kB / 379.6 MB, free: 16.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.032e-05/0.3226, allocations: 20.78 kB / 379.6 MB, free: 16.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00105/0.3237, allocations: 1.374 MB / 381 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.3237, allocations: 2.125 kB / 381 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001899/0.3256, allocations: 1.074 MB / 382 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001874/0.3258, allocations: 173.7 kB / 382.2 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.912e-05/0.3259, allocations: 21.39 kB / 382.2 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004921/0.3264, allocations: 81.42 kB / 382.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002452/0.3266, allocations: 96.53 kB / 382.4 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.987e-05/0.3267, allocations: 23.25 kB / 382.4 MB, free: 14.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002567/0.327, allocations: 225.6 kB / 382.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.327, allocations: 0 / 382.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005227/0.3275, allocations: 131 kB / 382.8 MB, free: 14.02 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.0008971/0.3284, allocations: 391.3 kB / 383.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001302/0.3297, allocations: 0.5876 MB / 383.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3297, allocations: 0 / 383.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007458/0.3305, allocations: 349.6 kB / 384.1 MB, free: 13.51 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006857/0.3312, allocations: 85.84 kB / 384.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004117/0.3353, allocations: 1.875 MB / 386 MB, free: 12.45 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002948/0.3356, allocations: 0.8307 MB / 386.9 MB, free: 11.74 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001934/0.3358, allocations: 38.98 kB / 386.9 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/0.3359, allocations: 39.89 kB / 387 MB, free: 11.72 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3359, allocations: 1.312 kB / 387 MB, free: 11.72 MB / 302.1 MB Notification: Performance of Templates: time 0.01497/0.3509, allocations: 9.302 MB / 396.3 MB, free: 7.996 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches