Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.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.00128/0.00128, 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.001501/0.001501, allocations: 214.8 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.354/1.354, allocations: 207.7 MB / 235.3 MB, free: 9.805 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.CoupledClutches,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_CoupledClutches",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.00171/0.00171, allocations: 62.56 kB / 347.2 MB, free: 9.984 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2376/0.2393, allocations: 49.16 MB / 396.4 MB, free: 9.051 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003383/0.2427, allocations: 2.862 MB / 399.2 MB, free: 7.133 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001583/0.2443, allocations: 1.042 MB / 400.3 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000174/0.2444, allocations: 9.156 kB / 400.3 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002192/0.2447, allocations: 79.16 kB / 400.3 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002493/0.2449, allocations: 163.6 kB / 400.5 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005992/0.2455, allocations: 291.7 kB / 400.8 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006173/0.2461, allocations: 0.7956 MB / 401.6 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001804/0.2463, allocations: 95.88 kB / 401.7 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003986/0.2467, allocations: 364 kB / 402 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003859/0.2471, allocations: 357.6 kB / 402.4 MB, free: 5.379 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.666e-05/0.2472, allocations: 60.28 kB / 402.4 MB, free: 5.379 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000204/0.2474, allocations: 111.2 kB / 402.5 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001281/0.2475, allocations: 162.6 kB / 402.7 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002274/0.2477, allocations: 258.8 kB / 403 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006674/0.2484, allocations: 0.723 MB / 403.7 MB, free: 4.836 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2484, allocations: 1.281 kB / 403.7 MB, free: 4.836 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2484, allocations: 0 / 403.7 MB, free: 4.836 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.306e-06/0.2484, allocations: 0 / 403.7 MB, free: 4.836 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001491/0.2499, allocations: 0.8307 MB / 404.5 MB, free: 4.297 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.2499, allocations: 12.64 kB / 404.5 MB, free: 4.293 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.231e-05/0.25, allocations: 83.59 kB / 404.6 MB, free: 4.227 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001066/0.2501, allocations: 60.69 kB / 404.7 MB, free: 4.195 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004718/0.2506, allocations: 308 kB / 405 MB, free: 3.965 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.236e-05/0.2506, allocations: 35.62 kB / 405 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.031e-05/0.2507, allocations: 53.58 kB / 405.1 MB, free: 3.926 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001036/0.2518, allocations: 0.6174 MB / 405.7 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.39e-05/0.2518, allocations: 2.219 kB / 405.7 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.269e-05/0.2519, allocations: 19.52 kB / 405.7 MB, free: 3.668 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.2519, allocations: 9.75 kB / 405.7 MB, free: 3.668 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001122/0.253, allocations: 0.6028 MB / 406.3 MB, free: 3.488 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002122/0.2551, allocations: 1.146 MB / 407.5 MB, free: 2.84 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009423/0.256, allocations: 439.6 kB / 407.9 MB, free: 2.68 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005265/0.2566, allocations: 292.3 kB / 408.2 MB, free: 2.555 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.024e-05/0.2566, allocations: 6.969 kB / 408.2 MB, free: 2.551 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.471e-05/0.2567, allocations: 38.38 kB / 408.2 MB, free: 2.508 MB / 318.1 MB Notification: Performance of pre-optimization done (n=58): time 2.324e-06/0.2567, allocations: 4 kB / 408.2 MB, free: 2.504 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.005631/0.2623, allocations: 2.491 MB / 410.7 MB, free: 1.168 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.36e-05/0.2623, allocations: 58.75 kB / 410.8 MB, free: 1.105 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000279/0.2626, allocations: 344.1 kB / 411.1 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.647e-05/0.2626, allocations: 48.72 kB / 411.1 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.223e-05/0.2627, allocations: 193.9 kB / 411.3 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001158/0.2628, allocations: 234.7 kB / 411.6 MB, free: 464 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001815/0.263, allocations: 132.1 kB / 411.7 MB, free: 380 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.28e-05/0.2631, allocations: 361.2 kB / 412 MB, free: 20 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006415/0.2637, allocations: 324 kB / 412.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006621/0.2644, allocations: 378.6 kB / 412.7 MB, free: 15.66 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009811/0.2654, allocations: 0.5053 MB / 413.2 MB, free: 15.42 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.2654, allocations: 4 kB / 413.2 MB, free: 15.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001754/0.2671, allocations: 0.9119 MB / 414.2 MB, free: 14.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.2671, allocations: 5.344 kB / 414.2 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.361e-06/0.2671, allocations: 1.062 kB / 414.2 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001274/0.2684, allocations: 0.7295 MB / 414.9 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003896/0.2688, allocations: 104.4 kB / 415 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001456/0.2703, allocations: 1.089 MB / 416.1 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006737/0.2709, allocations: 104.3 kB / 416.2 MB, free: 13.78 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.031e-05/0.271, allocations: 28.48 kB / 416.2 MB, free: 13.77 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 (clutch3.mode,$PRE.clutch3.mode,clutch3.locked,clutch3.startBackward,$PRE.clutch3.startBackward,clutch3.startForward,$PRE.clutch3.startForward,clutch3.free,clutch2.mode,$PRE.clutch2.mode,clutch2.locked,clutch2.startBackward,$PRE.clutch2.startBackward,clutch2.startForward,$PRE.clutch2.startForward,clutch2.free,clutch1.mode,$PRE.clutch1.mode,clutch1.locked,clutch1.startBackward,$PRE.clutch1.startBackward,clutch1.startForward,$PRE.clutch1.startForward,clutch1.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(3,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0002981/0.2713, allocations: 183.2 kB / 416.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.2714, allocations: 54.02 kB / 416.4 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001424/0.2716, allocations: 66.97 kB / 416.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.2716, allocations: 6.719 kB / 416.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.2716, allocations: 0 / 416.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.517e-06/0.2716, allocations: 8.062 kB / 416.5 MB, free: 13.51 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00275/0.2743, allocations: 1.453 MB / 418 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.2743, allocations: 1.406 kB / 418 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004129/0.2747, allocations: 94.22 kB / 418.1 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001135/0.2759, allocations: 0.7 MB / 418.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.227e-05/0.2759, allocations: 25.72 kB / 418.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001396/0.2773, allocations: 1.066 MB / 419.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2773, allocations: 0 / 419.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002535/0.2799, allocations: 1.304 MB / 421.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002814/0.2802, allocations: 111.6 kB / 421.3 MB, free: 9.945 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001074/0.2803, allocations: 23.94 kB / 421.3 MB, free: 9.922 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006358/0.2809, allocations: 103.9 kB / 421.4 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002638/0.2812, allocations: 128.4 kB / 421.5 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.312e-05/0.2812, allocations: 23.97 kB / 421.5 MB, free: 9.668 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002501/0.2815, allocations: 239.2 kB / 421.8 MB, free: 9.434 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2815, allocations: 0 / 421.8 MB, free: 9.434 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005212/0.282, allocations: 156 kB / 421.9 MB, free: 9.281 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,J3.phi,J3.w,clutch3.phi_rel,clutch3.w_rel) * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode) * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.mode,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(3,19)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002973/0.285, allocations: 1.875 MB / 423.8 MB, free: 7.375 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001597/0.2866, allocations: 0.7303 MB / 424.5 MB, free: 6.645 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2866, allocations: 0 / 424.5 MB, free: 6.645 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008657/0.2874, allocations: 414 kB / 424.9 MB, free: 6.242 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006627/0.2881, allocations: 107.2 kB / 425 MB, free: 6.141 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008847/0.2969, allocations: 5.486 MB / 430.5 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002422/0.2972, allocations: 241.6 kB / 430.8 MB, free: 300 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000199/0.2974, allocations: 48.16 kB / 430.8 MB, free: 248 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002409/0.2976, allocations: 151.4 kB / 431 MB, free: 96 kB / 334.1 MB Notification: Performance of SimCode: time 6.52e-07/0.2976, allocations: 4 kB / 431 MB, free: 92 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05052/0.3481, allocations: 16.62 MB / 447.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.46/13.81, allocations: 8 kB / 447.6 MB, free: 15.38 MB / 366.1 MB " [Timeout remaining time 646] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_CoupledClutches_fmu --startTime=0 --stopTime=1.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_CoupledClutches.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.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.30956705380231]