Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 123.4 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00175/0.00175, allocations: 208.2 kB / 20.75 MB, free: 2.336 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.407/1.407, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001579/0.001579, allocations: 47.92 kB / 373 MB, free: 10.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09282/0.0944, allocations: 53.33 MB / 426.3 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004832/0.09923, allocations: 3.197 MB / 429.5 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002116/0.1013, allocations: 1.13 MB / 430.6 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002793/0.1016, allocations: 7.938 kB / 430.6 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003606/0.102, allocations: 83.23 kB / 430.7 MB, free: 444 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004899/0.1025, allocations: 194.6 kB / 430.9 MB, free: 248 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004449/0.1029, allocations: 195.7 kB / 431.1 MB, free: 52 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1775/0.2804, allocations: 0.6637 MB / 431.8 MB, free: 7.582 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002404/0.2806, allocations: 95.84 kB / 431.9 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004851/0.2811, allocations: 306.8 kB / 432.2 MB, free: 7.535 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003518/0.2815, allocations: 322.4 kB / 432.5 MB, free: 7.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.081e-05/0.2815, allocations: 51.34 kB / 432.5 MB, free: 7.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002251/0.2818, allocations: 108.2 kB / 432.6 MB, free: 7.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001321/0.2819, allocations: 143 kB / 432.8 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001888/0.2821, allocations: 263.7 kB / 433 MB, free: 7.391 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006459/0.2827, allocations: 0.6476 MB / 433.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2827, allocations: 0 / 433.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2827, allocations: 0.5 kB / 433.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.688e-06/0.2828, allocations: 2.719 kB / 433.7 MB, free: 7.293 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.001453/0.2842, allocations: 0.8446 MB / 434.5 MB, free: 6.754 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.2842, allocations: 11.41 kB / 434.5 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001241/0.2844, allocations: 88.53 kB / 434.6 MB, free: 6.711 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002326/0.2846, allocations: 67.48 kB / 434.7 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005006/0.2851, allocations: 349 kB / 435 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.84e-05/0.2851, allocations: 33.77 kB / 435.1 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.557e-05/0.2852, allocations: 47.95 kB / 435.1 MB, free: 6.441 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009106/0.2861, allocations: 484 kB / 435.6 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.516e-05/0.2862, allocations: 5.922 kB / 435.6 MB, free: 6.391 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.853e-05/0.2862, allocations: 15.75 kB / 435.6 MB, free: 6.391 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.2862, allocations: 13.53 kB / 435.6 MB, free: 6.391 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001001/0.2872, allocations: 475.7 kB / 436.1 MB, free: 6.387 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002133/0.2894, allocations: 1.157 MB / 437.2 MB, free: 6.051 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008621/0.2902, allocations: 399.7 kB / 437.6 MB, free: 5.961 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004971/0.2907, allocations: 246.8 kB / 437.9 MB, free: 5.863 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.435e-05/0.2908, allocations: 8.078 kB / 437.9 MB, free: 5.863 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.694e-05/0.2908, allocations: 42.06 kB / 437.9 MB, free: 5.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 2.064e-06/0.2908, allocations: 0 / 437.9 MB, free: 5.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.005202/0.296, allocations: 2.32 MB / 440.2 MB, free: 4.523 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.042e-05/0.296, allocations: 63.88 kB / 440.3 MB, free: 4.453 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003619/0.2964, allocations: 308.1 kB / 440.6 MB, free: 4.293 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.046e-05/0.2964, allocations: 40.83 kB / 440.6 MB, free: 4.254 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.2965, allocations: 192.7 kB / 440.8 MB, free: 4.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001417/0.2967, allocations: 219.5 kB / 441 MB, free: 3.926 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002146/0.2969, allocations: 104.9 kB / 441.2 MB, free: 3.867 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.804e-05/0.297, allocations: 353.1 kB / 441.5 MB, free: 3.535 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005306/0.2975, allocations: 229.4 kB / 441.7 MB, free: 3.449 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004835/0.298, allocations: 277.9 kB / 442 MB, free: 3.332 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007268/0.2987, allocations: 395.4 kB / 442.4 MB, free: 3.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2987, allocations: 0.9062 kB / 442.4 MB, free: 3.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001617/0.3003, allocations: 0.7438 MB / 443.1 MB, free: 2.848 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.3003, allocations: 8.531 kB / 443.1 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.3003, allocations: 7.953 kB / 443.1 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008976/0.3012, allocations: 371.1 kB / 443.5 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003495/0.3016, allocations: 87.22 kB / 443.6 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001141/0.3027, allocations: 1.404 MB / 445 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005832/0.3033, allocations: 72.58 kB / 445.1 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.589e-05/0.3034, allocations: 18.52 kB / 445.1 MB, free: 1.488 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.0002575/0.3036, allocations: 175.9 kB / 445.2 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.3037, allocations: 45.69 kB / 445.3 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001457/0.3039, allocations: 65.84 kB / 445.4 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.3039, allocations: 5.906 kB / 445.4 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/0.3039, allocations: 1.531 kB / 445.4 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.968e-06/0.3039, allocations: 7.125 kB / 445.4 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002748/0.3066, allocations: 1.449 MB / 446.8 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.3067, allocations: 3.219 kB / 446.8 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003594/0.307, allocations: 83.92 kB / 446.9 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000721/0.3077, allocations: 352.3 kB / 447.3 MB, free: 388 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.619e-05/0.3078, allocations: 20.53 kB / 447.3 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001293/0.3091, allocations: 1.354 MB / 448.6 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.3091, allocations: 6 kB / 448.6 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002141/0.3112, allocations: 1.058 MB / 449.7 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002802/0.3115, allocations: 177.8 kB / 449.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.942e-05/0.3116, allocations: 21.11 kB / 449.9 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004582/0.3121, allocations: 57.11 kB / 449.9 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002322/0.3123, allocations: 101.8 kB / 450 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.012e-05/0.3123, allocations: 24.03 kB / 450.1 MB, free: 14.46 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002563/0.3126, allocations: 219.5 kB / 450.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3126, allocations: 1.469 kB / 450.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005465/0.3131, allocations: 131.2 kB / 450.4 MB, free: 14.32 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.003686/0.3168, allocations: 1.872 MB / 452.3 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00138/0.3182, allocations: 0.5454 MB / 452.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.3182, allocations: 0 / 452.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007607/0.319, allocations: 329.4 kB / 453.1 MB, free: 12.92 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007031/0.3197, allocations: 101.4 kB / 453.2 MB, free: 12.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009872/0.3295, allocations: 5.024 MB / 458.3 MB, free: 10.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000453/0.33, allocations: 0.8342 MB / 459.1 MB, free: 9.367 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001951/0.3302, allocations: 44.22 kB / 459.1 MB, free: 9.355 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002305/0.3304, allocations: 149.3 kB / 459.3 MB, free: 9.25 MB / 366.1 MB Notification: Performance of SimCode: time 1.242e-06/0.3304, allocations: 0 / 459.3 MB, free: 9.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4402/0.7707, allocations: 14.35 MB / 473.6 MB, free: 304 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/13.16, allocations: 4.062 kB / 473.6 MB, free: 300 kB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_Friction_fmu --startTime=0 --stopTime=3 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_Friction.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 15.839290702948347]