Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001357/0.001357, allocations: 110 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001587/0.001587, allocations: 213.1 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 230.5 MB / 257.4 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001874/0.001874, allocations: 67.91 kB / 377.8 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2489/0.2507, allocations: 53.4 MB / 431.2 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004844/0.2556, allocations: 3.275 MB / 434.5 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00239/0.258, allocations: 1.267 MB / 435.7 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002351/0.2582, allocations: 7.938 kB / 435.7 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000341/0.2586, allocations: 103 kB / 435.8 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000485/0.259, allocations: 226.4 kB / 436 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005625/0.2596, allocations: 275.5 kB / 436.3 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009263/0.2605, allocations: 0.8503 MB / 437.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002472/0.2608, allocations: 97.56 kB / 437.3 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007317/0.2615, allocations: 390.9 kB / 437.6 MB, free: 192 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006126/0.2621, allocations: 414.6 kB / 438 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001237/0.2622, allocations: 67.94 kB / 438.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002621/0.2625, allocations: 124 kB / 438.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002314/0.2627, allocations: 183.4 kB / 438.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003353/0.2631, allocations: 322.5 kB / 438.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001003/0.2641, allocations: 0.7981 MB / 439.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2641, allocations: 0 / 439.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2641, allocations: 4 kB / 439.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.141e-05/0.2641, allocations: 0 / 439.5 MB, free: 14.3 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.001978/0.2661, allocations: 0.8941 MB / 440.4 MB, free: 13.37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.2661, allocations: 8.031 kB / 440.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001114/0.2662, allocations: 86.7 kB / 440.5 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003361/0.2666, allocations: 76.55 kB / 440.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000673/0.2672, allocations: 340.4 kB / 440.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.219e-05/0.2673, allocations: 37.38 kB / 441 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/0.2674, allocations: 48.33 kB / 441 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001166/0.2686, allocations: 0.6228 MB / 441.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.382e-05/0.2686, allocations: 4 kB / 441.6 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.594e-05/0.2686, allocations: 20 kB / 441.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.455e-05/0.2686, allocations: 12 kB / 441.7 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001289/0.2699, allocations: 0.5894 MB / 442.3 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002537/0.2725, allocations: 1.313 MB / 443.6 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001125/0.2736, allocations: 494.2 kB / 444.1 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005989/0.2742, allocations: 286.7 kB / 444.3 MB, free: 9.352 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.505e-05/0.2743, allocations: 12.64 kB / 444.3 MB, free: 9.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.493e-05/0.2743, allocations: 43.22 kB / 444.4 MB, free: 9.285 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.745e-06/0.2743, allocations: 0 / 444.4 MB, free: 9.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.00657/0.2809, allocations: 2.52 MB / 446.9 MB, free: 6.723 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.355e-05/0.2809, allocations: 64.05 kB / 447 MB, free: 6.648 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004478/0.2814, allocations: 353.6 kB / 447.3 MB, free: 6.301 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.401e-05/0.2815, allocations: 53.69 kB / 447.4 MB, free: 6.242 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001678/0.2816, allocations: 197.6 kB / 447.6 MB, free: 6.043 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002441/0.2819, allocations: 265.9 kB / 447.8 MB, free: 5.781 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002289/0.2821, allocations: 134.6 kB / 448 MB, free: 5.641 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.2823, allocations: 366.7 kB / 448.3 MB, free: 5.273 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006416/0.2829, allocations: 305.9 kB / 448.6 MB, free: 4.977 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006814/0.2836, allocations: 373.4 kB / 449 MB, free: 4.605 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001062/0.2847, allocations: 497 kB / 449.5 MB, free: 4.109 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.2847, allocations: 0 / 449.5 MB, free: 4.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002018/0.2867, allocations: 0.9313 MB / 450.4 MB, free: 3.172 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.2867, allocations: 4 kB / 450.4 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.2867, allocations: 0 / 450.4 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001373/0.2881, allocations: 0.5746 MB / 451 MB, free: 2.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003905/0.2885, allocations: 103.8 kB / 451.1 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001655/0.2901, allocations: 1.1 MB / 452.2 MB, free: 1.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007027/0.2908, allocations: 115.8 kB / 452.3 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.844e-05/0.2909, allocations: 23.98 kB / 452.3 MB, free: 1.223 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 (61): * Single equations (assignments): 60 * 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,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0003071/0.2912, allocations: 199.7 kB / 452.5 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001384/0.2913, allocations: 59.62 kB / 452.6 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001765/0.2915, allocations: 73.09 kB / 452.6 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.525e-05/0.2915, allocations: 8 kB / 452.6 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/0.2915, allocations: 0 / 452.6 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.2915, allocations: 3.984 kB / 452.6 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002951/0.2945, allocations: 1.571 MB / 454.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.2945, allocations: 3.984 kB / 454.2 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000403/0.2949, allocations: 83.89 kB / 454.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001185/0.2961, allocations: 0.5356 MB / 454.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.25e-05/0.2962, allocations: 27.95 kB / 454.9 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001543/0.2977, allocations: 1.077 MB / 455.9 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.2977, allocations: 3.938 kB / 455.9 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002566/0.3003, allocations: 1.304 MB / 457.2 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003147/0.3006, allocations: 119.5 kB / 457.4 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001208/0.3007, allocations: 28 kB / 457.4 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006014/0.3013, allocations: 107.8 kB / 457.5 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002867/0.3016, allocations: 136.4 kB / 457.6 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.261e-05/0.3017, allocations: 35.91 kB / 457.7 MB, free: 11.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002964/0.302, allocations: 255.2 kB / 457.9 MB, free: 11.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.302, allocations: 0 / 457.9 MB, free: 11.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005354/0.3025, allocations: 159.9 kB / 458.1 MB, free: 11.35 MB / 366.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,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00421/0.3067, allocations: 2.119 MB / 460.2 MB, free: 9.312 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001673/0.3084, allocations: 0.7191 MB / 460.9 MB, free: 8.598 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3084, allocations: 0 / 460.9 MB, free: 8.598 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008583/0.3092, allocations: 420.6 kB / 461.3 MB, free: 8.188 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000731/0.31, allocations: 127.7 kB / 461.4 MB, free: 8.07 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009633/0.3196, allocations: 5.552 MB / 467 MB, free: 2.414 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005569/0.3202, allocations: 0.8596 MB / 467.9 MB, free: 1.527 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002443/0.3204, allocations: 60.41 kB / 467.9 MB, free: 1.469 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002752/0.3207, allocations: 171.3 kB / 468.1 MB, free: 1.301 MB / 366.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3207, allocations: 0 / 468.1 MB, free: 1.301 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05825/0.3789, allocations: 19.39 MB / 487.5 MB, free: 14.02 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.1/13.48, allocations: 11.62 kB / 487.5 MB, free: 14.02 MB / 398.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CoupledClutches_fmu --startTime=0 --stopTime=1.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CoupledClutches.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.91240367712453]