Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0008122/0.0008122, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008162/0.0008162, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8535/0.8535, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.188e-05/2.35e-05, allocations: 6.219 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.002956/0.002979, allocations: 3.014 MB / 327.6 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001366/0.004345, allocations: 1.216 MB / 328.8 MB, free: 11.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001452/0.00449, allocations: 7.938 kB / 328.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002557/0.004746, allocations: 99.08 kB / 328.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003105/0.005056, allocations: 230.2 kB / 329.1 MB, free: 11.36 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003668/0.005423, allocations: 287.4 kB / 329.4 MB, free: 11.08 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005099/0.005933, allocations: 0.8701 MB / 330.3 MB, free: 10.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001614/0.006095, allocations: 93.92 kB / 330.4 MB, free: 10.12 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004726/0.006567, allocations: 0.5223 MB / 330.9 MB, free: 9.594 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002914/0.006859, allocations: 339.2 kB / 331.2 MB, free: 9.262 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.38e-05/0.006922, allocations: 64 kB / 331.3 MB, free: 9.199 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001551/0.007078, allocations: 119.9 kB / 331.4 MB, free: 9.082 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001331/0.007211, allocations: 179.4 kB / 331.6 MB, free: 8.906 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001512/0.007362, allocations: 239.4 kB / 331.8 MB, free: 8.672 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005942/0.007956, allocations: 0.8529 MB / 332.7 MB, free: 7.816 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.933e-06/0.007958, allocations: 0 / 332.7 MB, free: 7.816 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.007959, allocations: 0 / 332.7 MB, free: 7.816 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.316e-06/0.007967, allocations: 0 / 332.7 MB, free: 7.816 MB / 298.7 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.001106/0.009073, allocations: 0.8785 MB / 333.5 MB, free: 6.906 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.009112, allocations: 12.03 kB / 333.5 MB, free: 6.895 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.638e-05/0.009189, allocations: 82.7 kB / 333.6 MB, free: 6.805 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001857/0.009374, allocations: 80.55 kB / 333.7 MB, free: 6.727 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003956/0.00977, allocations: 347.6 kB / 334 MB, free: 6.359 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.89e-05/0.009799, allocations: 33.38 kB / 334.1 MB, free: 6.328 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.48e-05/0.009864, allocations: 52.33 kB / 334.1 MB, free: 6.277 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006956/0.01056, allocations: 0.6156 MB / 334.7 MB, free: 5.648 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/0.01058, allocations: 4.188 kB / 334.7 MB, free: 5.645 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.789e-05/0.01061, allocations: 19.94 kB / 334.8 MB, free: 5.625 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.266e-06/0.01062, allocations: 12 kB / 334.8 MB, free: 5.613 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007379/0.01136, allocations: 0.5855 MB / 335.4 MB, free: 5.031 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001411/0.01277, allocations: 1.177 MB / 336.5 MB, free: 3.801 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006831/0.01345, allocations: 481.9 kB / 337 MB, free: 3.32 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003555/0.01381, allocations: 294.7 kB / 337.3 MB, free: 3.027 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.069e-05/0.01385, allocations: 8.656 kB / 337.3 MB, free: 3.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.01387, allocations: 43.22 kB / 337.3 MB, free: 2.965 MB / 298.7 MB Notification: Performance of pre-optimization done (n=67): time 2.014e-06/0.01388, allocations: 0 / 337.3 MB, free: 2.965 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.003957/0.01783, allocations: 2.532 MB / 339.9 MB, free: 400 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.986e-05/0.01787, allocations: 60.06 kB / 339.9 MB, free: 328 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002988/0.01817, allocations: 365.6 kB / 340.3 MB, free: 15.95 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.99e-05/0.01822, allocations: 53.64 kB / 340.3 MB, free: 15.89 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.203e-05/0.01831, allocations: 201.6 kB / 340.5 MB, free: 15.7 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001384/0.01845, allocations: 261.8 kB / 340.8 MB, free: 15.44 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001365/0.01859, allocations: 138.6 kB / 340.9 MB, free: 15.29 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.18e-05/0.01868, allocations: 358.8 kB / 341.3 MB, free: 14.93 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003858/0.01907, allocations: 305.9 kB / 341.6 MB, free: 14.64 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003975/0.01946, allocations: 369.4 kB / 341.9 MB, free: 14.27 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005899/0.02005, allocations: 497 kB / 342.4 MB, free: 13.78 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.02006, allocations: 0 / 342.4 MB, free: 13.78 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001177/0.02123, allocations: 0.9314 MB / 343.4 MB, free: 12.84 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.02125, allocations: 4 kB / 343.4 MB, free: 12.83 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.02125, allocations: 0 / 343.4 MB, free: 12.83 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007872/0.02204, allocations: 0.5746 MB / 343.9 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001885/0.02223, allocations: 95.88 kB / 344 MB, free: 12.16 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009993/0.02323, allocations: 1.101 MB / 345.1 MB, free: 11.03 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000319/0.02355, allocations: 107.9 kB / 345.2 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.438e-05/0.02358, allocations: 31.98 kB / 345.3 MB, free: 10.89 MB / 314.7 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.0001748/0.02376, allocations: 184 kB / 345.5 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.445e-05/0.02383, allocations: 59.61 kB / 345.5 MB, free: 10.65 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.712e-05/0.02392, allocations: 73.19 kB / 345.6 MB, free: 10.57 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.02393, allocations: 11.98 kB / 345.6 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.02393, allocations: 0 / 345.6 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.02394, allocations: 7.922 kB / 345.6 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001689/0.02563, allocations: 1.469 MB / 347.1 MB, free: 9.027 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.02563, allocations: 0 / 347.1 MB, free: 9.027 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002765/0.02591, allocations: 87.89 kB / 347.2 MB, free: 8.941 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007026/0.02661, allocations: 0.5395 MB / 347.7 MB, free: 8.398 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.301e-05/0.02665, allocations: 31.97 kB / 347.7 MB, free: 8.367 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009127/0.02756, allocations: 1.073 MB / 348.8 MB, free: 7.27 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-06/0.02757, allocations: 4 kB / 348.8 MB, free: 7.266 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001531/0.0291, allocations: 1.297 MB / 350.1 MB, free: 5.949 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001687/0.02927, allocations: 123.6 kB / 350.2 MB, free: 5.828 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.771e-05/0.02933, allocations: 28 kB / 350.2 MB, free: 5.801 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002952/0.02963, allocations: 103.9 kB / 350.3 MB, free: 5.699 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000178/0.02981, allocations: 128.4 kB / 350.5 MB, free: 5.574 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.5e-05/0.02984, allocations: 35.95 kB / 350.5 MB, free: 5.539 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001651/0.03001, allocations: 255.2 kB / 350.8 MB, free: 5.289 MB / 314.7 MB Notification: Performance of sort global known variables: time 1e-07/0.03001, allocations: 0 / 350.8 MB, free: 5.289 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003895/0.0304, allocations: 159.9 kB / 350.9 MB, free: 5.133 MB / 314.7 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.00279/0.03319, allocations: 2.158 MB / 353.1 MB, free: 3.098 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001218/0.0344, allocations: 0.7191 MB / 353.8 MB, free: 2.383 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.03441, allocations: 0 / 353.8 MB, free: 2.383 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005313/0.03494, allocations: 428.5 kB / 354.2 MB, free: 1.965 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004972/0.03544, allocations: 118.1 kB / 354.3 MB, free: 1.859 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005918/0.04135, allocations: 5.409 MB / 359.7 MB, free: 12.34 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001741/0.04153, allocations: 263.8 kB / 360 MB, free: 12.05 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001592/0.04169, allocations: 52.39 kB / 360 MB, free: 12 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001827/0.04187, allocations: 176.4 kB / 360.2 MB, free: 11.83 MB / 330.7 MB Notification: Performance of SimCode: time 1.323e-06/0.04187, allocations: 3.938 kB / 360.2 MB, free: 11.82 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03136/0.07323, allocations: 17.54 MB / 377.8 MB, free: 10.44 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.675/7.748, allocations: 3 kB / 377.8 MB, free: 10.44 MB / 346.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_CoupledClutches_fmu --startTime=0 --stopTime=1.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_CoupledClutches.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 9.381756125018]