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.0008503/0.0008503, allocations: 76.06 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.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.0007736/0.0007736, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.862/0.862, allocations: 173.4 MB / 200.5 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] 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 1.963e-06/1.963e-06, allocations: 0 / 318.4 MB, free: 6.242 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.25e-05/2.447e-05, allocations: 10.22 kB / 318.4 MB, free: 6.23 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003072/0.003097, allocations: 2.858 MB / 321.3 MB, free: 3.352 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001496/0.004593, allocations: 1.001 MB / 322.3 MB, free: 2.344 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001722/0.004765, allocations: 7.938 kB / 322.3 MB, free: 2.336 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002318/0.004997, allocations: 91.05 kB / 322.4 MB, free: 2.246 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002133/0.00521, allocations: 166.6 kB / 322.5 MB, free: 2.082 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005942/0.005804, allocations: 291.3 kB / 322.8 MB, free: 1.797 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005759/0.00638, allocations: 0.8189 MB / 323.6 MB, free: 0.9766 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001681/0.006548, allocations: 89.56 kB / 323.7 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004826/0.007031, allocations: 499 kB / 324.2 MB, free: 408 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003111/0.007342, allocations: 327.2 kB / 324.5 MB, free: 80 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.571e-05/0.007408, allocations: 56 kB / 324.6 MB, free: 24 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000168/0.007576, allocations: 108 kB / 324.7 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001141/0.00769, allocations: 159.5 kB / 324.9 MB, free: 15.76 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001453/0.007835, allocations: 211.5 kB / 325.1 MB, free: 15.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006128/0.008448, allocations: 0.7906 MB / 325.9 MB, free: 14.76 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.008452, allocations: 0 / 325.9 MB, free: 14.76 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.008454, allocations: 0 / 325.9 MB, free: 14.76 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.008464, allocations: 4 kB / 325.9 MB, free: 14.76 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001088/0.009552, allocations: 0.8236 MB / 326.7 MB, free: 13.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.009593, allocations: 16.86 kB / 326.7 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.264e-05/0.009666, allocations: 82.72 kB / 326.8 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.278e-05/0.009749, allocations: 60.56 kB / 326.8 MB, free: 13.74 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004194/0.01017, allocations: 297.4 kB / 327.1 MB, free: 13.43 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.345e-05/0.0102, allocations: 37.38 kB / 327.2 MB, free: 13.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.748e-05/0.01027, allocations: 48.33 kB / 327.2 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007269/0.011, allocations: 0.6156 MB / 327.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.98e-05/0.01102, allocations: 12.12 kB / 327.8 MB, free: 12.7 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.067e-05/0.01106, allocations: 19.94 kB / 327.9 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.01106, allocations: 12 kB / 327.9 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007372/0.0118, allocations: 0.5934 MB / 328.5 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001514/0.01332, allocations: 1.157 MB / 329.6 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000662/0.01398, allocations: 433.6 kB / 330 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003538/0.01433, allocations: 294.2 kB / 330.3 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.757e-05/0.01437, allocations: 4.5 kB / 330.3 MB, free: 10.13 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.234e-05/0.01439, allocations: 39.06 kB / 330.4 MB, free: 10.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 2.195e-06/0.01439, allocations: 0 / 330.4 MB, free: 10.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=64): time 0.003709/0.0181, allocations: 2.482 MB / 332.9 MB, free: 7.555 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.767e-05/0.01814, allocations: 60.06 kB / 332.9 MB, free: 7.48 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002461/0.01839, allocations: 341.6 kB / 333.2 MB, free: 7.137 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.373e-05/0.01843, allocations: 49.7 kB / 333.3 MB, free: 7.082 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.01854, allocations: 193.6 kB / 333.5 MB, free: 6.891 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001301/0.01867, allocations: 234.1 kB / 333.7 MB, free: 6.66 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001375/0.0188, allocations: 126.6 kB / 333.8 MB, free: 6.531 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.785e-05/0.0189, allocations: 362.7 kB / 334.2 MB, free: 6.168 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003797/0.01928, allocations: 313.8 kB / 334.5 MB, free: 5.863 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003986/0.01968, allocations: 385 kB / 334.9 MB, free: 5.48 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005996/0.02028, allocations: 0.5106 MB / 335.4 MB, free: 4.965 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.02028, allocations: 0 / 335.4 MB, free: 4.965 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001075/0.02136, allocations: 0.9194 MB / 336.3 MB, free: 4.035 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.02138, allocations: 4 kB / 336.3 MB, free: 4.031 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.585e-06/0.02138, allocations: 8.031 kB / 336.3 MB, free: 4.023 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008098/0.02219, allocations: 0.7268 MB / 337 MB, free: 3.293 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002048/0.0224, allocations: 99.83 kB / 337.1 MB, free: 3.195 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009393/0.02334, allocations: 1.09 MB / 338.2 MB, free: 2.082 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003311/0.02367, allocations: 107.9 kB / 338.3 MB, free: 1.977 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.58e-05/0.0237, allocations: 27.92 kB / 338.4 MB, free: 1.949 MB / 298.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 (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.000195/0.0239, allocations: 188.3 kB / 338.5 MB, free: 1.754 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.616e-05/0.02397, allocations: 47.72 kB / 338.6 MB, free: 1.707 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.158e-05/0.02405, allocations: 68.75 kB / 338.7 MB, free: 1.633 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.02405, allocations: 8 kB / 338.7 MB, free: 1.625 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.02406, allocations: 0 / 338.7 MB, free: 1.625 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.02407, allocations: 3.984 kB / 338.7 MB, free: 1.621 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001673/0.02574, allocations: 1.453 MB / 340.1 MB, free: 112 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.02574, allocations: 0 / 340.1 MB, free: 112 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002169/0.02596, allocations: 83.89 kB / 340.2 MB, free: 28 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006919/0.02665, allocations: 0.7074 MB / 340.9 MB, free: 15.31 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.622e-05/0.02669, allocations: 27.97 kB / 340.9 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008624/0.02755, allocations: 1.068 MB / 342 MB, free: 14.19 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.02755, allocations: 0 / 342 MB, free: 14.19 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001559/0.02911, allocations: 1.296 MB / 343.3 MB, free: 12.88 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001901/0.0293, allocations: 115.6 kB / 343.4 MB, free: 12.76 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.786e-05/0.02937, allocations: 24 kB / 343.4 MB, free: 12.74 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002902/0.02966, allocations: 99.86 kB / 343.5 MB, free: 12.64 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001699/0.02983, allocations: 128.3 kB / 343.7 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.81e-05/0.02987, allocations: 35.95 kB / 343.7 MB, free: 12.48 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001475/0.03001, allocations: 235.2 kB / 343.9 MB, free: 12.25 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03001, allocations: 0 / 343.9 MB, free: 12.25 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003525/0.03037, allocations: 160 kB / 344.1 MB, free: 12.09 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,19)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00185/0.03222, allocations: 1.886 MB / 346 MB, free: 10.18 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009726/0.03319, allocations: 0.7185 MB / 346.7 MB, free: 9.461 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.03319, allocations: 0 / 346.7 MB, free: 9.461 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004589/0.03365, allocations: 418.2 kB / 347.1 MB, free: 9.059 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004229/0.03407, allocations: 104.8 kB / 347.2 MB, free: 8.961 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005371/0.03944, allocations: 5.337 MB / 352.5 MB, free: 3.523 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001468/0.03959, allocations: 245.6 kB / 352.8 MB, free: 3.258 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001253/0.03972, allocations: 52.16 kB / 352.8 MB, free: 3.207 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001566/0.03987, allocations: 152.4 kB / 353 MB, free: 3.059 MB / 314.7 MB Notification: Performance of SimCode: time 5.61e-07/0.03987, allocations: 0 / 353 MB, free: 3.059 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02746/0.06734, allocations: 16.75 MB / 369.7 MB, free: 2.539 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.659/7.727, allocations: 0 / 369.7 MB, free: 2.539 MB / 330.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins/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: 9.398143602535129]