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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001333/0.001333, allocations: 107.2 kB / 20.44 MB, free: 1.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002275/0.002275, allocations: 215.4 kB / 23.73 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 230.5 MB / 257.4 MB, free: 7.75 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 59.89 kB / 377.7 MB, free: 2.805 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2451/0.247, allocations: 53.39 MB / 431.1 MB, free: 6.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004782/0.2518, allocations: 2.976 MB / 434.1 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002042/0.2539, allocations: 1.087 MB / 435.2 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001792/0.254, allocations: 7.938 kB / 435.2 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003316/0.2544, allocations: 87.23 kB / 435.3 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004029/0.2548, allocations: 182.7 kB / 435.5 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004295/0.2552, allocations: 211.7 kB / 435.7 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006968/0.2559, allocations: 0.6666 MB / 436.3 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002048/0.2561, allocations: 94.38 kB / 436.4 MB, free: 1.125 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004744/0.2566, allocations: 311 kB / 436.7 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004283/0.257, allocations: 290.8 kB / 437 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001101/0.2571, allocations: 48 kB / 437.1 MB, free: 500 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002691/0.2574, allocations: 112 kB / 437.2 MB, free: 388 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002171/0.2576, allocations: 143.5 kB / 437.3 MB, free: 244 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002705/0.2579, allocations: 219 kB / 437.5 MB, free: 24 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008128/0.2587, allocations: 0.6539 MB / 438.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2587, allocations: 4 kB / 438.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2587, allocations: 0 / 438.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.837e-06/0.2587, allocations: 3.938 kB / 438.2 MB, free: 15.36 MB / 350.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.001615/0.2603, allocations: 0.7698 MB / 439 MB, free: 14.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.2604, allocations: 11.98 kB / 439 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001496/0.2605, allocations: 91.66 kB / 439.1 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002224/0.2607, allocations: 68.55 kB / 439.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006221/0.2614, allocations: 282.2 kB / 439.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.206e-05/0.2614, allocations: 37.36 kB / 439.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.87e-05/0.2615, allocations: 44.33 kB / 439.5 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009312/0.2624, allocations: 486.4 kB / 440 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.884e-05/0.2624, allocations: 7.984 kB / 440 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.829e-05/0.2625, allocations: 20 kB / 440 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/0.2625, allocations: 8 kB / 440 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001035/0.2635, allocations: 463.7 kB / 440.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002137/0.2657, allocations: 1.021 MB / 441.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000891/0.2666, allocations: 408 kB / 441.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005468/0.2671, allocations: 242.2 kB / 442.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.137e-05/0.2672, allocations: 8.5 kB / 442.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.142e-05/0.2672, allocations: 39.06 kB / 442.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 4.739e-06/0.2672, allocations: 3.984 kB / 442.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.00531/0.2725, allocations: 2.022 MB / 444.2 MB, free: 9.191 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.949e-05/0.2726, allocations: 63.89 kB / 444.2 MB, free: 9.117 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003633/0.2729, allocations: 300.6 kB / 444.5 MB, free: 8.812 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.998e-05/0.273, allocations: 45.7 kB / 444.6 MB, free: 8.762 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001484/0.2732, allocations: 193.5 kB / 444.8 MB, free: 8.566 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001968/0.2734, allocations: 222.2 kB / 445 MB, free: 8.348 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001796/0.2735, allocations: 102.3 kB / 445.1 MB, free: 8.242 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.2737, allocations: 350.8 kB / 445.4 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000492/0.2742, allocations: 229.2 kB / 445.6 MB, free: 7.668 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005402/0.2747, allocations: 284.7 kB / 445.9 MB, free: 7.383 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008091/0.2755, allocations: 394.1 kB / 446.3 MB, free: 6.992 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.2756, allocations: 0 / 446.3 MB, free: 6.992 MB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001599/0.2772, allocations: 0.7406 MB / 447 MB, free: 6.238 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.2772, allocations: 4 kB / 447.1 MB, free: 6.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.2772, allocations: 0 / 447.1 MB, free: 6.234 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008834/0.2781, allocations: 385.3 kB / 447.4 MB, free: 5.852 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003233/0.2784, allocations: 83.89 kB / 447.5 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001468/0.2799, allocations: 1.397 MB / 448.9 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005078/0.2804, allocations: 79.88 kB / 449 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.425e-05/0.2804, allocations: 19.98 kB / 449 MB, free: 4.223 MB / 350.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.000241/0.2806, allocations: 175.1 kB / 449.2 MB, free: 4.043 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.2808, allocations: 47.72 kB / 449.2 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001298/0.2809, allocations: 64.52 kB / 449.3 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.2809, allocations: 4 kB / 449.3 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.2809, allocations: 3.984 kB / 449.3 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.2809, allocations: 7.922 kB / 449.3 MB, free: 3.918 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00277/0.2837, allocations: 1.328 MB / 450.6 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.2837, allocations: 0 / 450.6 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003605/0.284, allocations: 87.83 kB / 450.7 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007543/0.2848, allocations: 341.7 kB / 451 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.246e-05/0.2848, allocations: 23.97 kB / 451.1 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001356/0.2862, allocations: 1.366 MB / 452.4 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.7e-06/0.2862, allocations: 4.031 kB / 452.4 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002047/0.2883, allocations: 1.045 MB / 453.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002445/0.2885, allocations: 95.67 kB / 453.6 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.934e-05/0.2886, allocations: 20 kB / 453.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004424/0.289, allocations: 59.92 kB / 453.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002161/0.2893, allocations: 112.2 kB / 453.8 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.507e-05/0.2893, allocations: 24.11 kB / 453.8 MB, free: 15.26 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002406/0.2895, allocations: 219.1 kB / 454 MB, free: 15.04 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2895, allocations: 0 / 454 MB, free: 15.04 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004767/0.29, allocations: 131.9 kB / 454.1 MB, free: 14.91 MB / 366.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.00366/0.2937, allocations: 1.895 MB / 456 MB, free: 13.11 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001319/0.295, allocations: 0.546 MB / 456.6 MB, free: 12.56 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.295, allocations: 0 / 456.6 MB, free: 12.56 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007461/0.2957, allocations: 318.6 kB / 456.9 MB, free: 12.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006621/0.2964, allocations: 88.17 kB / 457 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00956/0.306, allocations: 5.016 MB / 462 MB, free: 7.008 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002403/0.3062, allocations: 237.3 kB / 462.2 MB, free: 6.746 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001855/0.3064, allocations: 35.41 kB / 462.3 MB, free: 6.711 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002378/0.3066, allocations: 151.4 kB / 462.4 MB, free: 6.562 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3066, allocations: 0 / 462.4 MB, free: 6.562 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.328/1.635, allocations: 13.74 MB / 476.1 MB, free: 8.926 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.48/16.11, allocations: 4.062 kB / 476.1 MB, free: 8.922 MB / 382.1 MB " [Timeout remaining time 644] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Friction_fmu --startTime=0 --stopTime=3 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Friction.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.873856777790934]