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.00131/0.00131, allocations: 108.2 kB / 21.18 MB, free: 0.6992 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.001469/0.001469, allocations: 216.7 kB / 24.49 MB, free: 4.031 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.376/1.376, allocations: 207.6 MB / 235.3 MB, free: 10.01 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.001915/0.001915, allocations: 55.92 kB / 347.2 MB, free: 10.13 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2749/0.2768, allocations: 49.15 MB / 396.3 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003818/0.2806, allocations: 3.128 MB / 399.5 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001868/0.2825, allocations: 1.088 MB / 400.6 MB, free: 6.023 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002087/0.2827, allocations: 8.562 kB / 400.6 MB, free: 6.02 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002628/0.283, allocations: 73.45 kB / 400.6 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000274/0.2832, allocations: 168 kB / 400.8 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006962/0.2839, allocations: 282.4 kB / 401.1 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008085/0.2847, allocations: 0.797 MB / 401.9 MB, free: 5.336 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002183/0.285, allocations: 103.6 kB / 402 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005318/0.2855, allocations: 369.4 kB / 402.3 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005294/0.286, allocations: 395.6 kB / 402.7 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001004/0.2861, allocations: 64.06 kB / 402.8 MB, free: 4.938 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002302/0.2863, allocations: 106.5 kB / 402.9 MB, free: 4.926 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001564/0.2865, allocations: 161.5 kB / 403.1 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002613/0.2868, allocations: 294.3 kB / 403.3 MB, free: 4.645 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008193/0.2876, allocations: 0.7268 MB / 404.1 MB, free: 4.355 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.2876, allocations: 1.219 kB / 404.1 MB, free: 4.355 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2876, allocations: 0 / 404.1 MB, free: 4.355 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.498e-06/0.2876, allocations: 0 / 404.1 MB, free: 4.355 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.001583/0.2892, allocations: 0.8304 MB / 404.9 MB, free: 3.816 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.2892, allocations: 12.89 kB / 404.9 MB, free: 3.812 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.467e-05/0.2893, allocations: 86.19 kB / 405 MB, free: 3.742 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001174/0.2894, allocations: 62.61 kB / 405.1 MB, free: 3.711 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005166/0.29, allocations: 303 kB / 405.4 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.272e-05/0.29, allocations: 35.41 kB / 405.4 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.29e-05/0.2901, allocations: 44.91 kB / 405.4 MB, free: 3.453 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001084/0.2912, allocations: 0.6155 MB / 406 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.916e-05/0.2912, allocations: 7.75 kB / 406.1 MB, free: 3.211 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.183e-05/0.2912, allocations: 18.78 kB / 406.1 MB, free: 3.195 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.2913, allocations: 11.09 kB / 406.1 MB, free: 3.195 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001148/0.2924, allocations: 0.6063 MB / 406.7 MB, free: 3.016 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002145/0.2945, allocations: 1.266 MB / 408 MB, free: 2.336 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008681/0.2954, allocations: 457 kB / 408.4 MB, free: 2.133 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004929/0.2959, allocations: 286.8 kB / 408.7 MB, free: 1.988 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.661e-05/0.296, allocations: 7.188 kB / 408.7 MB, free: 1.988 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.17e-05/0.296, allocations: 41.73 kB / 408.7 MB, free: 1.938 MB / 318.1 MB Notification: Performance of pre-optimization done (n=58): time 1.663e-06/0.296, allocations: 4 kB / 408.7 MB, free: 1.934 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.005498/0.3015, allocations: 2.485 MB / 411.2 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.697e-05/0.3015, allocations: 57.44 kB / 411.3 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002883/0.3018, allocations: 331.8 kB / 411.6 MB, free: 332 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.541e-05/0.3019, allocations: 51.48 kB / 411.6 MB, free: 284 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.757e-05/0.3019, allocations: 201.2 kB / 411.8 MB, free: 92 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001991/0.3021, allocations: 233.5 kB / 412.1 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002897/0.3024, allocations: 131.6 kB / 412.2 MB, free: 15.8 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002516/0.3027, allocations: 356.3 kB / 412.5 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000869/0.3036, allocations: 321.4 kB / 412.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006566/0.3042, allocations: 383.8 kB / 413.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00109/0.3053, allocations: 0.5052 MB / 413.7 MB, free: 14.86 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3053, allocations: 0 / 413.7 MB, free: 14.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001834/0.3071, allocations: 0.9151 MB / 414.7 MB, free: 14.42 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.3072, allocations: 5.594 kB / 414.7 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.3072, allocations: 1.25 kB / 414.7 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001337/0.3085, allocations: 0.731 MB / 415.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005111/0.309, allocations: 104 kB / 415.5 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001453/0.3105, allocations: 1.084 MB / 416.6 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006743/0.3111, allocations: 108.6 kB / 416.7 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.296e-05/0.3112, allocations: 23.95 kB / 416.7 MB, free: 13.21 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.0003264/0.3115, allocations: 191.6 kB / 416.9 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001116/0.3116, allocations: 53.86 kB / 417 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000165/0.3118, allocations: 71.16 kB / 417 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.3118, allocations: 5.125 kB / 417 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.3118, allocations: 1.844 kB / 417 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.3118, allocations: 3.984 kB / 417 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002784/0.3146, allocations: 1.535 MB / 418.6 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.3146, allocations: 0 / 418.6 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003972/0.315, allocations: 91.75 kB / 418.7 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001178/0.3162, allocations: 0.7036 MB / 419.4 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.612e-05/0.3163, allocations: 22.47 kB / 419.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001434/0.3177, allocations: 1.075 MB / 420.5 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.3177, allocations: 0 / 420.5 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002484/0.3202, allocations: 1.3 MB / 421.8 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003088/0.3205, allocations: 111.6 kB / 421.9 MB, free: 9.402 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001166/0.3206, allocations: 27.94 kB / 421.9 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005967/0.3212, allocations: 103.9 kB / 422 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002838/0.3215, allocations: 124.4 kB / 422.1 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.736e-05/0.3215, allocations: 31.95 kB / 422.1 MB, free: 9.117 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000258/0.3218, allocations: 231.2 kB / 422.4 MB, free: 8.891 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3218, allocations: 0 / 422.4 MB, free: 8.891 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000615/0.3224, allocations: 160 kB / 422.5 MB, free: 8.734 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.002977/0.3254, allocations: 1.879 MB / 424.4 MB, free: 6.824 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001642/0.327, allocations: 0.7224 MB / 425.1 MB, free: 6.102 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.327, allocations: 0 / 425.1 MB, free: 6.102 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008432/0.3279, allocations: 418.3 kB / 425.5 MB, free: 5.695 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006774/0.3286, allocations: 93.84 kB / 425.6 MB, free: 5.605 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009495/0.3381, allocations: 5.486 MB / 431.1 MB, free: 20 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004972/0.3386, allocations: 0.8401 MB / 432 MB, free: 15.15 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00022/0.3388, allocations: 52.17 kB / 432 MB, free: 15.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000245/0.339, allocations: 151.4 kB / 432.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of SimCode: time 1.293e-06/0.339, allocations: 0 / 432.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0607/0.3997, allocations: 18.69 MB / 450.8 MB, free: 12.19 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.34/13.74, allocations: 8 kB / 450.8 MB, free: 12.18 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.125720375217497]