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.001625/0.001625, allocations: 122.7 kB / 18.5 MB, free: 4.578 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.001974/0.001974, allocations: 210.5 kB / 21.46 MB, free: 1.625 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.446/1.446, allocations: 230.2 MB / 254.5 MB, free: 15.25 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.001778/0.001778, allocations: 63.89 kB / 373.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1027, allocations: 53.33 MB / 426.7 MB, free: 5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004934/0.1076, allocations: 3.242 MB / 429.9 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002418/0.11, allocations: 1.267 MB / 431.2 MB, free: 480 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002452/0.1103, allocations: 11.94 kB / 431.2 MB, free: 468 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003511/0.1106, allocations: 91.16 kB / 431.3 MB, free: 376 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005021/0.1111, allocations: 230.4 kB / 431.5 MB, free: 144 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1899/0.301, allocations: 260.5 kB / 431.8 MB, free: 7.594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001622/0.3026, allocations: 0.8452 MB / 432.6 MB, free: 7.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003153/0.303, allocations: 98.03 kB / 432.7 MB, free: 7.566 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008678/0.3038, allocations: 390 kB / 433.1 MB, free: 7.523 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006517/0.3045, allocations: 418.7 kB / 433.5 MB, free: 7.457 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000155/0.3046, allocations: 65.22 kB / 433.5 MB, free: 7.457 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003456/0.305, allocations: 120.2 kB / 433.7 MB, free: 7.457 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002107/0.3052, allocations: 173.1 kB / 433.8 MB, free: 7.438 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003911/0.3056, allocations: 326.4 kB / 434.2 MB, free: 7.348 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00121/0.3068, allocations: 0.793 MB / 434.9 MB, free: 7.234 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.3068, allocations: 1.25 kB / 434.9 MB, free: 7.234 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3068, allocations: 0.8438 kB / 434.9 MB, free: 7.234 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.743e-05/0.3068, allocations: 0.6562 kB / 435 MB, free: 7.234 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.002541/0.3094, allocations: 0.9707 MB / 435.9 MB, free: 6.656 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.3094, allocations: 11.31 kB / 435.9 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001407/0.3095, allocations: 82.41 kB / 436 MB, free: 6.617 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005056/0.31, allocations: 80.77 kB / 436.1 MB, free: 6.586 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008317/0.3109, allocations: 399.8 kB / 436.5 MB, free: 6.328 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.247e-05/0.3109, allocations: 35.19 kB / 436.5 MB, free: 6.328 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000143/0.3111, allocations: 52.88 kB / 436.6 MB, free: 6.324 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001232/0.3123, allocations: 0.6205 MB / 437.2 MB, free: 6.262 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.825e-05/0.3123, allocations: 6.391 kB / 437.2 MB, free: 6.262 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.731e-05/0.3124, allocations: 16.72 kB / 437.2 MB, free: 6.262 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.529e-05/0.3124, allocations: 11.72 kB / 437.2 MB, free: 6.262 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001265/0.3137, allocations: 0.5913 MB / 437.8 MB, free: 6.258 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002502/0.3162, allocations: 1.351 MB / 439.2 MB, free: 5.551 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/0.3172, allocations: 481.4 kB / 439.6 MB, free: 5.367 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005625/0.3178, allocations: 297.7 kB / 439.9 MB, free: 5.242 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.038e-05/0.3179, allocations: 9.656 kB / 439.9 MB, free: 5.242 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.817e-05/0.3179, allocations: 38.41 kB / 440 MB, free: 5.195 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.645e-06/0.3179, allocations: 4.281 kB / 440 MB, free: 5.195 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.006557/0.3244, allocations: 2.896 MB / 442.9 MB, free: 3.645 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.21e-05/0.3245, allocations: 59.62 kB / 442.9 MB, free: 3.582 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004458/0.3249, allocations: 362.7 kB / 443.3 MB, free: 3.398 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.847e-05/0.325, allocations: 48.94 kB / 443.3 MB, free: 3.355 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.3251, allocations: 202.7 kB / 443.5 MB, free: 3.184 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001827/0.3253, allocations: 262.2 kB / 443.8 MB, free: 2.988 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002295/0.3255, allocations: 136.9 kB / 443.9 MB, free: 2.918 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.525e-05/0.3256, allocations: 361.5 kB / 444.3 MB, free: 2.582 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006178/0.3262, allocations: 305.5 kB / 444.6 MB, free: 2.465 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006347/0.3269, allocations: 373.3 kB / 444.9 MB, free: 2.309 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009247/0.3278, allocations: 497.1 kB / 445.4 MB, free: 2.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.3278, allocations: 0 / 445.4 MB, free: 2.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001893/0.3297, allocations: 0.9368 MB / 446.4 MB, free: 1.695 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.457e-05/0.3297, allocations: 5.25 kB / 446.4 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.3297, allocations: 1.406 kB / 446.4 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001271/0.331, allocations: 0.5787 MB / 446.9 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00037/0.3314, allocations: 93.17 kB / 447 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001361/0.3327, allocations: 1.098 MB / 448.1 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007985/0.3335, allocations: 113.4 kB / 448.2 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.127e-05/0.3336, allocations: 24.83 kB / 448.3 MB, free: 0.7109 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.0003074/0.3339, allocations: 191.7 kB / 448.5 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001325/0.334, allocations: 58.42 kB / 448.5 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001415/0.3342, allocations: 76.25 kB / 448.6 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/0.3342, allocations: 8.125 kB / 448.6 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/0.3342, allocations: 0 / 448.6 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.3342, allocations: 4.031 kB / 448.6 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003091/0.3373, allocations: 1.61 MB / 450.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.3373, allocations: 0 / 450.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004177/0.3377, allocations: 88.53 kB / 450.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001287/0.339, allocations: 0.5379 MB / 450.8 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.183e-05/0.3391, allocations: 27.98 kB / 450.9 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001609/0.3407, allocations: 1.077 MB / 451.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3407, allocations: 4 kB / 451.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002742/0.3434, allocations: 1.307 MB / 453.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004299/0.3439, allocations: 200 kB / 453.4 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001439/0.344, allocations: 25.92 kB / 453.5 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006705/0.3447, allocations: 102.6 kB / 453.6 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003121/0.345, allocations: 130.2 kB / 453.7 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.511e-05/0.3451, allocations: 34.08 kB / 453.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000338/0.3454, allocations: 258.6 kB / 454 MB, free: 13.78 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3454, allocations: 0 / 454 MB, free: 13.78 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006318/0.346, allocations: 157.8 kB / 454.1 MB, free: 13.76 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.004241/0.3503, allocations: 2.131 MB / 456.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001833/0.3521, allocations: 0.7203 MB / 457 MB, free: 12.31 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.3521, allocations: 0 / 457 MB, free: 12.31 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009927/0.3531, allocations: 414.9 kB / 457.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009559/0.3541, allocations: 113.8 kB / 457.5 MB, free: 12.13 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01094/0.365, allocations: 5.576 MB / 463.1 MB, free: 8.727 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006026/0.3656, allocations: 0.864 MB / 463.9 MB, free: 7.953 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002928/0.3659, allocations: 50.67 kB / 464 MB, free: 7.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003137/0.3662, allocations: 171.6 kB / 464.2 MB, free: 7.789 MB / 366.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3662, allocations: 0 / 464.2 MB, free: 7.789 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05647/0.4227, allocations: 18.62 MB / 482.8 MB, free: 7.816 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.6/13.03, allocations: 15.94 kB / 482.8 MB, free: 7.801 MB / 382.1 MB " [Timeout remaining time 647] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.67800262896344]