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.0007881/0.0007881, allocations: 76.08 kB / 21.18 MB, free: 3.383 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.0008809/0.0008809, allocations: 141.1 kB / 24.54 MB, free: 28 kB / 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.9353/0.9353, allocations: 173.3 MB / 201.1 MB, free: 9.324 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: 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 2.475e-06/2.475e-06, allocations: 4 kB / 268 MB, free: 6.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.457e-05/1.704e-05, allocations: 6.25 kB / 268 MB, free: 6.43 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.002795/0.002812, allocations: 3.084 MB / 271.1 MB, free: 3.332 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001392/0.004203, allocations: 1.044 MB / 272.1 MB, free: 2.281 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001459/0.004349, allocations: 7.938 kB / 272.1 MB, free: 2.273 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002127/0.004562, allocations: 75.25 kB / 272.2 MB, free: 2.199 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001936/0.004755, allocations: 170.5 kB / 272.4 MB, free: 2.031 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005259/0.005281, allocations: 287.4 kB / 272.6 MB, free: 1.75 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005307/0.005812, allocations: 0.8226 MB / 273.5 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001646/0.005977, allocations: 85.58 kB / 273.5 MB, free: 0.832 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000426/0.006403, allocations: 0.4912 MB / 274 MB, free: 348 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003037/0.006706, allocations: 319.3 kB / 274.4 MB, free: 28 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.982e-05/0.006786, allocations: 64.05 kB / 274.4 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001548/0.006941, allocations: 111.8 kB / 274.5 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001138/0.007055, allocations: 159.5 kB / 274.7 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001549/0.00721, allocations: 219.5 kB / 274.9 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000472/0.007682, allocations: 0.5762 MB / 275.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.324e-06/0.007684, allocations: 0 / 275.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.007685, allocations: 0 / 275.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.007691, allocations: 0 / 275.5 MB, free: 14.91 MB / 266.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.000937/0.008628, allocations: 0.8814 MB / 276.4 MB, free: 13.99 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.179e-05/0.00866, allocations: 8.031 kB / 276.4 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001204/0.00878, allocations: 100.6 kB / 276.5 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003655/0.009146, allocations: 316.2 kB / 276.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.404e-05/0.00918, allocations: 29.38 kB / 276.8 MB, free: 13.51 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.832e-05/0.009248, allocations: 48.33 kB / 276.8 MB, free: 13.46 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006291/0.009877, allocations: 0.5359 MB / 277.4 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.009893, allocations: 4.141 kB / 277.4 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.599e-05/0.009929, allocations: 24.11 kB / 277.4 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.248e-05/0.009942, allocations: 12 kB / 277.4 MB, free: 12.87 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004967/0.01044, allocations: 401.7 kB / 277.8 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001234/0.01167, allocations: 1.121 MB / 278.9 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005126/0.01219, allocations: 357.8 kB / 279.3 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002332/0.01242, allocations: 201.1 kB / 279.5 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.347e-05/0.01246, allocations: 8.5 kB / 279.5 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.135e-05/0.01248, allocations: 45.88 kB / 279.5 MB, free: 10.68 MB / 266.7 MB Notification: Performance of pre-optimization done (n=58): time 1.373e-06/0.01248, allocations: 0 / 279.5 MB, free: 10.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=64): time 0.002921/0.01541, allocations: 2.009 MB / 281.5 MB, free: 8.625 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.724e-05/0.01543, allocations: 60.06 kB / 281.6 MB, free: 8.551 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002115/0.01564, allocations: 358.2 kB / 281.9 MB, free: 8.188 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.827e-05/0.01568, allocations: 45.69 kB / 282 MB, free: 8.137 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.01579, allocations: 252.2 kB / 282.2 MB, free: 7.887 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/0.01591, allocations: 234.1 kB / 282.5 MB, free: 7.656 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000147/0.01606, allocations: 132.2 kB / 282.6 MB, free: 7.52 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.01619, allocations: 0.5235 MB / 283.1 MB, free: 6.984 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002875/0.01648, allocations: 221.9 kB / 283.3 MB, free: 6.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002919/0.01677, allocations: 285.5 kB / 283.6 MB, free: 6.477 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004062/0.01718, allocations: 371.4 kB / 284 MB, free: 6.098 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.01718, allocations: 7.938 kB / 284 MB, free: 6.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.0008235/0.01801, allocations: 0.7153 MB / 284.7 MB, free: 5.363 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.01802, allocations: 8.031 kB / 284.7 MB, free: 5.355 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.01803, allocations: 4 kB / 284.7 MB, free: 5.352 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006814/0.01871, allocations: 0.619 MB / 285.3 MB, free: 4.73 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001912/0.0189, allocations: 103.8 kB / 285.4 MB, free: 4.629 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000824/0.01972, allocations: 1.159 MB / 286.6 MB, free: 3.438 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002345/0.01996, allocations: 75.91 kB / 286.7 MB, free: 3.363 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.414e-05/0.01999, allocations: 27.98 kB / 286.7 MB, free: 3.336 MB / 266.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.0001355/0.02013, allocations: 194.5 kB / 286.9 MB, free: 3.133 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.376e-05/0.02021, allocations: 71.66 kB / 287 MB, free: 3.062 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.645e-05/0.02028, allocations: 68.75 kB / 287 MB, free: 2.988 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.02028, allocations: 7.984 kB / 287 MB, free: 2.98 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.892e-06/0.02029, allocations: 8 kB / 287 MB, free: 2.973 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.02029, allocations: 3.938 kB / 287 MB, free: 2.969 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001332/0.02163, allocations: 1.233 MB / 288.3 MB, free: 1.691 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.02163, allocations: 0 / 288.3 MB, free: 1.691 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000206/0.02183, allocations: 87.83 kB / 288.4 MB, free: 1.605 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007354/0.02257, allocations: 0.6241 MB / 289 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.423e-05/0.0226, allocations: 27.97 kB / 289 MB, free: 0.9492 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1137/0.1363, allocations: 1.167 MB / 290.2 MB, free: 29.84 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.1363, allocations: 1.797 kB / 290.2 MB, free: 29.84 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001586/0.1379, allocations: 1.048 MB / 291.2 MB, free: 29.65 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002248/0.1381, allocations: 115.8 kB / 291.3 MB, free: 29.65 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.188e-05/0.1382, allocations: 22.84 kB / 291.4 MB, free: 29.65 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002775/0.1384, allocations: 75.39 kB / 291.4 MB, free: 29.65 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002343/0.1387, allocations: 139.9 kB / 291.6 MB, free: 29.65 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-05/0.1387, allocations: 29.44 kB / 291.6 MB, free: 29.65 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000163/0.1389, allocations: 243.4 kB / 291.8 MB, free: 29.52 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1389, allocations: 3.719 kB / 291.8 MB, free: 29.52 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004319/0.1393, allocations: 158.2 kB / 292 MB, free: 29.52 MB / 266.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.0002115/0.1395, allocations: 157 kB / 292.2 MB, free: 29.43 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009388/0.1405, allocations: 0.5748 MB / 292.7 MB, free: 29.39 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1405, allocations: 0 / 292.7 MB, free: 29.39 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004756/0.1409, allocations: 354.6 kB / 293.1 MB, free: 29.38 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004422/0.1414, allocations: 127.8 kB / 293.2 MB, free: 29.37 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00178/0.1432, allocations: 1.185 MB / 294.4 MB, free: 28.81 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.15e-05/0.1433, allocations: 124.2 kB / 294.5 MB, free: 28.74 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001197/0.1434, allocations: 45.83 kB / 294.5 MB, free: 28.73 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001006/0.1435, allocations: 47.16 kB / 294.6 MB, free: 28.73 MB / 266.7 MB Notification: Performance of SimCode: time 1.032e-06/0.1435, allocations: 0 / 294.6 MB, free: 28.73 MB / 266.7 MB Notification: Performance of Templates: time 0.01245/0.1559, allocations: 11.57 MB / 306.2 MB, free: 23.17 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0288807982578874]