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.001635/0.001635, allocations: 73.48 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.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.001409/0.001409, allocations: 150 kB / 24.49 MB, free: 3.723 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.386/1.386, allocations: 173.4 MB / 201.1 MB, free: 12.68 MB / 190.1 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: 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.0.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.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002247/0.002247, allocations: 51.73 kB / 319.4 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1432, allocations: 52.16 MB / 371.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.007208/0.1505, allocations: 2.876 MB / 374.4 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00338/0.1538, allocations: 1.001 MB / 375.4 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002625/0.1541, allocations: 7.938 kB / 375.5 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000375/0.1545, allocations: 75.23 kB / 375.5 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005725/0.155, allocations: 162.7 kB / 375.7 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001142/0.1562, allocations: 291.5 kB / 376 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0014/0.1576, allocations: 0.7997 MB / 376.8 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003018/0.1579, allocations: 89.53 kB / 376.9 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007945/0.1587, allocations: 366.9 kB / 377.2 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008337/0.1595, allocations: 354.7 kB / 377.6 MB, free: 1.305 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001639/0.1597, allocations: 56 kB / 377.6 MB, free: 1.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003604/0.16, allocations: 115.9 kB / 377.7 MB, free: 1.137 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002876/0.1603, allocations: 167.4 kB / 377.9 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004555/0.1608, allocations: 250.9 kB / 378.1 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001335/0.1621, allocations: 0.7278 MB / 378.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1621, allocations: 4 kB / 378.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1621, allocations: 0 / 378.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.959e-06/0.1621, allocations: 0 / 378.9 MB, free: 15.99 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.002912/0.165, allocations: 0.8281 MB / 379.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.1651, allocations: 12.03 kB / 379.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002116/0.1653, allocations: 60.56 kB / 379.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00091/0.1662, allocations: 310 kB / 380.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.524e-05/0.1663, allocations: 33.38 kB / 380.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001592/0.1664, allocations: 48.33 kB / 380.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002057/0.1685, allocations: 0.6113 MB / 380.8 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.283e-05/0.1685, allocations: 8 kB / 380.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.016e-05/0.1686, allocations: 20 kB / 380.8 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.554e-05/0.1687, allocations: 8 kB / 380.8 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002104/0.1708, allocations: 0.6011 MB / 381.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003484/0.1742, allocations: 1.088 MB / 382.5 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001732/0.176, allocations: 433.5 kB / 382.9 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001051/0.177, allocations: 290.2 kB / 383.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.347e-05/0.1771, allocations: 16.48 kB / 383.2 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.725e-05/0.1772, allocations: 39.06 kB / 383.2 MB, free: 11.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 3.397e-06/0.1772, allocations: 0 / 383.2 MB, free: 11.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=64): time 0.00634/0.1835, allocations: 2.489 MB / 385.7 MB, free: 8.945 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.012e-05/0.1835, allocations: 60.06 kB / 385.8 MB, free: 8.871 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003383/0.1839, allocations: 316.5 kB / 386.1 MB, free: 8.559 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.823e-05/0.184, allocations: 53.64 kB / 386.2 MB, free: 8.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001481/0.1841, allocations: 205.5 kB / 386.4 MB, free: 8.297 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002056/0.1843, allocations: 234.1 kB / 386.6 MB, free: 8.066 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002291/0.1845, allocations: 134.6 kB / 386.7 MB, free: 7.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.1847, allocations: 350.8 kB / 387.1 MB, free: 7.578 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006709/0.1854, allocations: 317.8 kB / 387.4 MB, free: 7.266 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006933/0.1861, allocations: 389 kB / 387.7 MB, free: 6.875 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001032/0.1871, allocations: 0.5106 MB / 388.3 MB, free: 6.352 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.1871, allocations: 3.938 kB / 388.3 MB, free: 6.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001794/0.1889, allocations: 0.9117 MB / 389.2 MB, free: 5.426 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.1889, allocations: 6.812 kB / 389.2 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.1889, allocations: 0 / 389.2 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001292/0.1902, allocations: 0.7229 MB / 389.9 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004055/0.1906, allocations: 103.8 kB / 390 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001499/0.1921, allocations: 1.091 MB / 391.1 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006841/0.1928, allocations: 103.9 kB / 391.2 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.045e-05/0.1929, allocations: 20 kB / 391.2 MB, free: 3.355 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 (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.0002711/0.1931, allocations: 195.7 kB / 391.4 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.1932, allocations: 47.67 kB / 391.5 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001485/0.1934, allocations: 72.75 kB / 391.5 MB, free: 3.031 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.1934, allocations: 4 kB / 391.5 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.1934, allocations: 0 / 391.5 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.789e-06/0.1934, allocations: 7.984 kB / 391.5 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00272/0.1961, allocations: 1.383 MB / 392.9 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.1961, allocations: 0 / 392.9 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000436/0.1966, allocations: 87.89 kB / 393 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0012/0.1978, allocations: 0.7063 MB / 393.7 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.578e-05/0.1978, allocations: 27.95 kB / 393.7 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001404/0.1992, allocations: 1.056 MB / 394.8 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.1992, allocations: 7.938 kB / 394.8 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002526/0.2018, allocations: 1.304 MB / 396.1 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002682/0.202, allocations: 111.6 kB / 396.2 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001102/0.2022, allocations: 24 kB / 396.2 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006515/0.2028, allocations: 99.86 kB / 396.3 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002915/0.2031, allocations: 132.3 kB / 396.5 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.324e-05/0.2032, allocations: 27.95 kB / 396.5 MB, free: 13.97 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002417/0.2034, allocations: 219.1 kB / 396.7 MB, free: 13.76 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2034, allocations: 8 kB / 396.7 MB, free: 13.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005371/0.2039, allocations: 159.9 kB / 396.9 MB, free: 13.6 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.0002685/0.2042, allocations: 146.9 kB / 397 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001668/0.2059, allocations: 0.7264 MB / 397.7 MB, free: 12.72 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2059, allocations: 3.938 kB / 397.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008793/0.2068, allocations: 410.1 kB / 398.1 MB, free: 12.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006344/0.2074, allocations: 93.77 kB / 398.2 MB, free: 12.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002654/0.21, allocations: 1.399 MB / 399.6 MB, free: 10.8 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002549/0.2103, allocations: 241.6 kB / 399.9 MB, free: 10.54 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001777/0.2105, allocations: 47.44 kB / 399.9 MB, free: 10.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001199/0.2106, allocations: 44.48 kB / 400 MB, free: 10.45 MB / 366.1 MB Notification: Performance of SimCode: time 3.6e-07/0.2106, allocations: 0 / 400 MB, free: 10.45 MB / 366.1 MB Notification: Performance of Templates: time 0.01965/0.2302, allocations: 11.51 MB / 411.5 MB, free: 15.05 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/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: 4.738663029042073]