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.001257/0.001257, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.001403/0.001403, allocations: 217.1 kB / 24.47 MB, free: 3.777 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.335/1.335, allocations: 207.7 MB / 235.3 MB, free: 9.805 MB / 190.1 MB " [Timeout remaining time 179] 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.001776/0.001776, allocations: 51.92 kB / 347.2 MB, free: 9.887 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2251/0.2269, allocations: 49.15 MB / 396.3 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003383/0.2303, allocations: 2.825 MB / 399.2 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001443/0.2317, allocations: 0.9486 MB / 400.1 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001567/0.2319, allocations: 9.031 kB / 400.1 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001994/0.2321, allocations: 68.77 kB / 400.2 MB, free: 6.293 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000219/0.2323, allocations: 135.3 kB / 400.3 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004771/0.2328, allocations: 231.9 kB / 400.6 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005061/0.2333, allocations: 0.6339 MB / 401.2 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001749/0.2334, allocations: 89.92 kB / 401.3 MB, free: 5.727 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003059/0.2337, allocations: 293 kB / 401.6 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003332/0.2341, allocations: 280.2 kB / 401.8 MB, free: 5.488 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.597e-05/0.2342, allocations: 48.03 kB / 401.9 MB, free: 5.488 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001856/0.2343, allocations: 96.72 kB / 402 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001033/0.2344, allocations: 130.3 kB / 402.1 MB, free: 5.391 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000176/0.2346, allocations: 207.9 kB / 402.3 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006124/0.2352, allocations: 0.5969 MB / 402.9 MB, free: 5.039 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2352, allocations: 1.125 kB / 402.9 MB, free: 5.039 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.2352, allocations: 0 / 402.9 MB, free: 5.039 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.2352, allocations: 0 / 402.9 MB, free: 5.039 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.001287/0.2365, allocations: 0.7214 MB / 403.6 MB, free: 4.547 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.2366, allocations: 17.05 kB / 403.6 MB, free: 4.539 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001148/0.2367, allocations: 89.77 kB / 403.7 MB, free: 4.469 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.482e-05/0.2368, allocations: 58.88 kB / 403.8 MB, free: 4.438 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004298/0.2372, allocations: 275.3 kB / 404.1 MB, free: 4.219 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.228e-05/0.2372, allocations: 29.59 kB / 404.1 MB, free: 4.207 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.069e-05/0.2373, allocations: 44.47 kB / 404.1 MB, free: 4.191 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008378/0.2382, allocations: 481.5 kB / 404.6 MB, free: 4.012 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.302e-05/0.2382, allocations: 9.719 kB / 404.6 MB, free: 4.004 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.366e-05/0.2382, allocations: 15.03 kB / 404.6 MB, free: 3.992 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.2382, allocations: 14.81 kB / 404.6 MB, free: 3.988 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009281/0.2392, allocations: 489.3 kB / 405.1 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001838/0.241, allocations: 0.9911 MB / 406.1 MB, free: 3.293 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007179/0.2417, allocations: 373.3 kB / 406.5 MB, free: 3.141 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004669/0.2422, allocations: 245.5 kB / 406.7 MB, free: 3.051 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.695e-05/0.2422, allocations: 5.938 kB / 406.7 MB, free: 3.051 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.975e-05/0.2422, allocations: 42.44 kB / 406.8 MB, free: 3 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 1.954e-06/0.2422, allocations: 0 / 406.8 MB, free: 3 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.004608/0.2469, allocations: 2.033 MB / 408.8 MB, free: 2.113 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.401e-05/0.2469, allocations: 58.34 kB / 408.8 MB, free: 2.051 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002758/0.2472, allocations: 288.2 kB / 409.1 MB, free: 1.891 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.592e-05/0.2472, allocations: 44.39 kB / 409.2 MB, free: 1.848 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.806e-05/0.2473, allocations: 189.3 kB / 409.4 MB, free: 1.676 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001116/0.2474, allocations: 209.4 kB / 409.6 MB, free: 1.492 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001642/0.2476, allocations: 110.1 kB / 409.7 MB, free: 1.422 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.114e-05/0.2476, allocations: 351.3 kB / 410 MB, free: 1.078 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004313/0.2481, allocations: 243.9 kB / 410.2 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004529/0.2485, allocations: 296.8 kB / 410.5 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007088/0.2492, allocations: 411.9 kB / 410.9 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.2492, allocations: 0 / 410.9 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001506/0.2507, allocations: 0.7758 MB / 411.7 MB, free: 236 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.2507, allocations: 9.328 kB / 411.7 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.984e-06/0.2507, allocations: 0 / 411.7 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008691/0.2516, allocations: 0.5002 MB / 412.2 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003627/0.252, allocations: 90.58 kB / 412.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001396/0.2534, allocations: 1.407 MB / 413.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005056/0.2539, allocations: 79.5 kB / 413.8 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.676e-05/0.2539, allocations: 20.78 kB / 413.8 MB, free: 14.69 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.000258/0.2542, allocations: 167.8 kB / 414 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.991e-05/0.2543, allocations: 43.72 kB / 414 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001337/0.2544, allocations: 59.77 kB / 414.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.261e-06/0.2544, allocations: 4.938 kB / 414.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.2544, allocations: 1.188 kB / 414.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.2544, allocations: 7.984 kB / 414.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00285/0.2573, allocations: 1.359 MB / 415.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.2573, allocations: 5.109 kB / 415.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000359/0.2576, allocations: 83.45 kB / 415.5 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000821/0.2585, allocations: 475.4 kB / 416 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.012e-05/0.2585, allocations: 17.89 kB / 416 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001361/0.2599, allocations: 1.383 MB / 417.4 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.2599, allocations: 2.188 kB / 417.4 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00209/0.262, allocations: 1.084 MB / 418.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002705/0.2622, allocations: 93.77 kB / 418.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.81e-05/0.2623, allocations: 23.72 kB / 418.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000431/0.2628, allocations: 58.23 kB / 418.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002168/0.263, allocations: 95.44 kB / 418.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.39e-05/0.263, allocations: 21.7 kB / 418.8 MB, free: 11.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002217/0.2632, allocations: 204.7 kB / 419 MB, free: 11.14 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2632, allocations: 4.938 kB / 419 MB, free: 11.13 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005338/0.2638, allocations: 131.6 kB / 419.1 MB, free: 11.12 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.002644/0.2664, allocations: 1.679 MB / 420.8 MB, free: 9.914 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001293/0.2677, allocations: 0.5565 MB / 421.4 MB, free: 9.566 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2677, allocations: 0 / 421.4 MB, free: 9.566 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000734/0.2685, allocations: 326.7 kB / 421.7 MB, free: 9.25 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006202/0.2691, allocations: 81.89 kB / 421.7 MB, free: 9.172 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009517/0.2786, allocations: 5.005 MB / 426.8 MB, free: 4.027 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002361/0.2788, allocations: 216.9 kB / 427 MB, free: 3.797 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001815/0.279, allocations: 43.27 kB / 427 MB, free: 3.758 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002177/0.2792, allocations: 139.3 kB / 427.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of SimCode: time 8.42e-07/0.2792, allocations: 0 / 427.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04809/0.3273, allocations: 13.19 MB / 440.3 MB, free: 6.348 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.45/13.78, allocations: 4 kB / 440.3 MB, free: 6.344 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.41257098922506]