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.001473/0.001473, allocations: 124.8 kB / 17.79 MB, free: 5.266 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.001461/0.001461, allocations: 186.9 kB / 20.73 MB, free: 2.332 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.336/1.336, allocations: 225.6 MB / 249.1 MB, free: 3.602 MB / 190.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.00144/0.00144, allocations: 55.91 kB / 365.6 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09354/0.09498, allocations: 52.14 MB / 417.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.00432/0.0993, allocations: 3.118 MB / 420.9 MB, free: 9.555 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001809/0.1011, allocations: 1.04 MB / 421.9 MB, free: 8.508 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001624/0.1013, allocations: 11.94 kB / 421.9 MB, free: 8.496 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002436/0.1015, allocations: 75.3 kB / 422 MB, free: 8.422 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002791/0.1018, allocations: 158.6 kB / 422.2 MB, free: 8.266 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005988/0.1024, allocations: 275.5 kB / 422.4 MB, free: 7.996 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007948/0.1032, allocations: 0.8115 MB / 423.3 MB, free: 7.184 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001957/0.1034, allocations: 93.16 kB / 423.3 MB, free: 7.082 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004444/0.1038, allocations: 358.9 kB / 423.7 MB, free: 6.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004534/0.1043, allocations: 386.6 kB / 424.1 MB, free: 6.352 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.675e-05/0.1044, allocations: 60 kB / 424.1 MB, free: 6.293 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001943/0.1046, allocations: 115.9 kB / 424.2 MB, free: 6.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001649/0.1047, allocations: 151.5 kB / 424.4 MB, free: 6.031 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003021/0.105, allocations: 302.5 kB / 424.7 MB, free: 5.734 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008204/0.1059, allocations: 0.7238 MB / 425.4 MB, free: 5.008 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1059, allocations: 0 / 425.4 MB, free: 5.008 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1059, allocations: 4 kB / 425.4 MB, free: 5.004 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.086e-05/0.1059, allocations: 0 / 425.4 MB, free: 5.004 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001739/0.1076, allocations: 0.9073 MB / 426.3 MB, free: 4.047 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.1077, allocations: 12.03 kB / 426.3 MB, free: 4.035 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001169/0.1078, allocations: 78.7 kB / 426.4 MB, free: 3.949 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001211/0.1079, allocations: 60.56 kB / 426.5 MB, free: 3.891 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005801/0.1085, allocations: 368 kB / 426.8 MB, free: 3.492 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.985e-05/0.1085, allocations: 37.31 kB / 426.9 MB, free: 3.457 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.322e-05/0.1086, allocations: 48.33 kB / 426.9 MB, free: 3.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001102/0.1097, allocations: 0.6189 MB / 427.5 MB, free: 2.777 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.155e-05/0.1097, allocations: 0 / 427.5 MB, free: 2.777 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.208e-05/0.1098, allocations: 16 kB / 427.5 MB, free: 2.762 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.195e-05/0.1098, allocations: 12 kB / 427.6 MB, free: 2.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001184/0.111, allocations: 0.605 MB / 428.2 MB, free: 2.145 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002273/0.1133, allocations: 1.313 MB / 429.5 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009415/0.1142, allocations: 442.5 kB / 429.9 MB, free: 336 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005428/0.1147, allocations: 290.4 kB / 430.2 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.333e-05/0.1148, allocations: 4.562 kB / 430.2 MB, free: 40 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.742e-05/0.1148, allocations: 43.16 kB / 430.2 MB, free: 15.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 1.673e-06/0.1148, allocations: 0 / 430.2 MB, free: 15.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.006079/0.1209, allocations: 2.856 MB / 433.1 MB, free: 12.99 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.173e-05/0.121, allocations: 67.91 kB / 433.2 MB, free: 12.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003548/0.1213, allocations: 333.6 kB / 433.5 MB, free: 12.58 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.676e-05/0.1214, allocations: 49.69 kB / 433.5 MB, free: 12.53 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001555/0.1215, allocations: 197.5 kB / 433.7 MB, free: 12.33 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002137/0.1217, allocations: 230.1 kB / 434 MB, free: 12.1 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002275/0.122, allocations: 138.6 kB / 434.1 MB, free: 11.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.1222, allocations: 354.7 kB / 434.4 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006418/0.1228, allocations: 325.8 kB / 434.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006627/0.1235, allocations: 381 kB / 435.1 MB, free: 10.9 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009787/0.1244, allocations: 0.5069 MB / 435.6 MB, free: 10.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1244, allocations: 0 / 435.6 MB, free: 10.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001746/0.1262, allocations: 0.9156 MB / 436.5 MB, free: 9.461 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.19e-05/0.1262, allocations: 10.19 kB / 436.6 MB, free: 9.453 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.942e-06/0.1262, allocations: 0 / 436.6 MB, free: 9.453 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001241/0.1275, allocations: 0.7307 MB / 437.3 MB, free: 8.719 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003725/0.1278, allocations: 99.88 kB / 437.4 MB, free: 8.621 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001466/0.1293, allocations: 1.092 MB / 438.5 MB, free: 7.504 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006117/0.1299, allocations: 103.9 kB / 438.6 MB, free: 7.402 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.783e-05/0.13, allocations: 31.98 kB / 438.6 MB, free: 7.371 MB / 366.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.0002517/0.1302, allocations: 179.8 kB / 438.8 MB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000113/0.1303, allocations: 55.67 kB / 438.8 MB, free: 7.133 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001558/0.1305, allocations: 64.75 kB / 438.9 MB, free: 7.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.238e-06/0.1305, allocations: 8 kB / 438.9 MB, free: 7.062 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.1305, allocations: 7.984 kB / 438.9 MB, free: 7.055 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.1305, allocations: 4 kB / 438.9 MB, free: 7.051 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002756/0.1333, allocations: 1.553 MB / 440.5 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.1333, allocations: 3.938 kB / 440.5 MB, free: 5.434 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000414/0.1337, allocations: 95.88 kB / 440.6 MB, free: 5.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001153/0.1348, allocations: 0.7054 MB / 441.3 MB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.169e-05/0.1349, allocations: 27.97 kB / 441.3 MB, free: 4.605 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001355/0.1362, allocations: 1.067 MB / 442.4 MB, free: 3.512 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1363, allocations: 0 / 442.4 MB, free: 3.512 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002424/0.1387, allocations: 1.293 MB / 443.7 MB, free: 2.195 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003004/0.139, allocations: 192.7 kB / 443.9 MB, free: 1.988 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000102/0.1391, allocations: 23.94 kB / 443.9 MB, free: 1.965 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000561/0.1396, allocations: 103.9 kB / 444 MB, free: 1.863 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002548/0.1399, allocations: 120.4 kB / 444.1 MB, free: 1.746 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.006e-05/0.1399, allocations: 27.97 kB / 444.1 MB, free: 1.719 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002445/0.1402, allocations: 235.2 kB / 444.4 MB, free: 1.488 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1402, allocations: 4 kB / 444.4 MB, free: 1.484 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005118/0.1407, allocations: 163.9 kB / 444.5 MB, free: 1.324 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,19)} Notification: Performance of Backend phase and start with SimCode phase: time 0.1645/0.3052, allocations: 1.878 MB / 446.4 MB, free: 31.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001385/0.3065, allocations: 0.7241 MB / 447.1 MB, free: 31.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3065, allocations: 0.5 kB / 447.1 MB, free: 31.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006868/0.3072, allocations: 416.7 kB / 447.5 MB, free: 31.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006385/0.3079, allocations: 94.12 kB / 447.6 MB, free: 31.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007289/0.3152, allocations: 5.493 MB / 453.1 MB, free: 29.31 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003943/0.3155, allocations: 0.8417 MB / 454 MB, free: 28.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002249/0.3158, allocations: 51.69 kB / 454 MB, free: 28.59 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000203/0.316, allocations: 153.3 kB / 454.2 MB, free: 28.48 MB / 366.1 MB Notification: Performance of SimCode: time 9.02e-07/0.316, allocations: 1.125 kB / 454.2 MB, free: 28.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04541/0.3614, allocations: 18.04 MB / 472.2 MB, free: 22.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.4/12.76, allocations: 13.06 kB / 472.2 MB, free: 22.17 MB / 366.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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.184543321840465]