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.001331/0.001331, allocations: 85.75 kB / 20.68 MB, free: 1.035 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.001448/0.001448, allocations: 165.2 kB / 23.95 MB, free: 4.168 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.443/1.443, allocations: 177.1 MB / 204.3 MB, free: 9.184 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 1.623e-06/1.623e-06, allocations: 0 / 325.1 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.216e-05/2.379e-05, allocations: 2.281 kB / 325.1 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.00443/0.004454, allocations: 3.015 MB / 328.1 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002392/0.006846, allocations: 1.212 MB / 329.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002308/0.007077, allocations: 10.66 kB / 329.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003738/0.00745, allocations: 96.12 kB / 329.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005441/0.007995, allocations: 239.6 kB / 329.6 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007437/0.008738, allocations: 280.4 kB / 329.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001003/0.009741, allocations: 0.8711 MB / 330.8 MB, free: 12.9 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002154/0.009957, allocations: 92 kB / 330.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007371/0.01069, allocations: 0.5208 MB / 331.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004898/0.01118, allocations: 339.3 kB / 331.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001176/0.0113, allocations: 63.81 kB / 331.8 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000269/0.01157, allocations: 119.5 kB / 331.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002324/0.0118, allocations: 181.3 kB / 332.1 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002914/0.01209, allocations: 239.4 kB / 332.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001002/0.0131, allocations: 0.8553 MB / 333.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.0131, allocations: 0 / 333.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.0131, allocations: 0 / 333.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.329e-05/0.01311, allocations: 1.531 kB / 333.2 MB, free: 11.39 MB / 302.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.001994/0.01511, allocations: 0.8743 MB / 334 MB, free: 10.7 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/0.01514, allocations: 9.188 kB / 334 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003575/0.0155, allocations: 87.7 kB / 334.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005918/0.01609, allocations: 341.8 kB / 334.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.73e-05/0.01614, allocations: 40.92 kB / 334.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001167/0.01625, allocations: 51.14 kB / 334.5 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001267/0.01752, allocations: 0.6088 MB / 335.2 MB, free: 9.926 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.364e-05/0.01755, allocations: 2.719 kB / 335.2 MB, free: 9.926 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.753e-05/0.01761, allocations: 19.84 kB / 335.2 MB, free: 9.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.01762, allocations: 15.31 kB / 335.2 MB, free: 9.906 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001333/0.01896, allocations: 0.5914 MB / 335.8 MB, free: 9.609 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002402/0.02136, allocations: 1.105 MB / 336.9 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001153/0.02251, allocations: 480.7 kB / 337.4 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006359/0.02315, allocations: 293 kB / 337.6 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.771e-05/0.02321, allocations: 11.91 kB / 337.7 MB, free: 8.387 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.286e-05/0.02325, allocations: 46.52 kB / 337.7 MB, free: 8.332 MB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 2.405e-06/0.02325, allocations: 4 kB / 337.7 MB, free: 8.328 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.007392/0.03064, allocations: 2.512 MB / 340.2 MB, free: 5.832 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.853e-05/0.03069, allocations: 64 kB / 340.3 MB, free: 5.758 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004262/0.03112, allocations: 357.6 kB / 340.6 MB, free: 5.398 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.316e-05/0.03121, allocations: 49.69 kB / 340.7 MB, free: 5.344 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001591/0.03137, allocations: 205.6 kB / 340.9 MB, free: 5.141 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002727/0.03164, allocations: 257.9 kB / 341.1 MB, free: 4.887 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002588/0.0319, allocations: 134.6 kB / 341.3 MB, free: 4.746 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002809/0.03218, allocations: 358.8 kB / 341.6 MB, free: 4.387 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007334/0.03292, allocations: 309.8 kB / 341.9 MB, free: 4.086 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007783/0.03369, allocations: 377.3 kB / 342.3 MB, free: 3.715 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001126/0.03482, allocations: 489.1 kB / 342.8 MB, free: 3.227 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.03482, allocations: 8 kB / 342.8 MB, free: 3.219 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002276/0.0371, allocations: 0.9313 MB / 343.7 MB, free: 2.277 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.03712, allocations: 4 kB / 343.7 MB, free: 2.273 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.03713, allocations: 0 / 343.7 MB, free: 2.273 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001496/0.03862, allocations: 0.5708 MB / 344.3 MB, free: 1.699 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004003/0.03902, allocations: 103.8 kB / 344.4 MB, free: 1.598 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001868/0.04089, allocations: 1.101 MB / 345.5 MB, free: 480 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008548/0.04175, allocations: 103.9 kB / 345.6 MB, free: 376 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.351e-05/0.04181, allocations: 24 kB / 345.6 MB, free: 352 kB / 302.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.0003783/0.04219, allocations: 195.2 kB / 345.8 MB, free: 148 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001494/0.04234, allocations: 55.62 kB / 345.8 MB, free: 92 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002076/0.04255, allocations: 80.92 kB / 345.9 MB, free: 0 / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.951e-05/0.04257, allocations: 11.98 kB / 345.9 MB, free: 15.99 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.308e-06/0.04258, allocations: 0 / 345.9 MB, free: 15.99 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.04259, allocations: 0 / 345.9 MB, free: 15.99 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003112/0.0457, allocations: 1.407 MB / 347.3 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.197e-06/0.04571, allocations: 0 / 347.3 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004516/0.04616, allocations: 87.89 kB / 347.4 MB, free: 14.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001354/0.04751, allocations: 0.5512 MB / 348 MB, free: 13.9 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.847e-05/0.04758, allocations: 27.97 kB / 348 MB, free: 13.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001665/0.04925, allocations: 1.069 MB / 349.1 MB, free: 12.78 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.04925, allocations: 4.016 kB / 349.1 MB, free: 12.78 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002761/0.05201, allocations: 1.293 MB / 350.4 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003596/0.05237, allocations: 127.5 kB / 350.5 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001308/0.0525, allocations: 27.98 kB / 350.5 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007201/0.05322, allocations: 103.9 kB / 350.6 MB, free: 11.21 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003163/0.05354, allocations: 136.4 kB / 350.8 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.58e-05/0.0536, allocations: 23.97 kB / 350.8 MB, free: 11.05 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002972/0.0539, allocations: 255.2 kB / 351 MB, free: 10.8 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.0539, allocations: 4 kB / 351 MB, free: 10.8 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005733/0.05447, allocations: 156 kB / 351.2 MB, free: 10.64 MB / 318.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.001441/0.05592, allocations: 422.6 kB / 351.6 MB, free: 10.38 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001752/0.05767, allocations: 0.7191 MB / 352.3 MB, free: 9.664 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.05767, allocations: 0 / 352.3 MB, free: 9.664 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009491/0.05862, allocations: 424.6 kB / 352.7 MB, free: 9.246 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007668/0.05938, allocations: 115.5 kB / 352.9 MB, free: 9.137 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002491/0.06188, allocations: 1.254 MB / 354.1 MB, free: 7.859 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002622/0.06214, allocations: 263.5 kB / 354.4 MB, free: 7.574 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001839/0.06232, allocations: 48.39 kB / 354.4 MB, free: 7.523 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001537/0.06248, allocations: 48.48 kB / 354.5 MB, free: 7.473 MB / 318.1 MB Notification: Performance of SimCode: time 5.11e-07/0.06248, allocations: 4 kB / 354.5 MB, free: 7.469 MB / 318.1 MB Notification: Performance of Templates: time 0.02006/0.08254, allocations: 11.77 MB / 366.2 MB, free: 11.82 MB / 334.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins/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.675963174551725]