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.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.001625/0.001625, allocations: 113.6 kB / 21.19 MB, free: 0.7031 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.001886/0.001886, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.406/1.406, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] 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.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_3_2_3_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 47.92 kB / 347.2 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2543/0.2562, allocations: 49.16 MB / 396.3 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003632/0.2598, allocations: 3.059 MB / 399.4 MB, free: 6.863 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001472/0.2613, allocations: 0.9936 MB / 400.4 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001684/0.2615, allocations: 8.781 kB / 400.4 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002309/0.2617, allocations: 65.28 kB / 400.5 MB, free: 6.113 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002287/0.2619, allocations: 140.1 kB / 400.6 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005089/0.2624, allocations: 223 kB / 400.8 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005544/0.263, allocations: 0.6313 MB / 401.5 MB, free: 5.602 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001863/0.2632, allocations: 96.89 kB / 401.5 MB, free: 5.543 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003466/0.2635, allocations: 288 kB / 401.8 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003683/0.2639, allocations: 309.5 kB / 402.1 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.211e-05/0.264, allocations: 48.34 kB / 402.2 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001912/0.2642, allocations: 105.5 kB / 402.3 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001224/0.2643, allocations: 123.2 kB / 402.4 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002068/0.2645, allocations: 257.6 kB / 402.7 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006177/0.2651, allocations: 0.5957 MB / 403.3 MB, free: 4.785 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.2651, allocations: 0 / 403.3 MB, free: 4.785 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2651, allocations: 1.094 kB / 403.3 MB, free: 4.785 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.2651, allocations: 0 / 403.3 MB, free: 4.785 MB / 318.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.001303/0.2664, allocations: 0.7197 MB / 404 MB, free: 4.293 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.2665, allocations: 13.8 kB / 404 MB, free: 4.289 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001233/0.2666, allocations: 89 kB / 404.1 MB, free: 4.219 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.928e-05/0.2667, allocations: 55.25 kB / 404.1 MB, free: 4.191 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004444/0.2671, allocations: 274 kB / 404.4 MB, free: 3.973 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.252e-05/0.2672, allocations: 34.28 kB / 404.4 MB, free: 3.957 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.506e-05/0.2672, allocations: 44.61 kB / 404.5 MB, free: 3.941 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008479/0.2681, allocations: 484.3 kB / 404.9 MB, free: 3.758 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.636e-05/0.2681, allocations: 10.89 kB / 405 MB, free: 3.75 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.255e-05/0.2682, allocations: 15.5 kB / 405 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.2682, allocations: 9.688 kB / 405 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008677/0.269, allocations: 488.8 kB / 405.5 MB, free: 3.598 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001862/0.2709, allocations: 1.094 MB / 406.5 MB, free: 3.02 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006977/0.2716, allocations: 373 kB / 406.9 MB, free: 2.867 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004388/0.272, allocations: 246.6 kB / 407.2 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.104e-05/0.2721, allocations: 4.562 kB / 407.2 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.861e-05/0.2721, allocations: 38.73 kB / 407.2 MB, free: 2.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.124e-06/0.2721, allocations: 4 kB / 407.2 MB, free: 2.727 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.004518/0.2766, allocations: 2.031 MB / 409.2 MB, free: 1.832 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.501e-05/0.2766, allocations: 56.94 kB / 409.3 MB, free: 1.77 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000251/0.2769, allocations: 289.5 kB / 409.6 MB, free: 1.574 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.596e-05/0.2769, allocations: 43.14 kB / 409.6 MB, free: 1.531 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.461e-05/0.277, allocations: 193.5 kB / 409.8 MB, free: 1.352 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001039/0.2771, allocations: 201.3 kB / 410 MB, free: 1.176 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001734/0.2773, allocations: 106.1 kB / 410.1 MB, free: 1.109 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.804e-05/0.2774, allocations: 347.4 kB / 410.4 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004075/0.2778, allocations: 248.3 kB / 410.7 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004239/0.2782, allocations: 288.3 kB / 411 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006354/0.2788, allocations: 416.4 kB / 411.4 MB, free: 312 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2788, allocations: 0 / 411.4 MB, free: 312 kB / 318.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001458/0.2803, allocations: 0.7764 MB / 412.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.2803, allocations: 9.75 kB / 412.2 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.2803, allocations: 0 / 412.2 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009152/0.2812, allocations: 0.501 MB / 412.7 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003349/0.2816, allocations: 85.86 kB / 412.7 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001396/0.283, allocations: 1.413 MB / 414.2 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000492/0.2834, allocations: 70.31 kB / 414.2 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.841e-05/0.2835, allocations: 25.62 kB / 414.2 MB, free: 14.37 MB / 334.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.0002482/0.2837, allocations: 172.1 kB / 414.4 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.155e-05/0.2838, allocations: 42.72 kB / 414.5 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001338/0.284, allocations: 63.17 kB / 414.5 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.284, allocations: 5.594 kB / 414.5 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.284, allocations: 1.156 kB / 414.5 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.284, allocations: 0 / 414.5 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004002/0.288, allocations: 1.426 MB / 416 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.982e-06/0.288, allocations: 1.469 kB / 416 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005486/0.2885, allocations: 84.3 kB / 416 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001182/0.2897, allocations: 483.6 kB / 416.5 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-05/0.2898, allocations: 25.95 kB / 416.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002012/0.2918, allocations: 1.378 MB / 417.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.544e-06/0.2918, allocations: 5.625 kB / 417.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003325/0.2951, allocations: 1.085 MB / 419 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003673/0.2955, allocations: 97.36 kB / 419.1 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001343/0.2956, allocations: 14.97 kB / 419.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006708/0.2963, allocations: 58.22 kB / 419.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003153/0.2966, allocations: 99.22 kB / 419.3 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.079e-05/0.2967, allocations: 25.03 kB / 419.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003324/0.297, allocations: 201.1 kB / 419.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.297, allocations: 0 / 419.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007928/0.2978, allocations: 136.1 kB / 419.6 MB, free: 10.71 MB / 334.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.003232/0.3011, allocations: 1.659 MB / 421.3 MB, free: 9.516 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001218/0.3023, allocations: 0.5641 MB / 421.8 MB, free: 9.27 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.3023, allocations: 0 / 421.8 MB, free: 9.27 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006996/0.303, allocations: 327.8 kB / 422.2 MB, free: 8.977 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005967/0.3036, allocations: 73.81 kB / 422.2 MB, free: 8.906 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009006/0.3126, allocations: 5.008 MB / 427.2 MB, free: 3.754 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004743/0.3131, allocations: 0.8202 MB / 428.1 MB, free: 2.91 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001702/0.3132, allocations: 43.27 kB / 428.1 MB, free: 2.867 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002007/0.3134, allocations: 135.4 kB / 428.2 MB, free: 2.734 MB / 334.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3134, allocations: 0 / 428.2 MB, free: 2.734 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0508/0.3642, allocations: 14.49 MB / 442.7 MB, free: 4.176 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.23/13.59, allocations: 7.922 kB / 442.7 MB, free: 4.168 MB / 350.1 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Friction_fmu --startTime=0 --stopTime=3 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Friction.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.055253042839468]