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.001358/0.001358, allocations: 73.72 kB / 21.24 MB, free: 0.5547 MB / 14.72 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.001514/0.001514, allocations: 160.5 kB / 24.5 MB, free: 3.715 MB / 14.72 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 1.547/1.547, allocations: 177.2 MB / 204.9 MB, free: 8.98 MB / 190.1 MB " [Timeout remaining time 178] 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: translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1500,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1500,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00153/0.00153, allocations: 54.36 kB / 325.6 MB, free: 264 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08943/0.09096, allocations: 53.34 MB / 378.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004467/0.09543, allocations: 3.005 MB / 381.9 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002046/0.09747, allocations: 1.212 MB / 383.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001511/0.09763, allocations: 7.938 kB / 383.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002906/0.09792, allocations: 99.09 kB / 383.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004336/0.09835, allocations: 226.4 kB / 383.4 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004961/0.09885, allocations: 283.5 kB / 383.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008336/0.09968, allocations: 0.8504 MB / 384.6 MB, free: 9.957 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001913/0.09987, allocations: 94.12 kB / 384.7 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005132/0.1004, allocations: 394.8 kB / 385 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005088/0.1009, allocations: 374.6 kB / 385.4 MB, free: 9.105 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001053/0.101, allocations: 60 kB / 385.5 MB, free: 9.047 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002293/0.1012, allocations: 131.8 kB / 385.6 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002142/0.1014, allocations: 179.5 kB / 385.8 MB, free: 8.742 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002923/0.1017, allocations: 274.8 kB / 386 MB, free: 8.473 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008552/0.1026, allocations: 0.8055 MB / 386.8 MB, free: 7.664 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1026, allocations: 4 kB / 386.8 MB, free: 7.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.91e-07/0.1026, allocations: 4 kB / 386.9 MB, free: 7.656 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.1026, allocations: 0 / 386.9 MB, free: 7.656 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.00183/0.1044, allocations: 0.8825 MB / 387.7 MB, free: 6.742 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.132e-05/0.1045, allocations: 12.03 kB / 387.7 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003194/0.1048, allocations: 80.48 kB / 387.8 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005892/0.1054, allocations: 332.5 kB / 388.1 MB, free: 6.301 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.185e-05/0.1054, allocations: 37.38 kB / 388.2 MB, free: 6.266 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.691e-05/0.1055, allocations: 52.33 kB / 388.2 MB, free: 6.215 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00116/0.1067, allocations: 0.6191 MB / 388.9 MB, free: 5.578 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.33e-05/0.1067, allocations: 3.984 kB / 388.9 MB, free: 5.574 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.94e-05/0.1068, allocations: 27.92 kB / 388.9 MB, free: 5.547 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.221e-05/0.1068, allocations: 16 kB / 388.9 MB, free: 5.531 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001295/0.1081, allocations: 0.5777 MB / 389.5 MB, free: 4.957 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002291/0.1104, allocations: 1.119 MB / 390.6 MB, free: 3.797 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001107/0.1115, allocations: 471.8 kB / 391.1 MB, free: 3.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006174/0.1121, allocations: 298.7 kB / 391.4 MB, free: 3.027 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.933e-05/0.1121, allocations: 4.656 kB / 391.4 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.412e-05/0.1122, allocations: 43.16 kB / 391.4 MB, free: 2.969 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 1.974e-06/0.1122, allocations: 0 / 391.4 MB, free: 2.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.006912/0.1191, allocations: 2.524 MB / 393.9 MB, free: 412 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.621e-05/0.1191, allocations: 60.06 kB / 394 MB, free: 340 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004214/0.1195, allocations: 361.6 kB / 394.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.363e-05/0.1196, allocations: 49.7 kB / 394.4 MB, free: 15.92 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001558/0.1198, allocations: 197.6 kB / 394.6 MB, free: 15.72 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002288/0.12, allocations: 261.8 kB / 394.8 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002434/0.1203, allocations: 134.6 kB / 395 MB, free: 15.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.1204, allocations: 358.8 kB / 395.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000682/0.1211, allocations: 305.9 kB / 395.6 MB, free: 14.67 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007751/0.1219, allocations: 373.4 kB / 396 MB, free: 14.3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001101/0.123, allocations: 497 kB / 396.5 MB, free: 13.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.123, allocations: 4 kB / 396.5 MB, free: 13.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002056/0.125, allocations: 0.9313 MB / 397.4 MB, free: 12.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.1251, allocations: 4 kB / 397.4 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.1251, allocations: 0 / 397.4 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001384/0.1265, allocations: 0.5747 MB / 398 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003845/0.1268, allocations: 95.83 kB / 398.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001645/0.1285, allocations: 1.105 MB / 399.2 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007229/0.1292, allocations: 107.9 kB / 399.3 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.922e-05/0.1293, allocations: 24 kB / 399.3 MB, free: 10.92 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 (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.0002751/0.1295, allocations: 196 kB / 399.5 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000129/0.1297, allocations: 59.56 kB / 399.6 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001558/0.1298, allocations: 76.98 kB / 399.6 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-06/0.1298, allocations: 8 kB / 399.6 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.1298, allocations: 3.984 kB / 399.6 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.1298, allocations: 0 / 399.6 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002925/0.1328, allocations: 1.411 MB / 401.1 MB, free: 9.117 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.1328, allocations: 4 kB / 401.1 MB, free: 9.113 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004324/0.1332, allocations: 83.89 kB / 401.1 MB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001242/0.1345, allocations: 0.5434 MB / 401.7 MB, free: 8.484 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.528e-05/0.1345, allocations: 27.97 kB / 401.7 MB, free: 8.457 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001621/0.1361, allocations: 1.065 MB / 402.8 MB, free: 7.367 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1361, allocations: 0 / 402.8 MB, free: 7.367 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002759/0.1389, allocations: 1.304 MB / 404.1 MB, free: 6.043 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002823/0.1392, allocations: 119.5 kB / 404.2 MB, free: 5.926 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001114/0.1393, allocations: 24 kB / 404.2 MB, free: 5.902 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007036/0.14, allocations: 103.9 kB / 404.3 MB, free: 5.801 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002986/0.1403, allocations: 144.4 kB / 404.5 MB, free: 5.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.219e-05/0.1404, allocations: 27.97 kB / 404.5 MB, free: 5.633 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002864/0.1406, allocations: 251.2 kB / 404.7 MB, free: 5.387 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1406, allocations: 3.938 kB / 404.7 MB, free: 5.383 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005458/0.1412, allocations: 160 kB / 404.9 MB, free: 5.227 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.001454/0.1426, allocations: 425 kB / 405.3 MB, free: 4.957 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001753/0.1444, allocations: 0.723 MB / 406 MB, free: 4.238 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1444, allocations: 0 / 406 MB, free: 4.238 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009225/0.1453, allocations: 416.6 kB / 406.4 MB, free: 3.828 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007287/0.1461, allocations: 121.2 kB / 406.6 MB, free: 3.715 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002667/0.1487, allocations: 1.411 MB / 408 MB, free: 2.273 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003079/0.149, allocations: 267.5 kB / 408.2 MB, free: 1.984 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001891/0.1492, allocations: 52.39 kB / 408.3 MB, free: 1.934 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001387/0.1494, allocations: 48.48 kB / 408.3 MB, free: 1.887 MB / 366.1 MB Notification: Performance of SimCode: time 7.82e-07/0.1494, allocations: 3.938 kB / 408.3 MB, free: 1.883 MB / 366.1 MB Notification: Performance of Templates: time 0.02034/0.1697, allocations: 11.83 MB / 420.2 MB, free: 6.176 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_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: 4.770344990072772]