Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001503/0.001503, allocations: 112 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00172/0.00172, allocations: 181.3 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 47.94 kB / 370.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2298/0.2313, allocations: 52.19 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004368/0.2356, allocations: 3.126 MB / 425.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001821/0.2374, allocations: 1.044 MB / 426.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000165/0.2376, allocations: 11.94 kB / 426.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002374/0.2379, allocations: 79.23 kB / 426.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002748/0.2381, allocations: 162.7 kB / 427 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006248/0.2388, allocations: 287.5 kB / 427.3 MB, free: 9.875 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008191/0.2396, allocations: 0.7958 MB / 428.1 MB, free: 9.074 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002046/0.2398, allocations: 93.58 kB / 428.2 MB, free: 8.977 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004728/0.2402, allocations: 362.9 kB / 428.6 MB, free: 8.621 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004929/0.2407, allocations: 394.7 kB / 429 MB, free: 8.234 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.008e-05/0.2408, allocations: 60 kB / 429 MB, free: 8.176 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001966/0.241, allocations: 107.9 kB / 429.1 MB, free: 8.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001719/0.2412, allocations: 163.5 kB / 429.3 MB, free: 7.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002957/0.2415, allocations: 306.5 kB / 429.6 MB, free: 7.609 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007898/0.2423, allocations: 0.7204 MB / 430.3 MB, free: 6.891 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2423, allocations: 0 / 430.3 MB, free: 6.891 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.2423, allocations: 7.938 kB / 430.3 MB, free: 6.883 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.2423, allocations: 0 / 430.3 MB, free: 6.883 MB / 334.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.001671/0.244, allocations: 0.8243 MB / 431.1 MB, free: 6.027 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.244, allocations: 12.03 kB / 431.1 MB, free: 6.016 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001125/0.2441, allocations: 82.7 kB / 431.2 MB, free: 5.926 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001105/0.2442, allocations: 60.56 kB / 431.3 MB, free: 5.867 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000523/0.2448, allocations: 306.1 kB / 431.6 MB, free: 5.543 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.733e-05/0.2448, allocations: 33.38 kB / 431.6 MB, free: 5.508 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001041/0.2449, allocations: 56.31 kB / 431.7 MB, free: 5.453 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001102/0.246, allocations: 0.6111 MB / 432.3 MB, free: 4.828 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.662e-05/0.246, allocations: 11.94 kB / 432.3 MB, free: 4.816 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.16e-05/0.2461, allocations: 16 kB / 432.3 MB, free: 4.801 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.2461, allocations: 8 kB / 432.3 MB, free: 4.793 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001197/0.2473, allocations: 0.605 MB / 432.9 MB, free: 4.188 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002344/0.2496, allocations: 1.263 MB / 434.2 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009568/0.2506, allocations: 441.7 kB / 434.6 MB, free: 2.434 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005593/0.2512, allocations: 298.2 kB / 434.9 MB, free: 2.141 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.436e-05/0.2512, allocations: 16.47 kB / 434.9 MB, free: 2.125 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.119e-05/0.2513, allocations: 35.06 kB / 435 MB, free: 2.078 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 1.693e-06/0.2513, allocations: 0 / 435 MB, free: 2.078 MB / 334.1 MB Notification: Performance of matching and sorting (n=64): time 0.006051/0.2573, allocations: 2.489 MB / 437.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.876e-05/0.2574, allocations: 60.06 kB / 437.5 MB, free: 15.47 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003735/0.2577, allocations: 333.6 kB / 437.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.093e-05/0.2578, allocations: 45.7 kB / 437.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/0.258, allocations: 197.5 kB / 438.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002222/0.2582, allocations: 234.1 kB / 438.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002514/0.2584, allocations: 134.6 kB / 438.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001985/0.2586, allocations: 354.7 kB / 438.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006396/0.2593, allocations: 329.8 kB / 439.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006676/0.2599, allocations: 381 kB / 439.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009896/0.2609, allocations: 0.5067 MB / 440 MB, free: 12.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.2609, allocations: 0 / 440 MB, free: 12.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001797/0.2627, allocations: 0.9117 MB / 440.9 MB, free: 12.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.2628, allocations: 4 kB / 440.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.2628, allocations: 4 kB / 440.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001312/0.2641, allocations: 0.7307 MB / 441.6 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000393/0.2645, allocations: 103.8 kB / 441.7 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001474/0.2659, allocations: 1.089 MB / 442.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006736/0.2666, allocations: 103.9 kB / 442.9 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.948e-05/0.2667, allocations: 27.98 kB / 442.9 MB, free: 9.941 MB / 350.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.0003154/0.267, allocations: 187.7 kB / 443.1 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001337/0.2671, allocations: 51.67 kB / 443.2 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001784/0.2673, allocations: 68.75 kB / 443.2 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.718e-06/0.2673, allocations: 8 kB / 443.3 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.884e-06/0.2673, allocations: 4 kB / 443.3 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.716e-06/0.2673, allocations: 3.984 kB / 443.3 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003005/0.2703, allocations: 1.531 MB / 444.8 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.2704, allocations: 4 kB / 444.8 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004242/0.2708, allocations: 91.83 kB / 444.9 MB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001196/0.272, allocations: 0.7093 MB / 445.6 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.995e-05/0.272, allocations: 27.95 kB / 445.6 MB, free: 7.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001452/0.2735, allocations: 1.064 MB / 446.7 MB, free: 6.109 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.2735, allocations: 0 / 446.7 MB, free: 6.109 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002528/0.276, allocations: 1.292 MB / 448 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003162/0.2763, allocations: 119.6 kB / 448.1 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001213/0.2765, allocations: 23.94 kB / 448.1 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006097/0.2771, allocations: 103.9 kB / 448.2 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002774/0.2773, allocations: 124.4 kB / 448.3 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.873e-05/0.2774, allocations: 27.95 kB / 448.4 MB, free: 4.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002637/0.2777, allocations: 239.2 kB / 448.6 MB, free: 4.176 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2777, allocations: 0 / 448.6 MB, free: 4.176 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000583/0.2783, allocations: 156 kB / 448.8 MB, free: 4.023 MB / 350.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.003005/0.2813, allocations: 1.878 MB / 450.6 MB, free: 2.113 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00168/0.2829, allocations: 0.7263 MB / 451.4 MB, free: 1.383 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.2829, allocations: 0 / 451.4 MB, free: 1.383 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008282/0.2838, allocations: 414 kB / 451.8 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006494/0.2844, allocations: 101.1 kB / 451.9 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009283/0.2937, allocations: 5.5 MB / 457.4 MB, free: 11.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005118/0.2942, allocations: 0.8516 MB / 458.2 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001997/0.2944, allocations: 40.19 kB / 458.3 MB, free: 10.37 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002507/0.2947, allocations: 155.4 kB / 458.4 MB, free: 10.22 MB / 366.1 MB Notification: Performance of SimCode: time 9.12e-07/0.2947, allocations: 0 / 458.4 MB, free: 10.22 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05635/0.351, allocations: 18.68 MB / 477.1 MB, free: 7.723 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.01/13.36, allocations: 11.23 kB / 477.1 MB, free: 7.715 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_CoupledClutches_fmu --startTime=0 --stopTime=1.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_CoupledClutches.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 15.744055587099865]